You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(query): optimize the cost estimation of some query plans (#18926)
* fix(query): optimize the cost estimation of some query plans
* fix(query): optimize the cost estimation of some query plans
* fix(query): optimize the cost estimation of some query plans
* fix(query): optimize the cost estimation of some query plans
* fix(query): optimize the cost estimation of some query plans
* fix(query): optimize the cost estimation of some query plans
* fix(query): optimize the cost estimation of some query plans
* fix(query): optimize the cost estimation of some query plans
* fix(query): optimize the cost estimation of some query plans
* fix(query): optimize the cost estimation of some query plans
Copy file name to clipboardExpand all lines: src/query/service/tests/it/sql/planner/optimizer/data/results/obfuscated/01_multi_join_avg_case_expression_optimized.txt
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -14,13 +14,13 @@ Exchange(Merge)
14
14
└── EvalScalar
15
15
├── scalars: [a.a0d (#0) AS (#0), a.a0k (#7) AS (#7), a.a0m (#9) AS (#9), c.a5m (#144) AS (#144), if(eq(d.a1v (#154), '603020'), 1, 0) AS (#166), b.a2t (#70) AS (#171), c.a4m (#118) AS (#172), d.a5w (#156) AS (#173)]
Copy file name to clipboardExpand all lines: src/query/service/tests/it/sql/planner/optimizer/data/results/obfuscated/01_multi_join_avg_case_expression_physical.txt
+44-44Lines changed: 44 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -4,76 +4,76 @@ Exchange
4
4
└── EvalScalar
5
5
├── output columns: [sell_mnt = 0 (#170)]
6
6
├── expressions: [t.sell_mnt (#169) = 0]
7
-
├── estimated rows: 7119376617326129446912.00
7
+
├── estimated rows: 2966406923885887436619776.00
8
8
└── EvalScalar
9
9
├── output columns: [sell_mnt (#169)]
10
10
├── 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: 7119376617326129446912.00
11
+
├── estimated rows: 2966406923885887436619776.00
12
12
└── AggregateFinal
13
13
├── 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)]
0 commit comments