yingyuwang opened a new pull request #2432:
URL: https://github.com/apache/calcite/pull/2432


   This is the first part of the change for 
https://issues.apache.org/jira/browse/CALCITE-4634.
   A variant is added to `AggregateProjectPullUpConstantsRule` to remove all 
constant keys.
   
   By default, this rule never removes the last column, because `Aggregate([])` 
returns 1 row even if its input is empty.
   When `config.removeAllConstants()` is true this rule will force removing the 
last column.  A filter will be added in this case to ensure `Aggregate([])` 
returns 0 row when its input is empty.


-- 
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]


Reply via email to