File tree Expand file tree Collapse file tree
datafusion/sqllogictest/test_files Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1100,6 +1100,31 @@ physical_plan
1100110024)-----------------------------│ format: csv │
1101110125)-----------------------------└───────────────────────────┘
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.
11041129query TT
11051130explain select int_col from table1 where exists (select count(*) from table2);
You can’t perform that action at this time.
0 commit comments