@@ -251,42 +251,42 @@ query T
251251explain select * from onecolumn as a left join twocolumn as b on a.x = b.x where b.x > 42
252252----
253253HashJoin
254- ├── output columns: [a .x (#0 ), b.y (#2), b .x (#1 )]
254+ ├── output columns: [b .x (#1 ), b.y (#2), a .x (#0 )]
255255├── join type: INNER
256- ├── build keys: [b .x (#1 )]
257- ├── probe keys: [a .x (#0 )]
256+ ├── build keys: [a .x (#0 )]
257+ ├── probe keys: [b .x (#1 )]
258258├── keys is null equal: [false]
259259├── filters: []
260260├── build join filters:
261- │ └── filter id:0, build key:b .x (#1 ), probe key:a .x (#0 ), filter type:inlist,min_max
262- ├── estimated rows: 2.37
261+ │ └── filter id:0, build key:a .x (#0 ), probe key:b .x (#1 ), filter type:inlist,min_max
262+ ├── estimated rows: 2.67
263263├── Filter(Build)
264- │ ├── output columns: [b .x (#1), b.y (#2 )]
265- │ ├── filters: [is_true(b .x (#1 ) > 42)]
266- │ ├── estimated rows: 2.67
264+ │ ├── output columns: [a .x (#0 )]
265+ │ ├── filters: [is_true(a .x (#0 ) > 42)]
266+ │ ├── estimated rows: 2.00
267267│ └── TableScan
268- │ ├── table: default.default.twocolumn
269- │ ├── output columns: [x (#1), y (#2 )]
268+ │ ├── table: default.default.onecolumn
269+ │ ├── output columns: [x (#0 )]
270270│ ├── read rows: 4
271271│ ├── read size: < 1 KiB
272272│ ├── partitions total: 1
273273│ ├── partitions scanned: 1
274274│ ├── pruning stats: [segments: <range pruning: 1 to 1>, blocks: <range pruning: 1 to 1>]
275- │ ├── push downs: [filters: [is_true(twocolumn .x (#1 ) > 42)], limit: NONE]
275+ │ ├── push downs: [filters: [is_true(onecolumn .x (#0 ) > 42)], limit: NONE]
276276│ └── estimated rows: 4.00
277277└── Filter(Probe)
278- ├── output columns: [a .x (#0 )]
279- ├── filters: [is_true(a .x (#0 ) > 42)]
278+ ├── output columns: [b .x (#1), b.y (#2 )]
279+ ├── filters: [is_true(b .x (#1 ) > 42)]
280280 ├── estimated rows: 2.67
281281 └── TableScan
282- ├── table: default.default.onecolumn
283- ├── output columns: [x (#0 )]
282+ ├── table: default.default.twocolumn
283+ ├── output columns: [x (#1), y (#2 )]
284284 ├── read rows: 4
285285 ├── read size: < 1 KiB
286286 ├── partitions total: 1
287287 ├── partitions scanned: 1
288288 ├── pruning stats: [segments: <range pruning: 1 to 1>, blocks: <range pruning: 1 to 1>]
289- ├── push downs: [filters: [is_true(onecolumn .x (#0 ) > 42)], limit: NONE]
289+ ├── push downs: [filters: [is_true(twocolumn .x (#1 ) > 42)], limit: NONE]
290290 ├── apply join filters: [#0]
291291 └── estimated rows: 4.00
292292
@@ -345,11 +345,11 @@ HashJoin
345345├── filters: []
346346├── build join filters:
347347│ └── filter id:0, build key:b.x (#1), probe key:a.x (#0), filter type:inlist,min_max
348- ├── estimated rows: 2.37
348+ ├── estimated rows: 4.00
349349├── Filter(Build)
350350│ ├── output columns: [b.x (#1), b.y (#2)]
351351│ ├── filters: [is_true(b.x (#1) > 42), is_true(b.x (#1) < 45)]
352- │ ├── estimated rows: 2.67
352+ │ ├── estimated rows: 2.00
353353│ └── TableScan
354354│ ├── table: default.default.twocolumn
355355│ ├── output columns: [x (#1), y (#2)]
@@ -363,7 +363,7 @@ HashJoin
363363└── Filter(Probe)
364364 ├── output columns: [a.x (#0)]
365365 ├── filters: [is_true(a.x (#0) > 42), is_true(a.x (#0) < 45)]
366- ├── estimated rows: 2.67
366+ ├── estimated rows: 2.00
367367 └── TableScan
368368 ├── table: default.default.onecolumn
369369 ├── output columns: [x (#0)]
@@ -384,7 +384,7 @@ explain select * from onecolumn as a left join twocolumn as b on a.x = b.x where
384384Filter
385385├── output columns: [a.x (#0), b.x (#1), b.y (#2)]
386386├── filters: [is_true((b.x (#1) > 44 OR a.x (#0) < 43))]
387- ├── estimated rows: 1.33
387+ ├── estimated rows: 1.78
388388└── HashJoin
389389 ├── output columns: [a.x (#0), b.x (#1), b.y (#2)]
390390 ├── join type: LEFT OUTER
@@ -393,7 +393,7 @@ Filter
393393 ├── keys is null equal: [false]
394394 ├── filters: []
395395 ├── build join filters:
396- ├── estimated rows: 4.00
396+ ├── estimated rows: 5.33
397397 ├── TableScan(Build)
398398 │ ├── table: default.default.twocolumn
399399 │ ├── output columns: [x (#1), y (#2)]
@@ -426,11 +426,11 @@ HashJoin
426426├── keys is null equal: [false]
427427├── filters: []
428428├── build join filters:
429- ├── estimated rows: 2.67
429+ ├── estimated rows: 4.00
430430├── Filter(Build)
431431│ ├── output columns: [a.x (#0)]
432432│ ├── filters: [is_true(a.x (#0) > 42), is_true(a.x (#0) < 45)]
433- │ ├── estimated rows: 2.67
433+ │ ├── estimated rows: 2.00
434434│ └── TableScan
435435│ ├── table: default.default.onecolumn
436436│ ├── output columns: [x (#0)]
@@ -444,7 +444,7 @@ HashJoin
444444└── Filter(Probe)
445445 ├── output columns: [b.x (#1), b.y (#2)]
446446 ├── filters: [is_true(b.x (#1) > 42), is_true(b.x (#1) < 45)]
447- ├── estimated rows: 2.67
447+ ├── estimated rows: 2.00
448448 └── TableScan
449449 ├── table: default.default.twocolumn
450450 ├── output columns: [x (#1), y (#2)]
0 commit comments