Skip to content

Commit df59cd9

Browse files
committed
fix test
1 parent 176a9c3 commit df59cd9

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
@@ -251,42 +251,42 @@ query T
251251
explain select * from onecolumn as a left join twocolumn as b on a.x = b.x where b.x > 42
252252
----
253253
HashJoin
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
384384
Filter
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)]

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)