Gremlin query works fine in console but throws error when executing with the driver

Description

The following query works in the gremlin console:

The following query (same) does not work when executed as a ScriptGraphStatement:

The error thrown (from debug log on server) for the query executed with the driver is:

Environment

Reproduced error with DSE 6.7.9 & 6.8.3 w/ Java Driver 4.8 and 4.9

Pull Requests

None

Activity

Show:
Bryn Cooke
September 16, 2020, 4:24 PM

The issue is that there is a clash in the gremlin interpreter when using 'list' as a parameter name.

I recommend that this ticket is closed and that we add some validation on the server side to prevent users from using reserved words there.

Paras Mehra
September 15, 2020, 4:31 PM

For more context, this query inserts a list of maps as properties on a vertex (rather than explicitly listing them).

Assignee

Unassigned

Reporter

Paras Mehra

Reproduced in

4.9.0

Affects versions