Repository navigation
Commit 99902be
refactor: drop unreachable GroupingSet guard in EliminateGroupByConstant
`Aggregate::try_new` calls `enumerate_grouping_sets`, which folds a group
list that contains a grouping set into one `GroupingSet` expression. Thus
`group_expr.len() == 1` for such an aggregate, and the first two
conditions already make the rule return. The extra check can not fire.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 2a7c2fa commit 99902be
1 file changed
Lines changed: 1 addition & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 73 | + | |
82 | 74 | | |
83 | 75 | | |
84 | 76 | | |
| |||
0 commit comments