@@ -287,7 +287,12 @@ physical_plan
287287
288288# 2 Joins
289289query TT
290- explain SELECT table1.string_col, table2.date_col FROM table1 JOIN table2 ON table1.int_col = table2.int_col;
290+ EXPLAIN SELECT table1.string_col, table2.date_col
291+ FROM table1
292+ JOIN table2
293+ ON
294+ (table1.int_col = table2.int_col)
295+ AND (((table1.int_col + table2.int_col) % 2) = 0)
291296----
292297physical_plan
29329801)┌───────────────────────────┐
@@ -307,24 +312,28 @@ physical_plan
30731215)┌─────────────┴─────────────┐
30831316)│ HashJoinExec │
30931417)│ -------------------- │
310- 18)│ on: ├──────────────┐
311- 19)│ (int_col = int_col) │ │
312- 20)└─────────────┬─────────────┘ │
313- 21)┌─────────────┴─────────────┐┌─────────────┴─────────────┐
314- 22)│ DataSourceExec ││ RepartitionExec │
315- 23)│ -------------------- ││ -------------------- │
316- 24)│ files: 1 ││ partition_count(in->out): │
317- 25)│ format: parquet ││ 1 -> 4 │
318- 26)│ ││ │
319- 27)│ ││ partitioning_scheme: │
320- 28)│ ││ RoundRobinBatch(4) │
321- 29)└───────────────────────────┘└─────────────┬─────────────┘
322- 30)-----------------------------┌─────────────┴─────────────┐
323- 31)-----------------------------│ DataSourceExec │
324- 32)-----------------------------│ -------------------- │
325- 33)-----------------------------│ files: 1 │
326- 34)-----------------------------│ format: csv │
327- 35)-----------------------------└───────────────────────────┘
315+ 18)│ filter: │
316+ 19)│ CAST(int_col + int_col AS │
317+ 20)│ Int64) % 2 = 0 ├──────────────┐
318+ 21)│ │ │
319+ 22)│ on: │ │
320+ 23)│ (int_col = int_col) │ │
321+ 24)└─────────────┬─────────────┘ │
322+ 25)┌─────────────┴─────────────┐┌─────────────┴─────────────┐
323+ 26)│ DataSourceExec ││ RepartitionExec │
324+ 27)│ -------------------- ││ -------------------- │
325+ 28)│ files: 1 ││ partition_count(in->out): │
326+ 29)│ format: parquet ││ 1 -> 4 │
327+ 30)│ ││ │
328+ 31)│ ││ partitioning_scheme: │
329+ 32)│ ││ RoundRobinBatch(4) │
330+ 33)└───────────────────────────┘└─────────────┬─────────────┘
331+ 34)-----------------------------┌─────────────┴─────────────┐
332+ 35)-----------------------------│ DataSourceExec │
333+ 36)-----------------------------│ -------------------- │
334+ 37)-----------------------------│ files: 1 │
335+ 38)-----------------------------│ format: csv │
336+ 39)-----------------------------└───────────────────────────┘
328337
329338# 3 Joins
330339query TT
0 commit comments