skywalker0618 commented on code in PR #20165:
URL: https://github.com/apache/hudi/pull/20165#discussion_r4289154899


##########
hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/HiveSyncTool.java:
##########
@@ -110,6 +112,9 @@ public class HiveSyncTool extends HoodieSyncTool implements 
AutoCloseable {
 
   private String hiveSyncTableStrategy;
 
+  // never null, so getSyncStats() also works when no sync ran, e.g. when the 
metastore client could not be created
+  private HiveSyncStats syncStats = new HiveSyncStats();

Review Comment:
   Sure done, added a configuration.



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