Skip to content

Add rename_view to REST Catalog - #4081

Merged
kevinjqliu merged 9 commits into
apache:mainfrom
rambleraptor:rename_view
Oct 25, 2026
Merged

kevinjqliu merged 9 commits into
apache:mainfrom
rambleraptor:rename_view

Conversation

@rambleraptor

@rambleraptor rambleraptor commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Rationale for this change

I'm reviving #2149, which was closed for being stale. I addressed the comments on that PR. This is the last thing we need to have complete view support.

Are these changes tested?

Yes. Unit tests in tests/catalog/test_rest.py and integration tests in tests/integration/test_catalog.py.

Are there any user-facing changes?

  • Added rename_view support to the Iceberg REST Catalog.

cc @ebyhr @kevinjqliu @abnobdoss @jayceslesar @nhuantho, who reviewed #2149

AI Disclosure: Claude double checked the old PR and made sure the comments were all addressed.

@rambleraptor
rambleraptor requested review from Fokko, geruh and kevinjqliu and removed request for Fokko, geruh and kevinjqliu October 5, 2026 19:15
rambleraptor and others added 7 commits October 24, 2026 21:47
- Add @OverRide to RestCatalog/SqlCatalog rename_view and restore it on
  BigQueryMetastoreCatalog.load_namespace_properties
- Split identifiers once in RestCatalog.rename_view
- Fix "fully classified" typo in the Catalog.rename_view docstring
- Add a cross-namespace rename integration test
- Drop a stale skip on test_rest_custom_namespace_separator reintroduced by rebase

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kevinjqliu and others added 2 commits October 24, 2026 22:01
Put @Retry before @OverRide as in rename_table and drop_view, group
SqlCatalog.rename_view with the other view stubs, and move the
rename_view unit tests next to the other view tests.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Add a "Rename a view" docs section, list the errors rename_view raises
in its docstring, assert view-endpoints-supported enables V1_RENAME_VIEW,
and cover rename_view in the special-character identifiers integration test.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

@kevinjqliu kevinjqliu 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.

LGTM!

I pushed 2 small fixes:

  • reorders function based on existing pattern (9143fa1)
  • add docs and integrate rename_view into the rest of the view tests

Would be nice to follow up with CLI improvement for pyiceberg rename to handle views.

Also I think we're missing update and replace view still (V1_UPDATE_VIEW). #3807 implements replace view

@kevinjqliu
kevinjqliu enabled auto-merge October 25, 2026 05:17
@kevinjqliu
kevinjqliu added this pull request to the merge queue Oct 25, 2026
Merged via the queue into apache:main with commit ea139cc Oct 25, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants