jayzhan211 commented on issue #15524:
URL: https://github.com/apache/datafusion/issues/15524#issuecomment-2768888404

   You can implement this in rewrite rule `SimplifyExpressions` in logical 
optimizer 
   
   
https://github.com/apache/datafusion/blob/507f6b6773deac69dd9d90dbe60831f5ea5abed1/datafusion/optimizer/src/simplify_expressions/expr_simplifier.rs#L730-L748
   
   
   if there is `sum(column + const_a)` then you return `sum(column) + const_a * 
count(*)`.
   
   
   datafusion/optimizer/src/simplify_expressions/expr_simplifier.rs


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

Reply via email to