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

stephen mallette updated TINKERPOP3-649:
----------------------------------------
    Component/s: process

> no-arg select dynamic keys
> --------------------------
>
>                 Key: TINKERPOP3-649
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-649
>             Project: TinkerPop 3
>          Issue Type: Improvement
>          Components: process
>            Reporter: Matt Frantz
>
> The currently implementation of the no-arg {{select}} form determines the set 
> of labels via static analysis with {{TraversalHelper.getLabelsUpTo}}.  
> Instead, it should examine the {{Path}} and create a {{Map}} with keys for 
> all labeled steps.
> Compare the current behavior of a 3-arg select on the modern graph:
> {noformat}
> gremlin> g.V().choose{it -> it.id()%3}
>   .option(0, __.as('x'))
>   .option(1, __.as('y'))
>   .option(2, __.as('z'))
>   .select('x', 'y', 'z')
> ==>[y:v[1]]
> ==>[z:v[2]]
> ==>[x:v[3]]
> ==>[y:v[4]]
> ==>[z:v[5]]
> ==>[x:v[6]]
> {noformat}
> The expected behavior of {{select()}} in place of {{select('x', 'y', 'z')}} 
> would be the same.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to