zhongyujiang opened a new pull request, #16691:
URL: https://github.com/apache/iceberg/pull/16691

   ## Summary
   - When `cleanExpiredMetadata` is enabled, skip scanning all snapshot 
manifest lists to collect reachable partition spec IDs if the table has only a 
single spec that is the current default spec (the common case).
   - Additionally, once all known specs have been confirmed reachable during 
the scan, skip manifest I/O for the remaining snapshots.
   
   Both optimizations avoid unnecessary manifest file reads for tables with few 
or no partition spec evolutions.
   
   ## Test plan
   - [x] Existing `TestRemoveSnapshots` tests pass (covers 
`testRemoveSpecDuringExpiration`, `testRemoveSpecsDoesntRemoveDefaultSpec`, 
`testNoSchemasOrSpecsToRemove`)
   - [x] `./gradlew :iceberg-core:spotlessCheck` passes
   - [ ] CI validates no regressions across all test suites
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to