[ 
https://issues.apache.org/jira/browse/TINKERPOP-1874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16331288#comment-16331288
 ] 

stephen mallette commented on TINKERPOP-1874:
---------------------------------------------

[~jorgebg] i just added a grip of tests for {{P.within()}} and interestingly 
they don't fail for .NET. I assume this is because of how the gherkin suite is 
setup to deal with {{P}} creation:

https://github.com/apache/tinkerpop/blob/master/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gherkin/TraversalEvaluation/TraversalPredicateParameter.cs#L77

It looks like single arguments always go to array there which would serialize 
properly for what the java side is expecting. Is my analysis on that correct?

> P does not appear to be serialized consistently in GraphSON
> -----------------------------------------------------------
>
>                 Key: TINKERPOP-1874
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1874
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: io
>    Affects Versions: 3.2.7
>            Reporter: stephen mallette
>            Assignee: stephen mallette
>            Priority: Major
>
> {{P}} deserialization seems to expect {{List}} arguments for collection 
> oriented operators like {{within}} and {{outside}} so {{P.without("x")}} 
> should wrap "x" in a {{List}} for serialization purposes. This causes 
> weirdness in some GLVs. For example in .NET we see that the use of 
> {{P.without("x")}} fails to deserialize the bytecode, but {{P.Without(new 
> List<string>{"x"})}} will work fine. Just need to get this all straight and 
> consistent.



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

Reply via email to