gene-bordegaray commented on issue #18777:
URL: https://github.com/apache/datafusion/issues/18777#issuecomment-3544774418

   > Would this transformation be something you can detect and apply within an 
existing (or new) optimizer rule? Or do you actually need a dedicated rule that 
**prevents** the two-step aggregation from being generated in the first place?
   
   The original, and to me most most intuitive way of doing it is adding this 
transformation to an existing rule. But this is something to think about as it 
could save overhead to prevent it before it is produced at all. 
   
   I will look at some more apporaches with this in mind and see what I come up 
with.
   


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to