gustavodemorais opened a new pull request, #30112: URL: https://github.com/apache/flink/pull/30112
## What is the purpose of the change Over insert-only input with `keep => 'first'` and no `sequence_by`, `DEDUPLICATE` never replaces the kept row of a key. It now declares an insert-only output for that case, so the result can go to append-only sinks and use `on_time` to keep event time. Also makes `createComparator` a default method, so implementations of `SpecializedFunction.ExpressionEvaluatorFactory` outside Flink keep compiling (follow-up to FLINK-41470). ## Brief change log - Insert-only changelog mode in `DeduplicateDefinition` for the case above - `createComparator` throws `UnsupportedOperationException` by default - Docs: deduplicating exact matches and keeping event time with `on_time` ## Verifying this change - Plan tests for the insert-only and updating cases, `on_time`, and `on_time` with `keep => 'last'` being rejected - Semantic tests with insert-only sinks and a `TUMBLE` window over `on_time` ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): no - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: yes, `createComparator` becomes a default method - The serializers: no - The runtime per-record code paths (performance sensitive): no - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no - The S3 file system connector: no ## Documentation - Does this pull request introduce a new feature? yes - If yes, how is the feature documented? docs --- ##### Was generative AI tooling used to co-author this PR? - [x] Yes (please specify the tool below) Generated-by: Claude Code 2.1.304 (Opus 5.5) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
