Hi all,
The following query has different results 3.2.0-incubating and 3.2.3 :
g.V().where( __.in('A').in('B').count().is(eq(0)) )
On 3.2.3, I always get 0 as results. Actually, I also get 0 when I use neq instead of ne
g.V().where( __.in('A').in('B').count().is(neq(0)) )
When I use only one in() inside the where(), I get consistent results, on both 3.2.3 and 3.2.0-incubating
g.V().where( __.in('A').count().is(eq(0)) ) // works as expected
g.V().where( __.in('B').count().is(eq(0)) ) // works as expected
g.V().where( __.in('B').count().is(neq(0)) ) // works as expected
I checked on 3.2.3, 3.2.2, 3.2.1 (couldn't compile on 3.2.0, only on 3.2.0-incubating) : they all have the same behavior.
I tested on Neo4j 2.3.9 and 2.3.7. I'm running java 1.8.0_121), on OSX.
I check neo4j/data/log/console.log, no error are mentioned there.
The data is the same.
Is there anything I'm missing ? Is it forbidden to use twice in() in a where?
May be, There is a better way to check that a node has no 'grand-parent'.
Thanks for your attention.
Damien.