[fix](Nereids): move SimplifyAggGroupBy before NormalizeAggregate. (#18918)
This commit is contained in:
@ -150,15 +150,15 @@ public class NereidsRewriter extends BatchRewriteJob {
|
||||
),
|
||||
|
||||
topic("Window analysis",
|
||||
topDown(
|
||||
new SimplifyAggGroupBy()
|
||||
),
|
||||
topDown(
|
||||
new ExtractAndNormalizeWindowExpression(),
|
||||
// execute NormalizeAggregate() again to resolve nested AggregateFunctions in WindowExpression,
|
||||
// e.g. sum(sum(c1)) over(partition by avg(c1))
|
||||
new NormalizeAggregate(),
|
||||
new CheckAndStandardizeWindowFunctionAndFrame()
|
||||
),
|
||||
topDown(
|
||||
new SimplifyAggGroupBy()
|
||||
)
|
||||
),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user