You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/02/07 14:37:51 UTC

[GitHub] [hudi] YannByron commented on a change in pull request #4758: [HUDI-2610] pass the spark version when sync the table created by spark

YannByron commented on a change in pull request #4758:
URL: https://github.com/apache/hudi/pull/4758#discussion_r800719326



##########
File path: hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/HiveSyncTool.java
##########
@@ -302,6 +303,9 @@ private boolean syncSchema(String tableName, boolean tableExists, boolean useRea
 
     Map<String, String> sparkProperties = new HashMap<>();
     sparkProperties.put("spark.sql.sources.provider", "hudi");
+    if (!StringUtils.isNullOrEmpty(cfg.sparkVersion)) {
+      sparkProperties.put("spark.sql.create.version", cfg.sparkVersion);

Review comment:
       see the description of the related ticket. Spark will use this config when execute `desc formatted`.




-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org