neo4j/community — Issue #112: Chaining Table Variables not working via REST
Author: Romiko
Created: 2011-11-28 23:20:44+00:00
State: open

Hi,

If I run this query it works as expected:

{"script":"g.v(0).out('HOSTS').filter{ it.Key == 'romikoagency'}.in('USER_BELONGS_TO').as('username').as('userGivenName').out('USER_LINKED_TO_PROGRAM').as('program').table(new Table()){it.Username}{it.GivenName}{it.Name}.cap"

result
[ "[[userGivenName:romiko.derbynew, username:Romiko, program:Testa], [userGivenName:romiko.derbynew, username:Romiko, program:Zumba Lessons], [userGivenName:romiko.derbynew, username:Romiko, program:Counselling], [userGivenName:romiko.derbynew, username:Romiko, program:Counselling], [userGivenName:romiko.derbynew, username:Romiko, program:After Care]]" ]

However, with chaining (;) I get invalid results:

{"script":"t=new Table();g.v(0).out('HOSTS').filter{ it.Key == 'romikoagency'}.in('USER_BELONGS_TO').as('username').as('userGivenName').out('USER_LINKED_TO_PROGRAM').as('program').table(t){it.Username}{it.GivenName}{it.Name}.cap;t"
}

Results
{
"data" : [ ],
"columns" : [ "userGivenName", "username", "program" ]
}

Can this be confirmed to be fixed with the new fix for:
https://github.com/neo4j/gremlin-plugin/commit/5904b25707e90e63cd3c83987920f057a3873b19