alamb commented on issue #8051:
URL: 
https://github.com/apache/arrow-datafusion/issues/8051#issuecomment-1861674787

   > > That seems a bit heavy handed? Why not simply augment the scalar 
function expr node with an interior mutable "cache" cell, that is invisible to 
serialization? The cell can be automatically populated as needed by the 
function implementation upon node instantiation/deserialization.
   > 
   > @sadboy that is a (really) good idea
   
   BTW I thought more about this and one challenge is that currently the scalar 
function implementations that are passed around may be shared -- so using 
interior mutability would get confusing as each function invocation would be 
from the same instance of the function


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