lasdf1234 commented on code in PR #10425:
URL: https://github.com/apache/gravitino/pull/10425#discussion_r2929513630


##########
spark-connector/spark-common/src/main/java/org/apache/gravitino/spark/connector/paimon/GravitinoPaimonCatalog.java:
##########
@@ -42,6 +43,13 @@ protected TableCatalog createAndInitSparkCatalog(
     TableCatalog paimonCatalog = new SparkCatalog();
     Map<String, String> all =
         getPropertiesConverter().toSparkCatalogProperties(options, properties);
+    for (Map.Entry<String, String> entry : all.entrySet()) {
+      String key = entry.getKey();
+      String value = entry.getValue();
+      if (key != null && key.startsWith("fs.")) {
+        SparkSession.active().sessionState().conf().setConfString(key, value);

Review Comment:
   May I change to this code ? SparkContext.getOrCreate().conf().set(key, 
value);



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