HIVE-29841: Iceberg: Limit compaction with a filter to the latest par… - #6728
HIVE-29841: Iceberg: Limit compaction with a filter to the latest par…#6728difin wants to merge 1 commit into
Conversation
|
|
@difin , this is my understanding of the patch. Can you please correct me if I missed anything? Testing: Before this patch, running After this PR, The |
|
Raised #6737 for a bug I found during testing this PR. |



…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.