feat: add coldfront.drop_iceberg_table for decoupled and tiered tables - #62
Conversation
|
Warning Review limit reached
Next review available in: 39 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (9)
📝 WalkthroughWalkthroughChangesAdds Iceberg drop implementation
Validation and integration
Documentation
Estimated code review effort: 4 (Complex) | ~45 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Up to standards ✅🟢 Issues
|
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/architecture_decoupled.md`:
- Around line 301-309: Update the purge behavior description in the architecture
documentation to clarify that the hard profile provides no recovery window while
physical object deletion still occurs asynchronously through Lakekeeper’s
background purge process. Replace “immediate” wording with language
distinguishing logical irrecoverability from eventual physical deletion, and
preserve the soft-profile expiration-window behavior.
In `@docs/usage.md`:
- Around line 352-362: Update the purge workflow documentation to state that
Lakekeeper table protection must be enabled manually before recommending
purge=true, and clarify that this function cannot override an active protection
hold. Keep the existing explanation of the irreversible purge outcomes and
asynchronous deletion behavior unchanged.
In `@extension/coldfront/coldfront--1.0.sql`:
- Around line 2464-2476: Update the alias construction in the DROP TABLE
statement’s `v_alias` expression to include a stable digest derived from the
current `coldfront.warehouse`, `coldfront.lakekeeper_endpoint`, and
`_attach_delegation_mode()` values, while retaining the purge-state distinction.
Ensure the resulting alias remains valid for the existing `%I` identifier
formatting and changes whenever any catalog setting changes.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 7effb807-d3c9-4882-8a56-ff6bc6bf8f4a
⛔ Files ignored due to path filters (1)
extension/coldfront/test/expected/drop_iceberg_table.outis excluded by!**/*.out
📒 Files selected for processing (9)
README.mdci/journey.shdocs/architecture.mddocs/architecture_decoupled.mddocs/index.mddocs/usage.mdextension/coldfront/Makefileextension/coldfront/coldfront--1.0.sqlextension/coldfront/test/sql/drop_iceberg_table.sql
6cc9ecd to
b7d2909
Compare
Add a function to drop the Iceberg table behind the registered relation, in either mode, with an explicit purge decision and no default.
Decoupled: nothing remains.
Tiered: the cold tier goes and the hot table returns under its own name.
Plain DROP TABLE / DROP VIEW stays blocked.
Caveat: Table protection needs to be manually enabled for the table in Lakekeeper to prevent purging.