alamb commented on code in PR #16097:
URL: https://github.com/apache/datafusion/pull/16097#discussion_r2096013268
##########
datafusion/core/src/physical_planner.rs:
##########
@@ -1757,6 +1757,12 @@ impl DefaultPhysicalPlanner {
)));
}
+ if !e.logical_optimization_succeeded {
+ if let Some(plan) = e.stringified_plans.last() {
Review Comment:
I think the original intent was to still show the explain plan even if there
was an error
The idea was to show all the work that had happened so far (e.g. the plans)
to help debugging
I agree both explain modes should be consistent, but I suggest that instead
of erroring with `EXPLAIN FORMAT INDENT` instead we capture and report the
error in `EXPLAIN FORMAT TREE`
--
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]