Repository navigation
Add first part of Iceberg maintenance reachability semantics - #41882
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #41882 +/- ##
=========================================
Coverage 61.99% 61.99%
Complexity 19293 19293
=========================================
Files 3117 3117
Lines 294266 294266
Branches 15051 15051
=========================================
Hits 182437 182437
Misses 104289 104289
Partials 7540 7540 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Assigning reviewers: R: @ahmedabu98 for label iceberg. Note: If you would like to opt out of this review, comment Available commands:
The PR bot will only process comments in the main thread (not review comments). |
There was a problem hiding this comment.
📋 Review Summary
This PR adds the initial reachability components for Iceberg table maintenance: safety checks (MaintenanceChecks), table identifier canonicalization and deduplication (ResolveTables), and candidate filtering via set difference (SetDifference). The implementation is clean, well-documented, and thoroughly tested.
🔍 General Feedback
- The length-prefixed key encoding in
ExactLocationPolicycleanly avoids key collisions across table identifiers and paths without requiring complex tuple coders. - Comprehensive unit test coverage across all new transforms, policies, and edge cases.
💡 Tip: Comment /gemini review on this pull request to trigger a new Gemini code review.
|
/gemini review |
There was a problem hiding this comment.
📋 Review Summary
This PR introduces well-structured and thoroughly tested foundational components for Iceberg table maintenance reachability: MaintenanceChecks for GC and format version validation, ResolveTables for canonicalizing and deduplicating table identifiers, and SetDifference for identifying deletion candidates via a pre-combining CombineFn policy. One minor opportunity was identified to consolidate duplicate format version validation logic across the package.
🔍 General Feedback
- The
SetDifferenceimplementation usingCombine.perKeywith a constant-size accumulator and customAccumulatorCoder/DecisionCoderis clean, avoids shuffle overhead for frequently referenced files, and is backed by comprehensive unit tests covering combiner lifting and merge ordering. ResolveTablesandMaintenanceCheckshave clear semantics, helpful error messages, and solid edge-case test coverage.
💡 Tip: Comment /gemini review on this pull request to trigger a new Gemini code review.
Introduce some initial reachability components for Iceberg table maintenance: the check for garbage collection being enabled for tables, processing table identifiers into canonical forms for deduplication, and computing set difference to determine deletion candidates.
Part of #39224 and #39225