Timo Walther created FLINK-33183:
------------------------------------
Summary: Enable metadata columns in NduAnalyzer with retract if
non-virtual
Key: FLINK-33183
URL: https://issues.apache.org/jira/browse/FLINK-33183
Project: Flink
Issue Type: Sub-task
Components: Table SQL / Planner
Reporter: Timo Walther
Currently, the NduAnalyzer is very strict about metadata columns in updating
sources. Compared to append and upsert sources (see also FLINK-33182), retract
sources are tricky. And the analyzer is actually correct.
However, for retract sources we should expose more functionality to the user
and add a warning to the documentation that retract mode could potentially
cause NDU problems if not enough attention is paid. We should only throw an
error on virtual metadata columns. Persisted metadata columns can be considered
“safe“. When a metadata column is persisted, we can assume that an upstream
Flink job fills its content thus likely also fills its correct retraction.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)