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


##########
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:
   Yeah, fair. The caveat got added during review after I moved hash join to an 
in-place reset. Agree it's more of a band-aid though, the reset copies still 
share one filter.
   
   Splitting "reset for the next CTE iteration" from "reset to reuse the plan" 
makes sense to me. For the reuse case I think we could hand each copy fresh 
filters, re-linked by expression_id like proto decoding does, so we keep 
pruning.



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