Skip to content

Flink: Support DROP PARTITION in catalog - #18040

Open
kaiwangleo wants to merge 3 commits into
apache:mainfrom
kaiwangleo:flink-drop-partition-support
Open

Flink: Support DROP PARTITION in catalog#18040
kaiwangleo wants to merge 3 commits into
apache:mainfrom
kaiwangleo:flink-drop-partition-support

Conversation

@kaiwangleo

Copy link
Copy Markdown

Closes #16646

Summary

Implement ALTER TABLE ... DROP PARTITION in the Iceberg Flink catalog.

The implementation translates Flink partition specifications into Iceberg row filters and removes matching data files through deleteFromRowFilter. It supports identity partition fields, typed and null partition values, missing-partition handling, and consistent partition value formatting.

The implementation and tests are added to the Flink 1.20, 2.1, 2.2, and 2.3 connectors.

Tests

  • Flink 1.20 catalog partition tests
  • Flink 2.1 catalog partition tests
  • Flink 2.2 catalog partition tests
  • Flink 2.3 catalog partition tests
  • git diff --check

The four Flink test tasks completed successfully. The local Spotless check could not be started because the Windows checkout's CRLF-formatted Gradle wrapper cannot be executed from the WSL mount.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flink: Support ALTER TABLE ... DROP PARTITION syntax

1 participant