Skip to content

Commit 2e9d036

Browse files
committed
fix test
1 parent dae32c2 commit 2e9d036

File tree

3 files changed

+29
-29
lines changed

3 files changed

+29
-29
lines changed

tests/sqllogictests/suites/mode/standalone/explain/bloom_filter.test

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ explain select 1 from bloom_test_t where c2=3;
128128
EvalScalar
129129
├── output columns: [1 (#3)]
130130
├── expressions: [1]
131-
├── estimated rows: 2.67
131+
├── estimated rows: 4.00
132132
└── Filter
133133
├── output columns: []
134134
├── filters: [is_true(bloom_test_t.c2 (#1) = 3)]
135-
├── estimated rows: 2.67
135+
├── estimated rows: 4.00
136136
└── TableScan
137137
├── table: default.default.bloom_test_t
138138
├── output columns: [c2 (#1)]
@@ -150,11 +150,11 @@ explain select 1 from bloom_test_t where c3=12345;
150150
EvalScalar
151151
├── output columns: [1 (#3)]
152152
├── expressions: [1]
153-
├── estimated rows: 1.00
153+
├── estimated rows: 4.00
154154
└── Filter
155155
├── output columns: []
156156
├── filters: [is_true(bloom_test_t.c3 (#2) = 12345)]
157-
├── estimated rows: 1.00
157+
├── estimated rows: 4.00
158158
└── TableScan
159159
├── table: default.default.bloom_test_t
160160
├── output columns: [c3 (#2)]

tests/sqllogictests/suites/mode/standalone/explain/join.test

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -248,42 +248,42 @@ query T
248248
explain select * from onecolumn as a left join twocolumn as b on a.x = b.x where b.x > 42
249249
----
250250
HashJoin
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
381381
Filter
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)]

tests/sqllogictests/suites/no_table_meta_cache/explain/auto_rebuild_missing_bloom_index.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ explain select * from t where s = '12';
122122
Filter
123123
├── output columns: [t.c (#0), t.s (#1)]
124124
├── filters: [is_true(t.s (#1) = '12')]
125-
├── estimated rows: 2.00
125+
├── estimated rows: 2.67
126126
└── TableScan
127127
├── table: default.test_auto_rebuild_missing.t
128128
├── output columns: [c (#0), s (#1)]

0 commit comments

Comments
 (0)