Gremlin passing paramters there is a deviation

27 views
Skip to first unread message

Prakash Jetty

unread,
Apr 29, 2016, 9:38:53 AM4/29/16
to Gremlin-users
This is the query that has been sent to gremlin server

Exception processing a script on request [RequestMessage{, requestId=1a3a5f2c-cf81-400c-9baf-a94961f1172a, op='eval', processor='', args={gremlin=:submit g.V().has("brokerId", brokerId).in("belongs_to").union(out("parametric_start").dedup(), out("parametric_start").out("parametric_relation").dedup().values("timestamp").is(lte(durationL))).valueMap("brokerFeedId","feedCategoryType"), bindings={brokerId=92773, durationL=1461869051L}, batchSize=64}}].


Iam getting this error 


org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:

Script48.groovy: 1: unexpected token: : @ line 1, column 1.

   :submit g.V().has("brokerId", brokerId).in("belongs_to").union(out("parametric_start").dedup(), out("parametric_start").out("parametric_relation").dedup().values("timestamp").is(lte(durationL))).valueMap("brokerFeedId","feedCategoryType")

   ^

Can somebody help me understand what wrong with the query

Jason Plurad

unread,
May 1, 2016, 7:51:13 AM5/1/16
to Gremlin-users
Hi Prakash,

If you are calling into a Gremlin Server from your own program, the Gremlin query you pass should not contain :submit.

:submit is Gremlin Console command to let the console know that the query needs to be submitted to a remote Gremlin Server.

-- Jason
Reply all
Reply to author
Forward
0 new messages