Re: failing optional and order by gremlin

2017-02-11 Thread pieter-gmail
OK got it. Thanks for the help. Cheers, Pieter On 11/02/2017 16:46, Daniel Kuppitz wrote: > This looks like a bug in 3.2.3. It's clearly expected to fail, since by() > modulators should always fail if the traverser can't emit a value. What you > actually want to do is this: > > gremlin> g.traver

Re: failing optional and order by gremlin

2017-02-11 Thread Daniel Kuppitz
This looks like a bug in 3.2.3. It's clearly expected to fail, since by() modulators should always fail if the traverser can't emit a value. What you actually want to do is this: gremlin> g.traversal().V(a1.id()).optional( ..1> outE("ab").as("e").otherV().as("vb").optional( ..2>

RE: failing optional and order by gremlin

2017-02-11 Thread pieter-gmail
Hi, The following query no longer works on 3.2.4 @Test public void testOptionalWithOrderBy() { final TinkerGraph g = TinkerGraph.open(); Vertex a1 = g.addVertex(T.label, "A", "name", "a1"); Vertex b1 = g.addVertex(T.label, "B", "name", "b1"); Vertex b2 = g.