Skip to content

Commit ab101f7

Browse files
committed
test
1 parent b8b55aa commit ab101f7

20 files changed

Lines changed: 134 additions & 134 deletions

src/query/sql/test-support/data/results/obfuscated/01_multi_join_avg_case_expression_physical.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,27 @@ Exchange
44
└── EvalScalar
55
├── output columns: [sell_mnt = 0 (#170)]
66
├── expressions: [t.sell_mnt (#169) = 0]
7-
├── estimated rows: 2966406923885887436619776.00
7+
├── estimated rows: 3018452971074898530140160.00
88
└── EvalScalar
99
├── output columns: [sell_mnt (#169)]
1010
├── expressions: [sum(CASE WHEN d.a1v = '603020' THEN 1 ELSE 0 END) (#167) / CAST(if(CAST(count(CASE WHEN d.a1v = '603020' THEN 1 ELSE 0 END) (#168) = 0 AS Boolean NULL), 1, count(CASE WHEN d.a1v = '603020' THEN 1 ELSE 0 END) (#168)) AS UInt64 NULL) + 3]
11-
├── estimated rows: 2966406923885887436619776.00
11+
├── estimated rows: 3018452971074898530140160.00
1212
└── AggregateFinal
1313
├── output columns: [sum(CASE WHEN d.a1v = '603020' THEN 1 ELSE 0 END) (#167), count(CASE WHEN d.a1v = '603020' THEN 1 ELSE 0 END) (#168), a.a0d (#0), a.a0k (#7), a.a0m (#9), c.a5m (#144)]
1414
├── group by: [a0d, a0k, a0m, a5m]
1515
├── aggregate functions: [sum(sum_arg_0), count()]
16-
├── estimated rows: 2966406923885887436619776.00
16+
├── estimated rows: 3018452971074898530140160.00
1717
└── Exchange
1818
├── output columns: [sum(CASE WHEN d.a1v = '603020' THEN 1 ELSE 0 END) (#167), count(CASE WHEN d.a1v = '603020' THEN 1 ELSE 0 END) (#168), a.a0d (#0), a.a0k (#7), a.a0m (#9), c.a5m (#144)]
1919
├── exchange type: Hash(0, 1, 2, 3)
2020
└── AggregatePartial
2121
├── group by: [a0d, a0k, a0m, a5m]
2222
├── aggregate functions: [sum(sum_arg_0), count()]
23-
├── estimated rows: 2966406923885887436619776.00
23+
├── estimated rows: 3018452971074898530140160.00
2424
└── EvalScalar
2525
├── output columns: [a.a0d (#0), a.a0k (#7), a.a0m (#9), c.a5m (#144), sum_arg_0 (#166)]
2626
├── expressions: [if(d.a1v (#154) = '603020', 1, 0)]
27-
├── estimated rows: 8899220771657662846730240.00
27+
├── estimated rows: 9055358913224696664162304.00
2828
└── HashJoin
2929
├── output columns: [a.a0d (#0), a.a0k (#7), a.a0m (#9), d.a1v (#154), c.a5m (#144)]
3030
├── join type: INNER
@@ -35,7 +35,7 @@ Exchange
3535
├── build join filters:
3636
│ ├── filter id:2, build key:b.a0k (#48), probe targets:[a.a0k (#7)@scan0], filter type:bloom,inlist,min_max
3737
│ └── filter id:3, build key:b.a0n (#50), probe targets:[a.a0n (#10)@scan0], filter type:bloom,inlist,min_max
38-
├── estimated rows: 8899220771657662846730240.00
38+
├── estimated rows: 9055358913224696664162304.00
3939
├── Exchange(Build)
4040
│ ├── output columns: [b.a0k (#48), b.a0n (#50), b.a2c (#52), b.a2k (#61)]
4141
│ ├── exchange type: Broadcast
@@ -58,7 +58,7 @@ Exchange
5858
├── filters: []
5959
├── build join filters:
6060
│ └── filter id:1, build key:c.a0m (#149), probe targets:[a.a0m (#9)@scan0], filter type:bloom,inlist,min_max
61-
├── estimated rows: 156490960961629056.00
61+
├── estimated rows: 159236617962791040.00
6262
├── Exchange(Build)
6363
│ ├── output columns: [c.a5m (#144), a0m (#149)]
6464
│ ├── exchange type: Broadcast
@@ -85,7 +85,7 @@ Exchange
8585
├── filters: []
8686
├── build join filters:
8787
│ └── filter id:0, build key:d.a5t (#151), probe targets:[a.a0l (#8)@scan0], filter type:bloom,inlist,min_max
88-
├── estimated rows: 2453851765646.43
88+
├── estimated rows: 2496904956953.83
8989
├── Exchange(Build)
9090
│ ├── output columns: [d.a5t (#151), d.a1v (#154)]
9191
│ ├── exchange type: Broadcast
@@ -109,5 +109,5 @@ Exchange
109109
├── partitions scanned: 0
110110
├── push downs: [filters: [a0c.a0d (#0) >= '20240526' and a0c.a0d (#0) <= '20250525'], limit: NONE]
111111
├── apply join filters: [#2, #3, #1, #0]
112-
└── estimated rows: 3042216421.58
112+
└── estimated rows: 3095592557.59
113113

src/query/sql/test-support/data/results/obfuscated/01_multi_join_sum_case_expression_physical.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ Exchange
44
└── EvalScalar
55
├── output columns: [sell_mnt = 0 (#168)]
66
├── expressions: [t.sell_mnt (#167) = 0]
7-
├── estimated rows: 2966406923885887436619776.00
7+
├── estimated rows: 3018452971074898530140160.00
88
└── AggregateFinal
99
├── output columns: [sum(CASE WHEN d.a1v = '603020' THEN 1 ELSE 0 END) (#167), a.a0d (#0), a.a0k (#7), a.a0m (#9), c.a5m (#144)]
1010
├── group by: [a0d, a0k, a0m, a5m]
1111
├── aggregate functions: [sum(sum_arg_0)]
12-
├── estimated rows: 2966406923885887436619776.00
12+
├── estimated rows: 3018452971074898530140160.00
1313
└── Exchange
1414
├── output columns: [sum(CASE WHEN d.a1v = '603020' THEN 1 ELSE 0 END) (#167), a.a0d (#0), a.a0k (#7), a.a0m (#9), c.a5m (#144)]
1515
├── exchange type: Hash(0, 1, 2, 3)
1616
└── AggregatePartial
1717
├── group by: [a0d, a0k, a0m, a5m]
1818
├── aggregate functions: [sum(sum_arg_0)]
19-
├── estimated rows: 2966406923885887436619776.00
19+
├── estimated rows: 3018452971074898530140160.00
2020
└── EvalScalar
2121
├── output columns: [a.a0d (#0), a.a0k (#7), a.a0m (#9), c.a5m (#144), sum_arg_0 (#166)]
2222
├── expressions: [if(d.a1v (#154) = '603020', 1, 0)]
23-
├── estimated rows: 8899220771657662846730240.00
23+
├── estimated rows: 9055358913224696664162304.00
2424
└── HashJoin
2525
├── output columns: [a.a0d (#0), a.a0k (#7), a.a0m (#9), d.a1v (#154), c.a5m (#144)]
2626
├── join type: INNER
@@ -31,7 +31,7 @@ Exchange
3131
├── build join filters:
3232
│ ├── filter id:2, build key:b.a0k (#48), probe targets:[a.a0k (#7)@scan0], filter type:bloom,inlist,min_max
3333
│ └── filter id:3, build key:b.a0n (#50), probe targets:[a.a0n (#10)@scan0], filter type:bloom,inlist,min_max
34-
├── estimated rows: 8899220771657662846730240.00
34+
├── estimated rows: 9055358913224696664162304.00
3535
├── Exchange(Build)
3636
│ ├── output columns: [b.a0k (#48), b.a0n (#50), b.a2c (#52), b.a2k (#61)]
3737
│ ├── exchange type: Broadcast
@@ -54,7 +54,7 @@ Exchange
5454
├── filters: []
5555
├── build join filters:
5656
│ └── filter id:1, build key:c.a0m (#149), probe targets:[a.a0m (#9)@scan0], filter type:bloom,inlist,min_max
57-
├── estimated rows: 156490960961629056.00
57+
├── estimated rows: 159236617962791040.00
5858
├── Exchange(Build)
5959
│ ├── output columns: [c.a5m (#144), a0m (#149)]
6060
│ ├── exchange type: Broadcast
@@ -81,7 +81,7 @@ Exchange
8181
├── filters: []
8282
├── build join filters:
8383
│ └── filter id:0, build key:d.a5t (#151), probe targets:[a.a0l (#8)@scan0], filter type:bloom,inlist,min_max
84-
├── estimated rows: 2453851765646.43
84+
├── estimated rows: 2496904956953.83
8585
├── Exchange(Build)
8686
│ ├── output columns: [d.a5t (#151), d.a1v (#154)]
8787
│ ├── exchange type: Broadcast
@@ -105,5 +105,5 @@ Exchange
105105
├── partitions scanned: 0
106106
├── push downs: [filters: [a0c.a0d (#0) >= '20240526' and a0c.a0d (#0) <= '20250525'], limit: NONE]
107107
├── apply join filters: [#2, #3, #1, #0]
108-
└── estimated rows: 3042216421.58
108+
└── estimated rows: 3095592557.59
109109

src/query/sql/tests/it/optimizer/selectivity.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ out stats :
6262

6363
expr : a > 17
6464
cardinality : 100
65-
estimated : 36.36363636363637
65+
estimated : 27.27272727272727
6666
in stats :
6767
0 ColumnStat { min: UInt(10), max: UInt(20), ndv: Stat(10.0), null_count: 0, histogram: None }
6868
1 ColumnStat { min: UInt(10), max: UInt(20), ndv: Stat(10.0), null_count: 10, histogram: None }
6969
out stats :
70-
0 ColumnStat { min: UInt(17), max: UInt(20), ndv: Stat(4.0), null_count: 0, histogram: None }
71-
1 ColumnStat { min: UInt(10), max: UInt(20), ndv: Stat(4.0), null_count: 4, histogram: None }
70+
0 ColumnStat { min: UInt(17), max: UInt(20), ndv: Stat(3.0), null_count: 0, histogram: None }
71+
1 ColumnStat { min: UInt(10), max: UInt(20), ndv: Stat(3.0), null_count: 3, histogram: None }
7272

7373
expr : a > 20
7474
cardinality : 100
@@ -162,13 +162,13 @@ out stats :
162162

163163
expr : a < 17
164164
cardinality : 100
165-
estimated : 72.72727272727273
165+
estimated : 63.63636363636363
166166
in stats :
167167
0 ColumnStat { min: UInt(10), max: UInt(20), ndv: Stat(10.0), null_count: 0, histogram: None }
168168
1 ColumnStat { min: UInt(10), max: UInt(20), ndv: Stat(10.0), null_count: 10, histogram: None }
169169
out stats :
170-
0 ColumnStat { min: UInt(10), max: UInt(17), ndv: Stat(8.0), null_count: 0, histogram: None }
171-
1 ColumnStat { min: UInt(10), max: UInt(20), ndv: Stat(8.0), null_count: 8, histogram: None }
170+
0 ColumnStat { min: UInt(10), max: UInt(17), ndv: Stat(7.0), null_count: 0, histogram: None }
171+
1 ColumnStat { min: UInt(10), max: UInt(20), ndv: Stat(7.0), null_count: 7, histogram: None }
172172

173173
expr : a < 20
174174
cardinality : 100

tests/sqllogictests/suites/mode/cluster/explain_v2.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Exchange
4343
└── Filter
4444
├── output columns: [t1.a (#0), t1.b (#1), t2.b (#3), t2.a (#2)]
4545
├── filters: [t1.a (#0) > 3 or t2.a (#2) > 5 and t1.a (#0) > 1]
46-
├── estimated rows: 99.68
46+
├── estimated rows: 99.60
4747
└── HashJoin
4848
├── output columns: [t1.a (#0), t1.b (#1), t2.b (#3), t2.a (#2)]
4949
├── join type: INNER
@@ -53,7 +53,7 @@ Exchange
5353
├── filters: []
5454
├── build join filters:
5555
│ └── filter id:0, build key:t2.a (#2), probe targets:[t1.a (#0)@scan0], filter type:bloom,inlist,min_max
56-
├── estimated rows: 99.92
56+
├── estimated rows: 99.84
5757
├── Exchange(Build)
5858
│ ├── output columns: [t2.a (#2), t2.b (#3)]
5959
│ ├── exchange type: Broadcast

tests/sqllogictests/suites/mode/cluster/filter_nulls.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Exchange
9090
├── filters: []
9191
├── build join filters:
9292
│ └── filter id:1, build key:table3.value (#2), probe targets:[table1.value (#0)@scan0], filter type:bloom,inlist,min_max
93-
├── estimated rows: 200.00
93+
├── estimated rows: 500.00
9494
├── Exchange(Build)
9595
│ ├── output columns: [table3.value (#2), table2.value (#1)]
9696
│ ├── exchange type: Broadcast

tests/sqllogictests/suites/mode/cluster/window.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Exchange
8787
└── WindowPartition
8888
├── output columns: [e.name (#1), e.salary (#3), d.department_name (#5), d.department_id (#4)]
8989
├── hash keys: [department_id]
90-
├── estimated rows: 8.00
90+
├── estimated rows: 10.00
9191
└── Exchange
9292
├── output columns: [e.name (#1), e.salary (#3), d.department_name (#5), d.department_id (#4)]
9393
├── exchange type: Hash(d.department_id (#4))
@@ -100,7 +100,7 @@ Exchange
100100
├── filters: []
101101
├── build join filters:
102102
│ └── filter id:0, build key:d.department_id (#4), probe targets:[e.department_id (#2)@scan0], filter type:bloom,inlist,min_max
103-
├── estimated rows: 8.00
103+
├── estimated rows: 10.00
104104
├── Exchange(Build)
105105
│ ├── output columns: [d.department_id (#4), d.department_name (#5)]
106106
│ ├── exchange type: Broadcast

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ explain select 1 from bloom_test_t where c1 = '5'
3939
EvalScalar
4040
├── output columns: [1 (#2)]
4141
├── expressions: [1]
42-
├── estimated rows: 1.50
42+
├── estimated rows: 1.20
4343
└── TableScan
4444
├── table: default.default.bloom_test_t
4545
├── scan id: 0
@@ -50,7 +50,7 @@ EvalScalar
5050
├── partitions scanned: 1
5151
├── pruning stats: [segments: <range pruning: 2 to 2 cost: <slt:ignore>>, blocks: <range pruning: 2 to 2 cost: <slt:ignore>, bloom pruning: 2 to 1 cost: <slt:ignore>>]
5252
├── push downs: [filters: [is_true(bloom_test_t.c1 (#0) = '5')], limit: NONE]
53-
└── estimated rows: 1.50
53+
└── estimated rows: 1.20
5454

5555
query I
5656
select 1 from bloom_test_t where c1 = 5

0 commit comments

Comments
 (0)