xudong963 commented on issue #21650:
URL: https://github.com/apache/datafusion/issues/21650#issuecomment-4258795558

   @gabotechs yes
   
   And taskContext satisfies all four constraints:                              
                                                                                
                                                       
     - A new TaskContext is created for each query run → State is naturally 
isolated                                                                        
                                                                              
     - Passed via Arc<TaskContext> to all  execute(partition, context) calls 
within the same plan → Shared within the same run                               
                                                                         
     - Does not belong to any plan node → Shared across nodes                   
                                     
     - Plan carries no execution state — becomes serializable


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