You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Pavel (JIRA)" <ji...@apache.org> on 2019/03/24 14:52:00 UTC

[jira] [Updated] (TINKERPOP-2186) Wrong translation to bytecode from array value

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

Pavel updated TINKERPOP-2186:
-----------------------------
    Summary: Wrong translation to bytecode from array value  (was: Wrong translation to bytecode from array)

> Wrong translation to bytecode from array value
> ----------------------------------------------
>
>                 Key: TINKERPOP-2186
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2186
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: process
>    Affects Versions: 3.4.1
>            Reporter: Pavel
>            Priority: Major
>
>  Sample of code
> {code:java}
>  Graph graph = TinkerGraph.open();
>  GraphTraversalSource traversal = graph.traversal().withRemote(new EmbeddedRemoteConnection(graph.traversal()));
> traversal.addV("A").property("p", new String[] { "A" }).iterate();
>  traversal.addV("A").property("p", new String[] { "A", "B", "C" }).iterate();
>  System.out.println(traversal.V().valueMap(true).toList());
> {code}
> Result 
> {code:java}
> [{p=[A], id=0, label=A}, {p=[A], id=2, label=A}]
> {code}
> Actual bytecode
> {code}
> [[], [addV(A), property(p, A)]]
> [[], [addV(A), property(p, A, B, C)]]
> {code}
> But expected
> {code}
> [[], [addV(A), property(p, [A])]]
> [[], [addV(A), property(p, [A, B, C])]]
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)