Skip to content

HIVE-29512: Clean compaction related HMS metadata tables for iceberg - #6679

Open
VenuReddy2103 wants to merge 1 commit into
apache:masterfrom
VenuReddy2103:HIVE-29512
Open

HIVE-29512: Clean compaction related HMS metadata tables for iceberg#6679
VenuReddy2103 wants to merge 1 commit into
apache:masterfrom
VenuReddy2103:HIVE-29512

Conversation

@VenuReddy2103

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Compaction related HMS metadata tables are updated for iceberg tables on following cases:

  1. Drop partition[compaction entries deleted]
  2. Drop table[compaction entries deleted]
  3. Rename table[compaction entries updated with new table name]

Why are the changes needed?

COMPACTION_QUEUE and COMPLETED_COMPACTIONS entries are not removed upon iceberg table delete and partition drop. And entries are not updated upon iceberg table rename. Hence such stale entries can keep accumulating over time.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Added a qtest

@sonarqubecloud

sonarqubecloud Bot commented Aug 6, 2026

Copy link
Copy Markdown

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants