[
https://issues.apache.org/jira/browse/FLINK-41675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18152775#comment-18152775
]
Gustavo de Morais commented on FLINK-41675:
-------------------------------------------
Fixed in apache/flink:master 718e3422f7e07e052b3fdcab76468abde1bad6ec
> Remove ChangelogNormalize below PTFs that ignore retractions: key-only
> deletes through keyless Calcs
> ----------------------------------------------------------------------------------------------------
>
> Key: FLINK-41675
> URL: https://issues.apache.org/jira/browse/FLINK-41675
> Project: Flink
> Issue Type: Improvement
> Components: Table SQL / Planner
> Reporter: Gustavo de Morais
> Assignee: Gustavo de Morais
> Priority: Major
>
> Part of removing unnecessary {{ChangelogNormalize}} below built-in PTFs that
> ignore retractions (e.g. {{TO_APPEND}}), see
> [apache/flink#30123|https://github.com/apache/flink/pull/30123].
> A Calc that drops the upsert key cannot forward key-only deletes, such as
> upsert-kafka tombstones, so the planner keeps a {{ChangelogNormalize}} to
> produce full deletes.
> If the consumer ignores retractions, the content of the tombstone doesn't
> matter. We should let the Calc forward it as an all-NULL row, which the PTF
> then drops.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)