Apache DataFusion SQL Query Engine
Implement tree explain for PlaceholderRowExec (#15270)
zeb00331cf2a224
diff --git a/datafusion/physical-plan/src/placeholder_row.rs b/datafusion/physical-plan/src/placeholder_row.rsindex 72f2c13d20..eecd980d09 100644--- a/datafusion/physical-plan/src/placeholder_row.rs+++ b/datafusion/physical-plan/src/placeholder_row.rs@@ -113,10 +113,7 @@ impl DisplayAs for PlaceholderRowExec {write!(f, "PlaceholderRowExec")}- DisplayFormatType::TreeRender => {- // TODO: collect info- write!(f, "")- }+ DisplayFormatType::TreeRender => Ok(()),}}}diff --git a/datafusion/sqllogictest/test_files/explain_tree.slt b/datafusion/sqllogictest/test_files/explain_tree.sltindex b9f4074a45..3f71a7a4f4 100644--- a/datafusion/sqllogictest/test_files/explain_tree.slt+++ b/datafusion/sqllogictest/test_files/explain_tree.slt@@ -2051,3 +2051,17 @@ physical_plan31)│ infinite: true │32)│ limit: None │33)└───────────────────────────┘++# Test explain tree for PlaceholderRowExec+query TT+EXPLAIN select count(*) from (values ('a', 'b'), ('c', 'd')) as t (c1, c2)+----+physical_plan+01)┌───────────────────────────┐+02)│ ProjectionExec │+03)│ -------------------- │+04)│ count(*): 2 │+05)└─────────────┬─────────────┘+06)┌─────────────┴─────────────┐+07)│ PlaceholderRowExec │+08)└───────────────────────────┘