siddharthteotia commented on a change in pull request #1033: [CALCITE-2820] Add
a version of AggregateReduceFunctionsRule that does not reduce SUM to SUM0
URL: https://github.com/apache/calcite/pull/1033#discussion_r262644999
##########
File path:
core/src/main/java/org/apache/calcite/rel/rules/AggregateReduceFunctionsRule.java
##########
@@ -94,15 +94,23 @@
/** The singleton. */
public static final AggregateReduceFunctionsRule INSTANCE =
- new AggregateReduceFunctionsRule(operand(LogicalAggregate.class, any()),
+ new AggregateReduceFunctionsRule(operand(LogicalAggregate.class, any()),
true,
RelFactories.LOGICAL_BUILDER);
+ /** The singleton. */
+ public static final AggregateReduceFunctionsRule NO_REDUCE_SUM =
+ new AggregateReduceFunctionsRule(operand(LogicalAggregate.class,
any()), false,
+ RelFactories.LOGICAL_BUILDER);
+
+ private final boolean reduceSum;
+
//~ Constructors -----------------------------------------------------------
/** Creates an AggregateReduceFunctionsRule. */
- public AggregateReduceFunctionsRule(RelOptRuleOperand operand,
+ public AggregateReduceFunctionsRule(RelOptRuleOperand operand, boolean
reduceSum,
Review comment:
done.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services