Acfboy commented on PR #20086:
URL: https://github.com/apache/datafusion/pull/20086#issuecomment-3864070250

   Thank you for the suggestion @2010YOUY01 ! I was actually stuck on how to 
handle the optimizer rules to satisfy that first benefit without a massive 
refactoring.
   
   I think that the ideal long-term solution is to equip UDFs with "properties" 
(like associativity or commutativity). This would allow the optimizer to handle 
them generically, which would also benefit user-defined functions. But as you 
noted, that would require a significant overhaul.
   
   I agree your proposed middle ground is a great practical trade-off. I will 
try to create a new POC based on this wrapping approach. Hope this can serve as 
a starting point, and that we can eventually find a better way to unify the two 
frameworks step-by-step.


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