1yangsh opened a new pull request, #4466:
URL: https://github.com/apache/iceberg-python/pull/4466

   # Rationale for this change
   
   The REST OpenAPI spec defines a 404 from `createView`, `registerTable` and 
`registerView` as "Not Found - The namespace specified does not exist". 
`create_table` already maps that to `NoSuchNamespaceError`. However, 
`create_view`, `register_table` and `register_view` only mapped 409, so a 
missing namespace surfaced as a generic `RESTError`.
   
   ## Are these changes tested?
   
   Yes. Added `test_create_view_404`, `test_register_table_404` and 
`test_register_view_404` in `tests/catalog/test_rest.py`.
   
   ## Are there any user-facing changes?
   
   Yes. These methods now raise `NoSuchNamespaceError` instead of `RESTError` 
when the namespace does not exist.
   
   AI disclosure: an AI coding assistant helped draft the change and the tests. 
The mapping was checked against the REST OpenAPI spec, and the catalog tests 
and linters were run before submitting.
   


-- 
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]

Reply via email to