lasdf1234 commented on issue #14302:
URL: https://github.com/apache/gravitino/issues/14302#issuecomment-6570754477

   Both reproduction cases from this issue are already fixed on `main` by 
#14433 (merged for #14432), at the Iceberg catalog wrapper call site rather 
than by globally mapping these exception types in `IcebergExceptionMapper`:
   
   1. `registerTable` with a missing metadata file: 
`IcebergCatalogWrapper.registerTable` catches Iceberg `NotFoundException` and 
throws `BadRequestException` (HTTP 400; the issue accepted 404 or 400).
   2. `createTable` with format-version 2 and a v3-only type: 
`validateTableDefinition` / `createTable` convert the resulting 
`IllegalStateException` (`Invalid schema for v…`) to `BadRequestException` 
(HTTP 400).
   
   Closing as fixed by #14433. Related open PRs that also referenced this issue 
(#14386, #14481) can drop the link or keep any remaining safety-net changes 
separately.


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

Reply via email to