yuqi1129 commented on code in PR #10475:
URL: https://github.com/apache/gravitino/pull/10475#discussion_r3145522786
##########
flink-connector/flink/src/main/java/org/apache/gravitino/flink/connector/paimon/GravitinoPaimonCatalog.java:
##########
@@ -53,14 +62,106 @@ protected GravitinoPaimonCatalog(
schemaAndTablePropertiesConverter,
partitionConverter);
FlinkCatalogFactory flinkCatalogFactory = new FlinkCatalogFactory();
- this.paimonCatalog = flinkCatalogFactory.createCatalog(context);
+ this.paimonCatalog =
flinkCatalogFactory.createCatalog(toPaimonContext(context));
+ }
+
+ /**
+ * Translates Gravitino catalog property names to their Paimon/Flink
equivalents so that the
+ * underlying {@code FlinkCatalog} can be initialised correctly (e.g.,
{@code catalog-backend}
+ * becomes {@code metastore}).
+ */
+ private static CatalogFactory.Context toPaimonContext(CatalogFactory.Context
context) {
Review Comment:
I have no idea about whether it's proper here.
--
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]