jackylau created FLINK-29182:
--------------------------------

             Summary: SumAggFunction redundant computations
                 Key: FLINK-29182
                 URL: https://issues.apache.org/jira/browse/FLINK-29182
             Project: Flink
          Issue Type: Bug
          Components: Table SQL / Planner
    Affects Versions: 1.16.0
            Reporter: jackylau
             Fix For: 1.16.0


{code:java}
// code placeholder
public Expression[] accumulateExpressions() {
    return new Expression[] {
        /* sum = */ ifThenElse(
                isNull(operand(0)),
                sum,
                ifThenElse(
                        isNull(operand(0)),
                        sum,
                        ifThenElse(isNull(sum), operand(0), adjustedPlus(sum, 
operand(0)))))
    };
} {code}
it exists redundant computations



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to