[
https://issues.apache.org/jira/browse/FLINK-41817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated FLINK-41817:
-----------------------------------
Labels: pull-request-available (was: )
> Pass the key-only deletes of the input to PTF changelog strategies
> ------------------------------------------------------------------
>
> Key: FLINK-41817
> URL: https://issues.apache.org/jira/browse/FLINK-41817
> Project: Flink
> Issue Type: Improvement
> Components: Table SQL / Planner
> Reporter: Gustavo de Morais
> Priority: Major
> Labels: pull-request-available
>
> When the planner asks a {{ChangelogFunction}} or a built-in changelog mode
> strategy for its changelog mode, it builds the input modes with
> {{FlinkChangelogModeInferenceProgram#toChangelogMode}}, which copies only the
> row kinds of the input. {{ChangelogContext#getTableChangelogMode}} therefore
> never reports key-only deletes, although the input sends them. A PTF that
> forwards key-only deletes, e.g. DEDUPLICATE partitioned by the input's upsert
> key, has to declare full deletes and keep state to produce them, also when
> the sink accepts key-only deletes.
> We should pass the full changelog mode of each input, including key-only
> deletes, to the strategy.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)