Skip to content

Add rename_view to REST Catalog#2149

Open
rambleraptor wants to merge 9 commits into
apache:mainfrom
rambleraptor:rename_view
Open

Add rename_view to REST Catalog#2149
rambleraptor wants to merge 9 commits into
apache:mainfrom
rambleraptor:rename_view

Conversation

@rambleraptor

Copy link
Copy Markdown
Collaborator

Rationale for this change

As part of #818, this adds rename_view support to the Iceberg REST Catalog.

The REST Catalog spec specifies that both rename_view and rename_table do not return anything. Currently, rename_table returns the table. I'm happy to change that API if we want, but it would technically be a breaking change.

Are these changes tested?

Added unit tests.

Are there any user-facing changes?

  • Added rename_view support to Iceberg REST Catalog.

@rambleraptor

Copy link
Copy Markdown
Collaborator Author

@Fokko @kevinjqliu mind taking a look when you can? thanks!

Comment thread pyiceberg/catalog/rest/__init__.py
@github-actions

Copy link
Copy Markdown

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that's incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.

@github-actions

Copy link
Copy Markdown

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that's incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.

@rambleraptor

Copy link
Copy Markdown
Collaborator Author

@geruh looks like you've been going through the View PRs. Mind taking a look at this one? Follows the others near-identically.

@rambleraptor

Copy link
Copy Markdown
Collaborator Author

@ebyhr can you take a look? You've been doing a lot of work around views lately.

Comment thread pyiceberg/catalog/rest/__init__.py
Comment thread pyiceberg/catalog/rest/__init__.py Outdated
Comment thread pyiceberg/catalog/__init__.py
Comment thread tests/catalog/test_rest.py
Comment thread tests/catalog/test_rest.py
@rambleraptor rambleraptor requested a review from ebyhr May 27, 2026 20:52
@rambleraptor

Copy link
Copy Markdown
Collaborator Author

@kevinjqliu @Fokko @geruh mind taking a look? This will help with all of the View work that's been done.

Comment thread tests/integration/test_catalog.py
Comment thread pyiceberg/catalog/__init__.py Outdated
Comment thread pyiceberg/catalog/bigquery_metastore.py
Comment thread pyiceberg/catalog/sql.py
Comment thread pyiceberg/catalog/rest/__init__.py
@kevinjqliu kevinjqliu added this to the PyIceberg 0.12.0 milestone Jun 4, 2026
Comment thread pyiceberg/catalog/rest/__init__.py
Comment thread pyiceberg/catalog/rest/__init__.py Outdated
Comment thread pyiceberg/catalog/bigquery_metastore.py
Comment thread pyiceberg/catalog/sql.py
Comment thread pyiceberg/catalog/bigquery_metastore.py
Comment thread pyiceberg/catalog/__init__.py Outdated
Comment thread pyiceberg/catalog/bigquery_metastore.py
rambleraptor and others added 3 commits June 20, 2026 16:58
Co-authored-by: Kevin Liu <kevinjqliu@users.noreply.github.com>

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

Looks good! The only concern I have is the point you highlighted in the PR description of the discrepancy between rename_table returning a Table but rename_view returning None. It sounds like the right fix would be to change rename_table to return None to be aligned to the spec. Since that is a breaking change I imagine we likely would have to wait till 1.0.0 to align those functions.

@rambleraptor

Copy link
Copy Markdown
Collaborator Author

I agree that rename_table should return None. I'm actually going to make an issue for us to track potential breaking changes for v1.0

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.

5 participants