milenkovicm commented on issue #8051:
URL: https://github.com/apache/datafusion/issues/8051#issuecomment-2348206369

   Sorry but I'm not sure I understand why do you need  thread local storage.
   
   What @alamb proposed will work with datafusion execution, no need for any 
other state handling, state is in the struct's property, which will be re-used 
for each and every batch this function participate, `PrecompiledRegexpMatch` 
will be "specialised" for a given logical plan. 
   
   Or to put it in a different way, if there is no need to serialise your plan 
to be distributed, like with ballista, I believe proposed solution totally make 
sense. 
   
   Do you have use-case where you need to distribute function expression to 
different executors, like ballista ? 


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