zhztheplayer commented on issue #1087: [CALCITE-1172] Add rule to flatten two 
Aggregate operators into one
URL: https://github.com/apache/calcite/pull/1087#issuecomment-480122659
 
 
   Thank you for the explanation! I think It is indeed hacky to transform the 
COUNT to something nullable.  So I'm with you in general.
   
   Maybe there is possibility to apply optimization to `SUM0(empty 
group)-COUNT(empty group)` relation, but the algebras seems to be rarely 
produced by SQL so it is likely not a very important case.

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

Reply via email to