lasdf1234 commented on code in PR #10560:
URL: https://github.com/apache/gravitino/pull/10560#discussion_r3013332374
##########
flink-connector/flink/src/main/java/org/apache/gravitino/flink/connector/store/GravitinoCatalogStoreFactory.java:
##########
@@ -43,10 +45,17 @@
/** The Factory for creating {@link GravitinoCatalogStore}. */
public class GravitinoCatalogStoreFactory implements CatalogStoreFactory {
private GravitinoCatalogManager catalogManager;
+ private boolean supportSessionCatalog;
+ GenericInMemoryCatalogStore memoryCatalogStore;
@Override
public CatalogStore createCatalogStore() {
- return new GravitinoCatalogStore(catalogManager);
+ GravitinoCatalogStore gravitinoCatalogStore = new
GravitinoCatalogStore(catalogManager);
+ if (supportSessionCatalog) {
+ memoryCatalogStore = new GenericInMemoryCatalogStore();
+ return new GravitinoSessionCatalogStore(gravitinoCatalogStore,
memoryCatalogStore);
+ }
+ return gravitinoCatalogStore;
Review Comment:
Resolved I have add class type test.
--
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]