diqiu50 opened a new pull request, #13584:
URL: https://github.com/apache/gravitino/pull/13584

   ### What changes were proposed in this pull request?
   
   Resolve Iceberg REST routing before preloading the catalog's `jdbc-driver` 
in `GravitinoIcebergCatalog`, and only preload the driver on the legacy 
Hive/JDBC backend translation path.
   
   ### Why are the changes needed?
   
   A jdbc-backed Iceberg catalog routed through the Iceberg REST server failed 
with `ClassNotFoundException` when the backend JDBC driver was not on the Spark 
classpath, although the routed client never uses it.
   
   Fix: #13583
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Added unit tests in `TestGravitinoIcebergCatalogRestRouting` for both the 
routed and legacy paths.
   


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