[ https://issues.apache.org/jira/browse/TINKERPOP-1960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17763139#comment-17763139 ]
Cole Greer commented on TINKERPOP-1960: --------------------------------------- Looks like this is still an issue as of 3.7.0. fold() appears to be applying at a local scope here. > fold() doesn't fold in OLAP > --------------------------- > > Key: TINKERPOP-1960 > URL: https://issues.apache.org/jira/browse/TINKERPOP-1960 > Project: TinkerPop > Issue Type: Bug > Components: hadoop > Affects Versions: 3.2.9, 3.7.0 > Reporter: Daniel Kuppitz > Priority: Major > > {noformat} > gremlin> g.withSack(0).V().hasLabel("person").as("from","to"). > ......1> repeat(both().as("to").dedup("from","to"). > ......2> sack(sum).by(constant(1))). > ......3> emit(hasLabel("person")). > ......4> sack().dedup().fold() > ==>[1,2,3] > gremlin> g.withComputer().withSack(0).V().hasLabel("person").as("from","to"). > ......1> repeat(both().as("to").dedup("from","to"). > ......2> sack(sum).by(constant(1))). > ......3> emit(hasLabel("person")). > ......4> sack().dedup().fold() > ==>[1] > ==>[2] > ==>[3] > {noformat} > I only noticed the misbehavior in this particular traversal, other tests > looked good, so there must be a step that somehow interferes with {{fold()}}. -- This message was sent by Atlassian Jira (v8.20.10#820010)