0

I ran these codes:

  1. g.V().has("name", "Jones").union(g.of().bothE("knows").inV()).values()
  2. g.V().has("name", "Jones").union(g.of().bothE("knows").otherV()).values()

The first one returns correctly, but brings Jones too. The second one throws an exception, that is shown bellow:

Path tracking is not supported by this Traverser: class com.tinkerpop.gremlin.process.traversers.SimpleTraverser

Could anyone help me with this issue?

Thanks, Celso

Celso Marques
  • 378
  • 1
  • 4
  • 15

2 Answers2

0

I don't think that this is the intended behavior, but why do you use union at all? Why not simply:

g.V().has("name", "Jones").bothE("knows").otherV().values()
Daniel Kuppitz
  • 10,846
  • 1
  • 25
  • 34
  • Oh sorry...I just took off some code, but the main idea is join different kind of relations in just one "query". Thx @daniel-kupptiz – Celso Marques Dec 04 '14 at 23:37
0

Huh. The short term fix is to withPath() after the V(). (assuming TP 3.0.0.M6).

Marko A. Rodriguez
  • 1,702
  • 12
  • 13
  • I'm using TP 3.0.0.M5. I'll try it tomorrow morning (in Brazil) and I'll tell you if that resolved my issue. Thank you Marko – Celso Marques Dec 04 '14 at 23:40
  • Marko, I downloaded the gremlin-console-3.0.0.M6 but when I tried to run the .bat it throws: `Caused by: java.lang.ClassNotFoundException: com.tinkerpop.gremlin.groovy.plugin.RemoteAcceptor`. Could you help me, please? Thanks. – Celso Marques Dec 05 '14 at 11:00
  • I included the gremlin-groovy-3.0.0.M6.jar inside lib folder and it solved this issue. Is it any deploy issue or I forgot something? – Celso Marques Dec 05 '14 at 11:12