nuno-faria commented on code in PR #19316:
URL: https://github.com/apache/datafusion/pull/19316#discussion_r3004964228
##########
datafusion/core/src/physical_planner.rs:
##########
@@ -274,7 +277,21 @@ impl PhysicalPlanner for DefaultPhysicalPlanner {
.create_initial_plan(logical_plan, session_state)
.await?;
- self.optimize_physical_plan(plan, session_state, |_, _| {})
+ let mut plan = self.optimize_physical_plan(plan, session_state, |_, _|
{})?;
+
+ // setup the auto explain mode if necessary
Review Comment:
I moved this to the existing `setup_auto_explain` method so that everything
is there. I'm not sure if it would fit in the `handle_explain_or_analyze`
method since at that point the `Analyze` is still not in the plan.
--
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]