findepi commented on PR #14268:
URL: https://github.com/apache/datafusion/pull/14268#issuecomment-2635850123

   > I fully recognize this creates behavior that diverges from 
PostgreSQL/DuckDB semantics for the various UDFs in this PR. However, there’s a 
critical distinction: **System contracts vs. SQL dialect behavior.**
   > 
   > [...]
   > 
   > The current approach keeps the door open for both strict and permissive 
use cases through explicit signature choices. With these changes, users can 
still achieve PostgreSQL/DuckDB behavior by defining UDFs with existing 
signatures while still leveraging broader coercion where appropriate.
   
   The function coercions are not enough for building a tailored system. 
Relational operators also do coercions (the set operators: union, intersect, 
except).
   
   In any case, for certain system designs -- those who take on responsibility 
of implementing their particular SQL dialect behavior before handing over the 
control over to DF core -- it's desirable to opt out from any coercion logic at 
all. @shehabgamin @linhr Given the Sail design, you might be interested in 
https://github.com/apache/datafusion/issues/12723. 
   
   
   
   


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