alamb commented on issue #14123:
URL: https://github.com/apache/datafusion/issues/14123#issuecomment-2703664954

   > Should 
[ScalarUDFImpl::invoke_batch](https://github.com/apache/datafusion/blob/43ecd9b807877946706628633308f73a4645de1f/datafusion/expr/src/udf.rs#L616)
 be marked as deprecated? (There is already a comment saying that in the 
docstring, but the compiler doesn't catch that 😅 ) That way we'd at least get 
some compile-time warning that we're doing something bad, now there was only 
runtime failures.
   
   I think we should mark it deprecated (though we had bad luck in the past 
with the compiler not complaining about implementing a deprecated trait method 
🤔 )
   
   We also tried to document this in the (new for the first time) upgrade guide:
   
https://datafusion.apache.org/library-user-guide/upgrading.html#use-invoke-with-args-instead-of-invoke-and-invoke-batch
   
   I think we may simply want to remove `invoke_with_batch` / other older 
methods ahead of deprecation schedule to avoid the confusion 


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