Skip to content

Add support for registering views#3288

Open
ebyhr wants to merge 4 commits intoapache:mainfrom
ebyhr:ebi/register_view
Open

Add support for registering views#3288
ebyhr wants to merge 4 commits intoapache:mainfrom
ebyhr:ebi/register_view

Conversation

@ebyhr
Copy link
Copy Markdown
Member

@ebyhr ebyhr commented Apr 26, 2026

Rationale for this change

Are these changes tested?

tests/catalog/test_rest.py contains new tests.

Are there any user-facing changes?

This PR adds a new register_view method to catalog.

Comment thread pyiceberg/catalog/rest/__init__.py
Comment thread pyiceberg/catalog/rest/__init__.py
Comment thread pyiceberg/catalog/rest/__init__.py Outdated
Comment thread tests/catalog/test_rest.py Outdated
@rambleraptor
Copy link
Copy Markdown
Contributor

Does the REST fixture support register_view? An integration test on this would be great.

@ebyhr
Copy link
Copy Markdown
Member Author

ebyhr commented Apr 28, 2026

@rambleraptor No, the current test target 1.10.x doesn't support the endpoint.

@ebyhr ebyhr force-pushed the ebi/register_view branch 2 times, most recently from cd7d26a to f389b33 Compare April 28, 2026 02:57
@ebyhr ebyhr force-pushed the ebi/register_view branch from f389b33 to af7a73c Compare April 28, 2026 03:25
@ebyhr
Copy link
Copy Markdown
Member Author

ebyhr commented May 5, 2026

@geruh Could you take another look when you have time?

Comment thread pyiceberg/catalog/__init__.py Outdated
Comment thread tests/catalog/test_rest.py Outdated
status_code=200,
request_headers=TEST_HEADERS,
)
rest_mock.post(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

non blocking nit: we don't need this code block since we hit on self.table_exists() call.

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.

6 participants