kevinjqliu opened a new pull request, #4152:
URL: https://github.com/apache/iceberg-python/pull/4152
<!--
Thanks for opening a pull request!
-->
<!-- In the case this PR will resolve an issue, please replace
${GITHUB_ISSUE_ID} below with the actual Github issue id. -->
<!-- Closes #${GITHUB_ISSUE_ID} -->
# Rationale for this change
The REST spec marks `metadata-location` as required in
[`LoadViewResult`](https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml#L4559-L4577)
(unlike `LoadTableResult`, where it is nullable for staged tables), and Java's
`LoadViewResponseParser` rejects responses without it. This makes
`ViewResponse.metadata_location` required to match.
## Are these changes tested?
Yes, added `test_load_view_missing_metadata_location`.
- `uv run pytest tests/catalog/test_rest.py`: 175 passed
- `make lint`: passed
## Are there any user-facing changes?
Yes. `create_view`, `load_view`, and `register_view` now raise a pydantic
`ValidationError` when a REST server omits `metadata-location`.
<!-- In the case of user-facing changes, please add the changelog label. -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]