Skip to content

Commit e943055

Browse files
committed
Add test
1 parent 668eabe commit e943055

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

datafusion/sqllogictest/test_files/explain_tree.slt

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1685,6 +1685,54 @@ physical_plan
16851685

16861686

16871687

1688+
# query
1689+
query TT
1690+
explain SELECT * FROM data
1691+
WHERE date = '2006-01-02'
1692+
ORDER BY "ticker", "time"
1693+
LIMIT 5;
1694+
----
1695+
physical_plan
1696+
01)┌───────────────────────────┐
1697+
02)│ SortPreservingMergeExec │
1698+
03)│ -------------------- │
1699+
04)│ ticker ASC NULLS LAST, │
1700+
05)│ time ASC NULLS │
1701+
06)│ LASTlimit: │
1702+
07)│ 5 │
1703+
08)└─────────────┬─────────────┘
1704+
09)┌─────────────┴─────────────┐
1705+
10)│ CoalesceBatchesExec │
1706+
11)│ -------------------- │
1707+
12)│ limit: 5 │
1708+
13)│ │
1709+
14)│ target_batch_size: │
1710+
15)│ 8192 │
1711+
16)└─────────────┬─────────────┘
1712+
17)┌─────────────┴─────────────┐
1713+
18)│ FilterExec │
1714+
19)│ -------------------- │
1715+
20)│ predicate: │
1716+
21)│ date = 2006-01-02 │
1717+
22)└─────────────┬─────────────┘
1718+
23)┌─────────────┴─────────────┐
1719+
24)│ RepartitionExec │
1720+
25)│ -------------------- │
1721+
26)│ partition_count(in->out): │
1722+
27)│ 1 -> 4 │
1723+
28)│ │
1724+
29)│ partitioning_scheme: │
1725+
30)│ RoundRobinBatch(4) │
1726+
31)└─────────────┬─────────────┘
1727+
32)┌─────────────┴─────────────┐
1728+
33)│ StreamingTableExec │
1729+
34)│ -------------------- │
1730+
35)│ infinite: true │
1731+
36)│ limit: None │
1732+
37)└───────────────────────────┘
1733+
1734+
1735+
16881736

16891737
# query
16901738
query TT

0 commit comments

Comments
 (0)