Skip to content

[FLINK-41422][table] Remove built-in DEDUPLICATE_KEEP_FIRST process table function - #29854

Merged
gustavodemorais merged 1 commit into
apache:masterfrom
VasShabu:removalOfDeduplicateKeepFirst
Nov 12, 2026
Merged

gustavodemorais merged 1 commit into
apache:masterfrom
VasShabu:removalOfDeduplicateKeepFirst

Conversation

@VasShabu

Copy link
Copy Markdown
Contributor

What is the purpose of the change

Removes the built-in DEDUPLICATE_KEEP_FIRST process table function added in FLINK-40896. It is replaced by the DEDUPLICATE and DEDUPLICATE_WINDOW functions, and is removed before it ships in a release.

Brief change log

  • Removed the DEDUPLICATE_KEEP_FIRST entry from BuiltInFunctionDefinitions, DeduplicateKeepFirstTypeStrategy, and the DeduplicateKeepFirst runtime function
  • Removed its semantic, restore and unit tests, including the restore-test plans and savepoints
  • Removed the deduplicate-keep-first reference page and the function's row in the process table functions overview (English and content.zh)
  • Removed the function from the ValidationOnlyInputTypeStrategy example in AGENTS.md

The classic ROW_NUMBER deduplication operators are unaffected.

Verifying this change

This change removes the function together with its tests and adds no new behavior. It is covered by the existing ProcessTableFunctionTest, ProcessTableFunctionSemanticTests and ProcessTableFunctionRestoreTests, which pass.

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): no
  • 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? no
  • If yes, how is the feature documented? not applicable

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: Claude Code (Claude Sonnet 5.5, Claude Opus 5.5)

@flinkbot

flinkbot commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

@gustavodemorais gustavodemorais left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. We can reuse or revert any part of this at any moment depending on the mailing list discussion.

@VasShabu
VasShabu force-pushed the removalOfDeduplicateKeepFirst branch from 5430d78 to f5929a1 Compare November 12, 2026 09:27

@gustavodemorais gustavodemorais left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gustavodemorais
gustavodemorais merged commit 4f768df into apache:master Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants