[
https://issues.apache.org/jira/browse/FLINK-41675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gustavo de Morais updated FLINK-41675:
--------------------------------------
Description:
Part of removing unnecessary {{ChangelogNormalize}} below built-in PTFs that
skip 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 skips 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.
was:
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 skips 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.
Summary: Remove ChangelogNormalize below PTFs that skip retractions:
key-only deletes through keyless Calcs (was: Forward key-only deletes through
keyless Calcs to PTFs that skip retractions)
> Remove ChangelogNormalize below PTFs that skip 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
> skip 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 skips 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)