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

Chris Hupman commented on TINKERPOP-2209:
-----------------------------------------

Thanks for the additional background info. I'll close this out and look into 
how much effort it would be to fix on the JanusGraph side. 

> hasId is not converting properly when multiple values are passed
> ----------------------------------------------------------------
>
>                 Key: TINKERPOP-2209
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2209
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: process
>    Affects Versions: 3.3.3
>         Environment: loaded GraphOfTheGods in JanusGraph 0.3.1 on a macbook.
>            Reporter: Chris Hupman
>            Priority: Minor
>
> While [trying to answer a question on Stack Overflow 
> |[https://stackoverflow.com/questions/55912624/get-all-edges-between-multiple-vertices-janusgraph/55929179#55929179]]
>  I found that hasId is performing `~id.eq` against arrays instead of 
> `~id.within` For a workaround the user reporting the issue found that quoting 
> the values or converting them to longs worked. 
>  
> ```
> {{ids = [8440,12536]}}
> {{paths = 
> g.V(ids).until(hasId(ids)).repeat(out().simplePath()).limit(10).path().explain()}}
> {{...RepeatStep(until([HasStep([~id.eq([4112, 4128, ...])])]),}}{{}}
> {{paths = 
> g.V(ids).until(hasId("8440","12536")).repeat(outE().simplePath()).limit(10).path().explain()}}
> {{...RepeatStep(until([HasStep([~id.within([8440, 12536])])])}}
> ```



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

Reply via email to