Stamatis Zampetakis created CALCITE-7659:
--------------------------------------------

             Summary: Add AggregateCall#withFunction API
                 Key: CALCITE-7659
                 URL: https://issues.apache.org/jira/browse/CALCITE-7659
             Project: Calcite
          Issue Type: Improvement
          Components: core
            Reporter: Stamatis Zampetakis
            Assignee: Stamatis Zampetakis


Add new method in AggregateCall that allows to copy the call and switch the 
underlying aggregate function while keeping all the rest of the properties 
intact.

The main motivation comes from 
[Hive|https://github.com/apache/hive/blob/3c7f974eedb38b163ede80cc811e189673b6fbb3/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/reloperators/HiveAggregate.java#L77]
 where we want to replace a standard aggregate function with a Hive specific 
one.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to