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


##########
datafusion/core/src/physical_planner.rs:
##########
@@ -3518,13 +3539,42 @@ impl DefaultPhysicalPlanner {
 
         let mut new_plan = Arc::clone(&plan);
         let optimizer_context = SessionOptimizerContext::new(session_state);
+        let enforcement = EnsureRequirements::new();
+        // Whether the requirements held after enforcement ran. Once they 
have, a rule

Review Comment:
   Isn't this just going to cause confusion as plans may work even with broken 
optimizer rules (this code will repair them)? That feels like it will go 
against the idea of separating out the "make the plans valid" from the "make a 
valid plan faster" ideas 🤔 



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