Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions datafusion/physical-plan/src/placeholder_row.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,7 @@ impl DisplayAs for PlaceholderRowExec {
write!(f, "PlaceholderRowExec")
}

DisplayFormatType::TreeRender => {
// TODO: collect info
write!(f, "")
}
DisplayFormatType::TreeRender => Ok(()),
}
}
}
Expand Down
14 changes: 14 additions & 0 deletions datafusion/sqllogictest/test_files/explain_tree.slt
Original file line number Diff line number Diff line change
Expand Up @@ -2051,3 +2051,17 @@ physical_plan
31)│ 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)└───────────────────────────┘