alamb commented on code in PR #26669:
URL: https://github.com/apache/datafusion/pull/26669#discussion_r4671387700


##########
datafusion/physical-plan/src/execution_plan.rs:
##########
@@ -1998,7 +1998,9 @@ pub fn check_not_null_constraints(
 ///
 /// While this function enables plan reuse, it does not allow the same plan to 
be executed if it (OR):
 ///
-/// * uses dynamic filters,
+/// * uses dynamic filters and the original plan (or another reset copy) is 
still

Review Comment:
   I feel like this is just adding a patch for a symptom rather than fixing the 
root cause. 
   
   One example is that we now hit another corner cases like  
https://github.com/apache/datafusion/pull/27453
   
   We probably need to reasses how recursive CTEs and dynamic filters interact 
-- for example, maybe we need to separate out the "resetting a plan during 
execution for the next run of a recursive CTE" and "resetting a plan so it can 
be reused for another query execution"



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