Commit f2a8207
committed
fix: address review feedback on mixed partial/final aggregate guard
- Restore `convert` scaladoc in `CometAggregateExpressionSerde` that was
displaced when `supportsMixedPartialFinal` was added
- Require `aggregateExpressions.nonEmpty` in `findPartialAggInPlan` so
intermediate distinct-elimination stages (empty agg, group-by only)
are not incorrectly tagged as the Partial to disable
- Document that `canFinalAggregateBeConverted` mirrors the predicate
checks in `CometBaseAggregate.doConvert` and must be kept in sync1 parent f7fa33c commit f2a8207
2 files changed
Lines changed: 19 additions & 10 deletions
File tree
- spark/src/main/scala/org/apache/comet
- rules
- serde
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
650 | 655 | | |
651 | 656 | | |
652 | 657 | | |
| |||
690 | 695 | | |
691 | 696 | | |
692 | 697 | | |
693 | | - | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
694 | 701 | | |
695 | 702 | | |
696 | 703 | | |
697 | | - | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
698 | 707 | | |
699 | 708 | | |
700 | 709 | | |
| |||
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
52 | 60 | | |
53 | 61 | | |
54 | 62 | | |
| |||
68 | 76 | | |
69 | 77 | | |
70 | 78 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
0 commit comments