Skip to content

Commit 00331cf

Browse files
authored
Implement tree explain for PlaceholderRowExec (#15270)
1 parent 66933cc commit 00331cf

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

datafusion/physical-plan/src/placeholder_row.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,7 @@ impl DisplayAs for PlaceholderRowExec {
113113
write!(f, "PlaceholderRowExec")
114114
}
115115

116-
DisplayFormatType::TreeRender => {
117-
// TODO: collect info
118-
write!(f, "")
119-
}
116+
DisplayFormatType::TreeRender => Ok(()),
120117
}
121118
}
122119
}

datafusion/sqllogictest/test_files/explain_tree.slt

+14
Original file line numberDiff line numberDiff line change
@@ -2051,3 +2051,17 @@ physical_plan
20512051
31)│ infinite: true │
20522052
32)│ limit: None │
20532053
33)└───────────────────────────┘
2054+
2055+
# Test explain tree for PlaceholderRowExec
2056+
query TT
2057+
EXPLAIN select count(*) from (values ('a', 'b'), ('c', 'd')) as t (c1, c2)
2058+
----
2059+
physical_plan
2060+
01)┌───────────────────────────┐
2061+
02)│ ProjectionExec │
2062+
03)│ -------------------- │
2063+
04)│ count(*): 2 │
2064+
05)└─────────────┬─────────────┘
2065+
06)┌─────────────┴─────────────┐
2066+
07)│ PlaceholderRowExec │
2067+
08)└───────────────────────────┘

0 commit comments

Comments
 (0)