Dandandan commented on issue #15524: URL: https://github.com/apache/datafusion/issues/15524#issuecomment-2771525677
I'm wondering if instead of this specialized `SUM(x + y) -> SUM(x) * COUNT() * y` We can do instead the more general: ``SUM(x + a) -> SUM(x) + SUM(a)` And have other optimizations follow (transform `SUM(a)` to COUNT() * a` when constant) -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org