[ https://issues.apache.org/jira/browse/TINKERPOP-2870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kelvin Lawrence updated TINKERPOP-2870: --------------------------------------- Description: 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. {code:java} g.mergeV([id:'X1', name:'M1']). option(Merge.onCreate,['new':true]). option(Merge.onMatch,[year:2023]). valueMap() {'new': [True], 'year': [2023], 'name': ['M1']} {code} was: 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']} > 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.0, 3.6.1, 3.6.2 > Reporter: Kelvin Lawrence > Priority: Major > > 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. > > {code:java} > g.mergeV([id:'X1', name:'M1']). > option(Merge.onCreate,['new':true]). > option(Merge.onMatch,[year:2023]). > valueMap() > {'new': [True], 'year': [2023], 'name': ['M1']} > {code} > -- This message was sent by Atlassian Jira (v8.20.10#820010)