Aleksandr Dederer created TINKERPOP-3108: --------------------------------------------
Summary: group().by(label).by(Traversal) produce wrong result Key: TINKERPOP-3108 URL: https://issues.apache.org/jira/browse/TINKERPOP-3108 Project: TinkerPop Issue Type: Bug Reporter: Aleksandr Dederer For my understanding .by(id) and .by(__.id()) modulators are fully equivalent in terms of the .group() step. The following queries are fully equivalent and should produce the same result but it's not: *query 1:* {{g.V().group().by(label).by(id);}} Result: {{[}} {{ {}} {{{} "software": [{}}}{{{}12325, {}}}{{{}12329{}}}{{{}],{}}} {{{} "person": [{}}}{{{}12309, {}}}{{12313, }}{{12317, }}{{{}12321{}}}{{{}]{}}} {{ }}} {{]}} *query 2:* {{g.V().group().by(label).by(__.id());}} Result: {{[}} {{ {}} {{ "software": 12329,}} {{ "person": 12321}} {{ }}} {{]}} It seems .by(Traversal) takes only the last iteration value as a result. Both request and it's results I saved here: [https://gremlify.com/3n5osqrlogw/3] -- This message was sent by Atlassian Jira (v8.20.10#820010)