Skip to content

HIVE-29841: Iceberg: Limit compaction with a filter to the latest par… - #6728

Open
difin wants to merge 1 commit into
apache:masterfrom
difin:iceberg_compaction_with_partition_evolution_and_filter
Open

HIVE-29841: Iceberg: Limit compaction with a filter to the latest par…#6728
difin wants to merge 1 commit into
apache:masterfrom
difin:iceberg_compaction_with_partition_evolution_and_filter

Conversation

@difin

@difin difin commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

…tition spec only

What changes were proposed in this pull request?

For Iceberg compaction with a filter in the compaction command on a table with partition evolution, limit the compaction to partitions under the latest partition spec only, and skip the old-spec multi-partition compaction when a filter is present.

Why are the changes needed?

Currently the filter can match only a subset of the partitions with old partition spec, but all of those partitions are compacted by Iceberg compaction with a filter.

Does this PR introduce any user-facing change?

Yes, for Iceberg compaction with a filter in the compaction command on a table with partition evolution, only partitions with the current spec will be compacted.

How was this patch tested?

Executed Iceberg Compaction q-tests and updated the golden files according to the new logic.

@sonarqubecloud

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