jarredhj0214 opened a new pull request, #12482: URL: https://github.com/apache/gravitino/pull/12482
### What changes were proposed in this pull request? This PR updates the Flink connector to preserve Gravitino table authorization failures when loading tables. - `BaseCatalog#getTable` now wraps `ForbiddenException` as `CatalogException` instead of `TableNotExistException`. - `GravitinoHiveCatalog#getTable` applies the same behavior for Hive, which overrides the base implementation. - Added regression tests for both the common `BaseCatalog` path and the Hive-specific path. ### Why are the changes needed? When Gravitino server returns `403 Forbidden` for `loadTable`, the Flink connector currently converts it to `TableNotExistException`. Flink then reports a misleading error saying the table cannot be found in any catalog. The table exists; the real problem is missing permission. Fix: #12480 ### Does this PR introduce _any_ user-facing change? Yes. Flink users will now see a permission-related catalog error when table authorization fails, instead of a misleading table-not-found error. ### How was this patch tested? Added unit tests: - `TestBaseCatalog#testGetTableThrowsCatalogExceptionWhenForbidden` - `TestGravitinoHiveCatalog#testGetTableThrowsCatalogExceptionWhenForbidden` I could not run Gradle locally because this machine only has Java 8 installed, while the project requires JDK 17. -- 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]
