dhruvarya-db commented on code in PR #17642:
URL: https://github.com/apache/iceberg/pull/17642#discussion_r4671307883
##########
open-api/rest-catalog-open-api.yaml:
##########
@@ -1145,7 +1130,15 @@ paths:
Not Modified - Based on the content of the 'If-None-Match' header
the table metadata has
not changed since.
400:
- $ref: '#/components/responses/BadRequestErrorResponse'
+ description:
+ Bad Request - The request is malformed, or the table is at a
format version that this endpoint does not serve.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/IcebergErrorResponse'
+ examples:
+ UnsupportedTableFormatVersion:
+ $ref:
'#/components/examples/UnsupportedTableFormatVersionError'
Review Comment:
Makes sense, switched it to 422. The 400 is back to the shared
`BadRequestErrorResponse` like before.
##########
open-api/rest-catalog-open-api.yaml:
##########
@@ -1091,6 +1091,10 @@ paths:
Load a table from the catalog.
+ Servers MUST NOT return format version 4 tables from this endpoint.
+ A request to load a format version 4 table fails with a 400
`UnsupportedTableFormatVersionException`; clients should load it through the
`/v2` endpoint instead.
Review Comment:
Makes sense, switched it to 422. The 400 is back to the shared
`BadRequestErrorResponse` like before.
##########
open-api/rest-catalog-open-api.yaml:
##########
@@ -1145,7 +1130,15 @@ paths:
Not Modified - Based on the content of the 'If-None-Match' header
the table metadata has
not changed since.
400:
- $ref: '#/components/responses/BadRequestErrorResponse'
+ description:
+ Bad Request - The request is malformed, or the table is at a
format version that this endpoint does not serve.
Review Comment:
Makes sense, switched it to 422. The 400 is back to the shared
`BadRequestErrorResponse` like before.
--
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]