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

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

     [ https://issues.apache.org/jira/browse/TINKERPOP-2870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephen Mallette closed TINKERPOP-2870.
---------------------------------------
    Fix Version/s: 3.7.0
                   3.6.3
         Assignee: Stephen Mallette
       Resolution: Fixed

Fixed via CTR with: https://github.com/apache/tinkerpop/commit/44c1dd1008c0cbd7d1cd2806e22e5f47a2580941

> 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
>            Assignee: Stephen Mallette
>            Priority: Minor
>             Fix For: 3.7.0, 3.6.3
>
>
> 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)