Skip to content

Add first part of Iceberg maintenance reachability semantics - #41882

Open
jrmccluskey wants to merge 1 commit into
apache:masterfrom
jrmccluskey:reachabilityChecks
Open

jrmccluskey wants to merge 1 commit into
apache:masterfrom
jrmccluskey:reachabilityChecks

Conversation

@jrmccluskey

Copy link
Copy Markdown
Contributor

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

@github-actions github-actions Bot added java io iceberg Iceberg IO connector size/l L: 250-999 lines changed labels Dec 2, 2026
@jrmccluskey
jrmccluskey marked this pull request as ready for review December 2, 2026 16:04
@codecov

codecov Bot commented Dec 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.99%. Comparing base (c6f0078) to head (0cabc73).
⚠️ Report is 18 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Assigning reviewers:

R: @ahmedabu98 for label iceberg.
Backup reviewer: chamikaramj (if the main reviewer is unresponsive, you can escalate to them by tagging their username)

Note: If you would like to opt out of this review, comment assign to next reviewer.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📋 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 ExactLocationPolicy cleanly 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.

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

Labels

iceberg Iceberg IO connector io java Next Action: Reviewers size/l L: 250-999 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant