[
https://issues.apache.org/jira/browse/TINKERPOP-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stephen Mallette updated TINKERPOP-3101:
----------------------------------------
Issue Type: Improvement (was: Bug)
not sure semantics on {{union()}} and {{drop()}} have ever been completely
clear here so i'll loosen this from a bug to an improvement in defining the
semantics.
> `union()` with a mutation step as the first option is changing the output
> -------------------------------------------------------------------------
>
> Key: TINKERPOP-3101
> URL: https://issues.apache.org/jira/browse/TINKERPOP-3101
> Project: TinkerPop
> Issue Type: Improvement
> Components: process
> Affects Versions: 3.7.1
> Reporter: Dave Bechberger
> Priority: Major
>
> When you use a `drop()` step as the first subtraversal it is impacting the
> subsequent subtraversals. In the example below I would have expected this to
> return the `valueMap()` of the incoming solutions since this is a branch step.
>
> {code:java}
> \,,,/
> (o o)
> -----oOOo-(3)-oOOo-----
> plugin activated: tinkerpop.server
> plugin activated: tinkerpop.utilities
> plugin activated: tinkerpop.tinkergraph
> gremlin> g = TinkerFactory.createModern().traversal()
> ==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard]
> gremlin> g.V().union(drop(), valueMap())
> ==>[]
> ==>[]
> ==>[]
> ==>[]
> ==>[]
> ==>[] {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)