Skip to content

Commit 46e0288

Browse files
committed
tree explain test
Signed-off-by: Adam Gutglick <adamgsal@gmail.com>
1 parent ed0b9d1 commit 46e0288

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

datafusion/sqllogictest/test_files/explain_tree.slt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,6 +1100,31 @@ physical_plan
11001100
24)-----------------------------│ format: csv │
11011101
25)-----------------------------└───────────────────────────┘
11021102

1103+
# Query with null-aware anti join (NOT IN subquery).
1104+
query TT
1105+
explain select int_col from table1 where int_col not in (select int_col from table2);
1106+
----
1107+
physical_plan
1108+
01)┌───────────────────────────┐
1109+
02)│ HashJoinExec │
1110+
03)│ -------------------- │
1111+
04)│ join_type: LeftAnti │
1112+
05)│ │
1113+
06)│ null_aware ├──────────────┐
1114+
07)│ │ │
1115+
08)│ on: │ │
1116+
09)│ (int_col = int_col) │ │
1117+
10)└─────────────┬─────────────┘ │
1118+
11)┌─────────────┴─────────────┐┌─────────────┴─────────────┐
1119+
12)│ DataSourceExec ││ DataSourceExec │
1120+
13)│ -------------------- ││ -------------------- │
1121+
14)│ files: 1 ││ files: 1 │
1122+
15)│ format: csv ││ format: parquet │
1123+
16)│ ││ │
1124+
17)│ ││ predicate: │
1125+
18)│ ││ DynamicFilter [ empty ] │
1126+
19)└───────────────────────────┘└───────────────────────────┘
1127+
11031128
# Query with nested loop join.
11041129
query TT
11051130
explain select int_col from table1 where exists (select count(*) from table2);

0 commit comments

Comments
 (0)