You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Kelvin Lawrence (Jira)" <ji...@apache.org> on 2023/02/17 17:07:00 UTC

[jira] [Created] (TINKERPOP-2870) mergeV requires key of 'new' to be quoted

Kelvin Lawrence created TINKERPOP-2870:
------------------------------------------

             Summary: mergeV requires key of 'new' to be quoted
                 Key: TINKERPOP-2870
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2870
             Project: TinkerPop
          Issue Type: Bug
          Components: language
    Affects Versions: 3.6.2, 3.6.1, 3.6.0
            Reporter: Kelvin Lawrence


When using text based queries the Antlr grammar does not seem to like certain keys being unquoted. In the example below, there will be a parse error thrown unless the key 'new' is in quotes. Note the other keys used are not quoted.


g.mergeV([id:'X1', name:'M1']).
  option(Merge.onCreate,['new':true]).
  option(Merge.onMatch,[year:2023]).
  valueMap()

\{'new': [True], 'year': [2023], 'name': ['M1']}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)