Gustavo de Morais created FLINK-41709:
-----------------------------------------
Summary: Merge consecutive Calcs after changelog mode inference
Key: FLINK-41709
URL: https://issues.apache.org/jira/browse/FLINK-41709
Project: Flink
Issue Type: Improvement
Components: Table SQL / Planner
Reporter: Gustavo de Morais
Assignee: Gustavo de Morais
After changelog mode inference, two {{Calc}} nodes can end up directly on top
of each other, for example when a filter that was pushed into a removed
{{ChangelogNormalize}} is kept as its own {{Calc}} below a projection. The same
happens in other plans as well. Two consecutive Calcs add no value and cost an
extra operator per row.
We should merge consecutive {{Calc}} nodes after changelog mode inference, as
the planner already does before it, while keeping the changelog traits of the
merged node correct.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)