diqiu50 opened a new issue, #13211:
URL: https://github.com/apache/gravitino/issues/13211

   ### What would you like to be improved?
   
   The Trino connector maps a Gravitino catalog provider to its 
`CatalogConnectorAdapter` through a fixed table in 
`DefaultCatalogConnectorFactory`. An adapter that lives outside the connector 
(for example a vendor-specific JDBC catalog) cannot be plugged in without 
modifying the connector itself.
   
   ### How should we improve?
   
   Add a `CatalogConnectorAdapterProvider` SPI discovered through 
`ServiceLoader`. A provider declares the Gravitino catalog provider it serves 
and creates the adapter for it. `DefaultCatalogConnectorFactory` registers the 
discovered adapters after the built-in ones, so a jar dropped into the 
Gravitino plugin directory can add support for a new provider. The Trino 
integration test container should also be able to load such extra jars next to 
the connector.


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