You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "jackylau (Jira)" <ji...@apache.org> on 2022/09/02 06:43:00 UTC
[jira] [Created] (FLINK-29182) SumAggFunction redundant computations
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)