[ https://issues.apache.org/jira/browse/TINKERPOP-2974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17946219#comment-17946219 ]
ASF GitHub Bot commented on TINKERPOP-2974: ------------------------------------------- Cole-Greer commented on code in PR #3098: URL: https://github.com/apache/tinkerpop/pull/3098#discussion_r2052984317 ########## docs/src/dev/provider/gremlin-semantics.asciidoc: ########## @@ -1615,3 +1615,41 @@ Null values from the incoming traverser are not processed and remain as null whe See: link:https://github.com/apache/tinkerpop/tree/x.y.z/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/TrimGlobalStep.java[source], link:https://github.com/apache/tinkerpop/tree/x.y.z/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/TrimLocalStep.java[source (local)], link:https://tinkerpop.apache.org/docs/x.y.z/reference/#trim-step[reference] + +[[valueMap-step]] +=== valueMap() + +*Description:* Removes repeatedly seen results from the Traversal Stream. Review Comment: Wrong description > `valueMap` step returns properties in random order > -------------------------------------------------- > > Key: TINKERPOP-2974 > URL: https://issues.apache.org/jira/browse/TINKERPOP-2974 > Project: TinkerPop > Issue Type: Improvement > Components: process > Affects Versions: 3.5.6, 3.6.4 > Reporter: Valentyn Kahamlyk > Priority: Minor > > `valueMap` step return properties in random order. In most cases it's not > important, but > but for example this does not allow using `by` modulators correctly. > In this example I expect to get `name` unfolded, but modulator applied to > `location` > {code:java} > gremlin> g = TinkerFactory.createTheCrew().traversal() > ==>graphtraversalsource[tinkergraph[vertices:6 edges:14], standard] > gremlin> g.V(1).valueMap("location","name").by().by(__.unfold()) > ==>[name:[marko],location:san diego]{code} -- This message was sent by Atlassian Jira (v8.20.10#820010)