tinkerpop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stephen mallette (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (TINKERPOP-2186) Wrong translation to bytecode from array value
Date Tue, 02 Apr 2019 18:48:03 GMT

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

stephen mallette reassigned TINKERPOP-2186:
-------------------------------------------

    Assignee: stephen mallette

> 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
>            Assignee: stephen mallette
>            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)

Mime
View raw message