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
3 changes: 1 addition & 2 deletions datafusion/physical-plan/src/limit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,7 @@ impl DisplayAs for LocalLimitExec {
write!(f, "LocalLimitExec: fetch={}", self.fetch)
}
DisplayFormatType::TreeRender => {
// TODO: collect info
write!(f, "")
write!(f, "limit={}", self.fetch)
}
}
}
Expand Down
20 changes: 20 additions & 0 deletions datafusion/sqllogictest/test_files/explain_tree.slt
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ AS SELECT
FROM
hashjoin_datatype_table_t2_source

statement ok
CREATE TABLE limit_table AS
SELECT * FROM table1
UNION ALL SELECT * FROM table1

######## Begin Queries ########

# Filter
Expand Down Expand Up @@ -246,6 +251,21 @@ physical_plan
11)│ format: csv │
12)└───────────────────────────┘

query TT
explain SELECT * FROM limit_table LIMIT 10;
----
physical_plan
01)┌───────────────────────────┐
02)│ CoalescePartitionsExec │
03)└─────────────┬─────────────┘
04)┌─────────────┴─────────────┐
05)│ DataSourceExec │
06)│ -------------------- │
07)│ bytes: 3120 │
08)│ format: memory │
09)│ rows: 2 │
10)└───────────────────────────┘

# 2 Joins
query TT
explain SELECT table1.string_col, table2.date_col FROM table1 JOIN table2 ON table1.int_col = table2.int_col;
Expand Down