FANNG1 commented on code in PR #6303: URL: https://github.com/apache/gravitino/pull/6303#discussion_r1922149147
########## flink-connector/flink/src/main/java/org/apache/gravitino/flink/connector/PropertiesConverter.java: ########## @@ -48,7 +61,24 @@ default Map<String, String> toGravitinoCatalogProperties(Configuration flinkConf * @return properties for the Flink connector. */ default Map<String, String> toFlinkCatalogProperties(Map<String, String> gravitinoProperties) { - return gravitinoProperties; + Map<String, String> all = Maps.newHashMap(); + gravitinoProperties.forEach( + (key, value) -> { + String flinkConfigKey = key; + if (key.startsWith(PropertiesConverter.FLINK_PROPERTY_PREFIX)) { + flinkConfigKey = key.substring(PropertiesConverter.FLINK_PROPERTY_PREFIX.length()); + } + all.put(flinkConfigKey, value); + }); + Map<String, String> allProperties = transformPropertiesToFlinkCatalog(all); + allProperties.put(CommonCatalogOptions.CATALOG_TYPE.key(), getFlinkCatalogType()); + return allProperties; + } + + String transformPropertiesToGravitinoCatalog(String configKey); Review Comment: Could you add Java doc for new interfaces? and please polish existing Java doc for `toFlinkCatalogProperties` and `toGravitinoCatalogProperties` -- 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: commits-unsubscr...@gravitino.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org