pengzhiwei2018 commented on a change in pull request #2283:
URL: https://github.com/apache/hudi/pull/2283#discussion_r615525852



##########
File path: 
hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/HiveSyncTool.java
##########
@@ -164,7 +165,13 @@ private void syncHoodieTable(String tableName, boolean 
useRealtimeInputFormat) {
     LOG.info("Storage partitions scan complete. Found " + 
writtenPartitionsSince.size());
     // Sync the partitions if needed
     syncPartitions(tableName, writtenPartitionsSince);
-
+    // Sync the table properties if need
+    if (cfg.tableProperties != null) {
+      Map<String, String> tableProperties = 
ConfigUtils.toMap(cfg.tableProperties);
+      hoodieHiveClient.updateTableProperties(tableName, tableProperties);
+      LOG.info("Sync table properties for " + tableName + ", table properties 
is: "
+          + cfg.tableProperties);
+    }

Review comment:
       Well, the `tableProperties` may change if the schema has changed. So we 
need to update the table properties  by a separate interface. 




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to