Catalog Migrator: Add Iceberg view migration support - #265
Open
ajantha-bhat wants to merge 1 commit into
Open
Conversation
Member
Author
|
@dimas-b: Please take a look when you have time. Thanks. |
dimas-b
approved these changes
Aug 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Iceberg view migration support to the Iceberg Catalog Migrator.
The migrator now supports migrating both Iceberg tables and Iceberg views from a source catalog to a target catalog without copying data. View migration uses the new Iceberg
ViewCatalog.registerViewsupport added in Iceberg 1.11.0, which registers a view in the target catalog from the source view metadata location.By default, the
migratecommand now migrates both tables and views when both source and target catalogs support Iceberg views. Existing table-only selector behavior is preserved for users who explicitly provide table selectors.New Options
Adds view selector options to the
migratecommand:--view-identifiers--view-identifiers-from-file--view-identifiers-regexSelector behavior:
Why Views Are Supported Only With
migrateView support is intentionally added only to the
migratecommand, not theregistercommand.For tables,
registercan leave the table entry in both source and target catalogs. That is already risky and documented, but table cleanup can usedropTable(..., purge=false)when migrating so only the catalog entry is removed from the source.Iceberg views do not have an equivalent purge-false delete operation. Dropping a view is a lightweight catalog operation, so view migration must delete the successfully migrated view from the source catalog after registering it in the target catalog. Because of that, view migration requires
migratesemantics and is rejected forregister.Notes