@@ -248,42 +248,42 @@ query T
248248explain select * from onecolumn as a left join twocolumn as b on a.x = b.x where b.x > 42
249249----
250250HashJoin
251- ├── output columns: [a .x (#0 ), b.y (#2), b .x (#1 )]
251+ ├── output columns: [b .x (#1 ), b.y (#2), a .x (#0 )]
252252├── join type: INNER
253- ├── build keys: [b .x (#1 )]
254- ├── probe keys: [a .x (#0 )]
253+ ├── build keys: [a .x (#0 )]
254+ ├── probe keys: [b .x (#1 )]
255255├── keys is null equal: [false]
256256├── filters: []
257257├── build join filters:
258- │ └── filter id:0, build key:b .x (#1 ), probe key:a .x (#0 ), filter type:inlist,min_max
259- ├── estimated rows: 2.37
258+ │ └── filter id:0, build key:a .x (#0 ), probe key:b .x (#1 ), filter type:inlist,min_max
259+ ├── estimated rows: 2.67
260260├── Filter(Build)
261- │ ├── output columns: [b .x (#1), b.y (#2 )]
262- │ ├── filters: [is_true(b .x (#1 ) > 42)]
263- │ ├── estimated rows: 2.67
261+ │ ├── output columns: [a .x (#0 )]
262+ │ ├── filters: [is_true(a .x (#0 ) > 42)]
263+ │ ├── estimated rows: 2.00
264264│ └── TableScan
265- │ ├── table: default.default.twocolumn
266- │ ├── output columns: [x (#1), y (#2 )]
265+ │ ├── table: default.default.onecolumn
266+ │ ├── output columns: [x (#0 )]
267267│ ├── read rows: 4
268268│ ├── read size: < 1 KiB
269269│ ├── partitions total: 1
270270│ ├── partitions scanned: 1
271271│ ├── pruning stats: [segments: <range pruning: 1 to 1>, blocks: <range pruning: 1 to 1>]
272- │ ├── push downs: [filters: [is_true(twocolumn .x (#1 ) > 42)], limit: NONE]
272+ │ ├── push downs: [filters: [is_true(onecolumn .x (#0 ) > 42)], limit: NONE]
273273│ └── estimated rows: 4.00
274274└── Filter(Probe)
275- ├── output columns: [a .x (#0 )]
276- ├── filters: [is_true(a .x (#0 ) > 42)]
275+ ├── output columns: [b .x (#1), b.y (#2 )]
276+ ├── filters: [is_true(b .x (#1 ) > 42)]
277277 ├── estimated rows: 2.67
278278 └── TableScan
279- ├── table: default.default.onecolumn
280- ├── output columns: [x (#0 )]
279+ ├── table: default.default.twocolumn
280+ ├── output columns: [x (#1), y (#2 )]
281281 ├── read rows: 4
282282 ├── read size: < 1 KiB
283283 ├── partitions total: 1
284284 ├── partitions scanned: 1
285285 ├── pruning stats: [segments: <range pruning: 1 to 1>, blocks: <range pruning: 1 to 1>]
286- ├── push downs: [filters: [is_true(onecolumn .x (#0 ) > 42)], limit: NONE]
286+ ├── push downs: [filters: [is_true(twocolumn .x (#1 ) > 42)], limit: NONE]
287287 ├── apply join filters: [#0]
288288 └── estimated rows: 4.00
289289
@@ -342,11 +342,11 @@ HashJoin
342342├── filters: []
343343├── build join filters:
344344│ └── filter id:0, build key:b.x (#1), probe key:a.x (#0), filter type:inlist,min_max
345- ├── estimated rows: 2.37
345+ ├── estimated rows: 4.00
346346├── Filter(Build)
347347│ ├── output columns: [b.x (#1), b.y (#2)]
348348│ ├── filters: [is_true(b.x (#1) > 42), is_true(b.x (#1) < 45)]
349- │ ├── estimated rows: 2.67
349+ │ ├── estimated rows: 2.00
350350│ └── TableScan
351351│ ├── table: default.default.twocolumn
352352│ ├── output columns: [x (#1), y (#2)]
@@ -360,7 +360,7 @@ HashJoin
360360└── Filter(Probe)
361361 ├── output columns: [a.x (#0)]
362362 ├── filters: [is_true(a.x (#0) > 42), is_true(a.x (#0) < 45)]
363- ├── estimated rows: 2.67
363+ ├── estimated rows: 2.00
364364 └── TableScan
365365 ├── table: default.default.onecolumn
366366 ├── output columns: [x (#0)]
@@ -381,15 +381,15 @@ explain select * from onecolumn as a left join twocolumn as b on a.x = b.x where
381381Filter
382382├── output columns: [a.x (#0), b.x (#1), b.y (#2)]
383383├── filters: [is_true((b.x (#1) > 44 OR a.x (#0) < 43))]
384- ├── estimated rows: 1.33
384+ ├── estimated rows: 1.78
385385└── HashJoin
386386 ├── output columns: [a.x (#0), b.x (#1), b.y (#2)]
387387 ├── join type: LEFT OUTER
388388 ├── build keys: [b.x (#1)]
389389 ├── probe keys: [a.x (#0)]
390390 ├── keys is null equal: [false]
391391 ├── filters: []
392- ├── estimated rows: 4.00
392+ ├── estimated rows: 5.33
393393 ├── TableScan(Build)
394394 │ ├── table: default.default.twocolumn
395395 │ ├── output columns: [x (#1), y (#2)]
@@ -421,11 +421,11 @@ HashJoin
421421├── probe keys: [b.x (#1)]
422422├── keys is null equal: [false]
423423├── filters: []
424- ├── estimated rows: 2.67
424+ ├── estimated rows: 4.00
425425├── Filter(Build)
426426│ ├── output columns: [a.x (#0)]
427427│ ├── filters: [is_true(a.x (#0) > 42), is_true(a.x (#0) < 45)]
428- │ ├── estimated rows: 2.67
428+ │ ├── estimated rows: 2.00
429429│ └── TableScan
430430│ ├── table: default.default.onecolumn
431431│ ├── output columns: [x (#0)]
@@ -439,7 +439,7 @@ HashJoin
439439└── Filter(Probe)
440440 ├── output columns: [b.x (#1), b.y (#2)]
441441 ├── filters: [is_true(b.x (#1) > 42), is_true(b.x (#1) < 45)]
442- ├── estimated rows: 2.67
442+ ├── estimated rows: 2.00
443443 └── TableScan
444444 ├── table: default.default.twocolumn
445445 ├── output columns: [x (#1), y (#2)]
0 commit comments