[ https://issues.apache.org/jira/browse/TINKERPOP-3080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17877156#comment-17877156 ]
ASF GitHub Bot commented on TINKERPOP-3080: ------------------------------------------- rdtr commented on code in PR #2616: URL: https://github.com/apache/tinkerpop/pull/2616#discussion_r1733446349 ########## gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Operator.java: ########## @@ -113,6 +133,11 @@ public Object apply(final Object a, final Object b) { public Object apply(final Object a, final Object b) { return b; } + + @Override + public boolean isCommutative() { Review Comment: isCommutative is a confusing name, `assign` may be also the one but it is already used in GraphComputer's code internally. I just want to exclude `div` and `minus` at the moment, let's create a static list to disable execution for them. > AggregateStep can support all Operators predefined in TinkerPop > --------------------------------------------------------------- > > Key: TINKERPOP-3080 > URL: https://issues.apache.org/jira/browse/TINKERPOP-3080 > Project: TinkerPop > Issue Type: Improvement > Components: language, process > Reporter: Norio Akagi > Priority: Major > Fix For: 3.7.3 > > > Currently, {{AggreteGlobalStep}} and {{AggreteLocalStep}} only support addAll > and assign as Operator. This is because they use BulkSet to apply to > Operator. Only addAll and assign can work with BulkSet, so for other > operators it results in a type casting failure. > They can be more flexible to work with any operators depending on what is set > by {{{}withSideEffect(){}}}. -- This message was sent by Atlassian Jira (v8.20.10#820010)