Commit f4f5719
committed
support count pushdown. tpcds 14/ tpch13
ds14 增加了agg push,执行时间 4.7 -> 4.8
h13 增加了 agg push,应该让p6 恢复到 p4 的成绩,提高一些
当任一 group key的ndv 接近 行数(0.9 倍)时,不下推agg
DORIS-24367 case-when 不能下推join 补null的一侧
pick unnest-subquery-cte
ut-tmp
adjust rt
update-shape
fix eager_agg.groovy, runtime_filter_mode=OFF;
fmt
14/67 因为rebase后增加了 repeat 拆分, 形状变化
支持 min(if), max(if), 增加了context.isValid检查,避免无效下推
doris-24240: rewriteRoot 检查nullable失败则不做eagerAgg
column pruning 不产生不合法 的setOp
24207-2: orExpansion union 字段没对齐
DORIS-24239 context.groupKeys 不能为空
DORIS-24206: fix EliminateGroupByKeyByUniform bug:没有替换alias的exprId
DORIS-24205
1. union 的孩子不能部分改写
2. agg 输入字段和 group key 有交集,则不下推
LogicalProject 构造projectMap时不能有unbound
DORIS-23842 没有aggFunc时 下推包含所有group key
的分支,而不是大分支. ds37/38/82/87 受到影响。select distinct A from T1 join T2 on ... group by A`
aliasMap 使用HashMap,不用IdentityMap
DORIS-24149
DORIS-24151
doris-24150 rt case
1. exprId 的等值判断, 2.update rt.
DORIS-24150
update shape
remove unused code
1. sum-if 不考虑穿过bigJoin, 2. 支持union
q5 两个sum(0)错误去重了
sum-if 基本款 (还没有支持union), 43 有提升
simple sum-if no union
检查context的字段 是project的输出.拒绝 sum(A) 下推 proj(x, x+y as A) 且x 不是group key
derive deep false
throw exception for eager agg when FeDebug
1. remove finalGroupKeys, 2. project 下推后改写projects
push agg on join
group key only slotreference
do not support avg/count
mode=1 时 即使没有经过big join 也要 强制 下推
shape with/without pkfk based on tpc_preview1 parent 4d616aa commit f4f5719
File tree
283 files changed
+25378
-12624
lines changed- fe/fe-core/src
- main/java/org/apache/doris
- nereids
- jobs/executor
- rules/rewrite
- eageraggregation
- trees
- expressions/functions
- plans/logical
- util
- qe
- test/java/org/apache/doris/nereids
- rules/rewrite/eageraggregation
- trees/plans
- regression-test
- data
- nereids_p0/eager_agg
- nereids_rules_p0/eager_aggregate
- shape_check
- tpcds_sf1000_nopkfk/shape
- tpcds_sf1000
- hint
- shape
- tpcds_sf100
- rf_prune
- shape
- tpch_sf1000
- hint
- rf_prune
- shape
- suites
- nereids_p0/eager_agg
- nereids_rules_p0/eager_aggregate
- shape_check
- tpcds_sf1000_nopkfk
- shape
- tpcds_sf1000
- shape
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
283 files changed
+25378
-12624
lines changedLines changed: 128 additions & 124 deletions
Large diffs are not rendered by default.
Lines changed: 6 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
| |||
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
| 53 | + | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
62 | | - | |
63 | | - | |
64 | 61 | | |
65 | 62 | | |
66 | 63 | | |
| |||
74 | 71 | | |
75 | 72 | | |
76 | 73 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | 74 | | |
81 | 75 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | 76 | | |
95 | | - | |
| 77 | + | |
96 | 78 | | |
97 | 79 | | |
98 | 80 | | |
| |||
460 | 442 | | |
461 | 443 | | |
462 | 444 | | |
463 | | - | |
| 445 | + | |
464 | 446 | | |
465 | 447 | | |
466 | 448 | | |
| |||
497 | 479 | | |
498 | 480 | | |
499 | 481 | | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
508 | 485 | | |
509 | 486 | | |
510 | 487 | | |
| |||
Lines changed: 23 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
| |||
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
72 | | - | |
73 | 71 | | |
74 | 72 | | |
75 | 73 | | |
| |||
221 | 219 | | |
222 | 220 | | |
223 | 221 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | 222 | | |
232 | 223 | | |
233 | 224 | | |
234 | 225 | | |
235 | 226 | | |
236 | 227 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
246 | 237 | | |
247 | 238 | | |
248 | 239 | | |
| |||
420 | 411 | | |
421 | 412 | | |
422 | 413 | | |
423 | | - | |
424 | 414 | | |
425 | 415 | | |
| 416 | + | |
| 417 | + | |
426 | 418 | | |
427 | 419 | | |
428 | 420 | | |
429 | 421 | | |
430 | 422 | | |
431 | | - | |
432 | 423 | | |
433 | 424 | | |
434 | 425 | | |
| |||
442 | 433 | | |
443 | 434 | | |
444 | 435 | | |
445 | | - | |
| 436 | + | |
446 | 437 | | |
447 | 438 | | |
448 | 439 | | |
449 | 440 | | |
450 | 441 | | |
451 | 442 | | |
452 | | - | |
| 443 | + | |
453 | 444 | | |
454 | | - | |
| 445 | + | |
455 | 446 | | |
456 | 447 | | |
457 | 448 | | |
458 | 449 | | |
459 | 450 | | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
460 | 459 | | |
461 | 460 | | |
462 | 461 | | |
463 | 462 | | |
464 | 463 | | |
465 | 464 | | |
466 | | - | |
| 465 | + | |
467 | 466 | | |
468 | 467 | | |
469 | 468 | | |
| |||
Lines changed: 26 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
183 | 186 | | |
184 | 187 | | |
185 | 188 | | |
| |||
319 | 322 | | |
320 | 323 | | |
321 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
322 | 334 | | |
323 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
324 | 345 | | |
325 | 346 | | |
326 | 347 | | |
| |||
335 | 356 | | |
336 | 357 | | |
337 | 358 | | |
338 | | - | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
339 | 363 | | |
340 | 364 | | |
341 | 365 | | |
| |||
0 commit comments