andygrove commented on PR #1029:
URL: 
https://github.com/apache/datafusion-comet/pull/1029#issuecomment-2436131793

   > 2. What is the thread safety of this approach? It's unclear to me if 
multiple threads could be sharing this call stack and trying to write new 
values into the cache at the same time. I could wrap the HashMap in a latch in 
exchange for a performance hit, but would like to understand if this is even 
possible.
   
   Spark has a single thread calling `CometExecIterator`, which in turn calls 
`createPlan`, `executePlan`, and `releasePlan`, so think the current approach 
is safe.
   
   


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