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

   ### What changes were proposed in this pull request?
   
   - Add `SparkCatalogExtension`, a `ServiceLoader` SPI that maps a Gravitino 
catalog provider to a Spark catalog class.
   - Add `SparkCatalogExtensions` to load and cache registered extensions, 
matching providers case-insensitively and skipping extensions that fail to link.
   - `CatalogNameAdaptor.getCatalogName` returns the extension's catalog class 
when one serves the provider, before falling back to the built-in mapping.
   
   ### Why are the changes needed?
   
   Catalog implementations shipped outside the connector jar can be registered 
without changing the connector.
   
   Fix: #13208
   
   ### Does this PR introduce _any_ user-facing change?
   
   New SPI `org.apache.gravitino.spark.connector.plugin.SparkCatalogExtension`. 
Existing behavior is unchanged when no extension is present.
   
   ### How was this patch tested?
   
   Added `TestSparkCatalogExtensions` with a fake extension registered via 
`META-INF/services`; existing `TestCatalogNameAdaptor` passes.


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