Omega359 commented on issue #9892:
URL: 
https://github.com/apache/arrow-datafusion/issues/9892#issuecomment-2030536635

   Ah, I misread the description, apologies. It's an interesting idea. I don't 
see an easy solution right now especially since the udf's are held in a 
singleton once called (see 
https://github.com/apache/arrow-datafusion/blob/d8d521ac8b90002fa0ba1f91456051a9775ae193/datafusion/functions/src/macros.rs#L66)
 so any memory savings from not using the udf would evaporate after the first 
use. 
   
   I think it may be possible with a change to the make_udf_function to remove 
the singleton code however I'm not sure of the wisdom of that.


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

Reply via email to