[
https://issues.apache.org/jira/browse/FLINK-39258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gustavo de Morais updated FLINK-39258:
--------------------------------------
Release Note: Flink 2.3 shipped a first, minimal version of
{{TO_CHANGELOG}} and {{FROM_CHANGELOG}} that only supported retract mode:
{{FROM_CHANGELOG}} required separate {{UPDATE_BEFORE}} and {{UPDATE_AFTER}}
events, and {{TO_CHANGELOG}} on an upsert input always added a stateful
{{ChangelogNormalize}} operator. Flink 2.4 supports all changelog modes.
{{TO_CHANGELOG}} skips {{ChangelogNormalize}} for upsert inputs when the
{{op_mapping}} omits {{UPDATE_BEFORE}} and either omits {{DELETE}} or sets
{{produces_full_deletes => false}}. {{FROM_CHANGELOG}} produces an upsert table
with {{PARTITION BY <key>}} and an {{op_mapping}} that contains
{{UPDATE_AFTER}} but not {{UPDATE_BEFORE}}. Both functions accept {{PARTITION
BY}}, partitioned {{FROM_CHANGELOG}} calls can reorder events per key with
{{ORDER BY}}, and {{error_handling => 'SKIP'}} skips NULL or unmapped operation
codes instead of failing the job.
> FLIP-564: Support FROM_CHANGELOG and TO_CHANGELOG built-in PTFs
> ---------------------------------------------------------------
>
> Key: FLINK-39258
> URL: https://issues.apache.org/jira/browse/FLINK-39258
> Project: Flink
> Issue Type: New Feature
> Reporter: Gustavo de Morais
> Assignee: Gustavo de Morais
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.4.0
>
>
> Flink's DataStream API offers flexible methods like toChangelogStream() and
> fromChangelogStream() to work with changelog streams, but SQL users currently
> lack this capability.
> This FLIP introduces two built-in Process Table Functions (PTFs) to bring
> _similar_ functionality with additional features to Flink SQL:
> - {*}FROM_CHANGELOG{*}: Converts an append-only stream of CDC records into a
> dynamic table, enabling, for example, custom CDC connector implementations
> directly in SQL. - {*}TO_CHANGELOG{*}: Converts a dynamic table back into an
> append-only changelog stream - the first operator that makes it possible to
> convert a retract/upsert stream back to append in SQL.
> Both PTFs will eventually support flexible operation mapping (e.g.,
> Debezium-style 'c', 'u', 'd' codes), before/after image handling,
> configurable state TTL, and watermark-based ordering. They are designed to
> work symmetrically, so FROM_CHANGELOG(TO_CHANGELOG(table)) round-trips
> correctly.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)