lamber-ken commented on a change in pull request #1105: [HUDI-405] Fix sync no 
hive partition at first time
URL: https://github.com/apache/incubator-hudi/pull/1105#discussion_r358614326
 
 

 ##########
 File path: hudi-hive/src/main/java/org/apache/hudi/hive/HoodieHiveClient.java
 ##########
 @@ -632,24 +632,33 @@ public void close() {
     if (!lastCommitTimeSynced.isPresent()) {
       LOG.info("Last commit time synced is not known, listing all partitions 
in " + syncConfig.basePath + ",FS :" + fs);
       try {
-        return FSUtils.getAllPartitionPaths(fs, syncConfig.basePath, 
syncConfig.assumeDatePartitioning);
+
+        List<String> fsPartitions = FSUtils.getAllPartitionPaths(fs, 
syncConfig.basePath, syncConfig.assumeDatePartitioning);
+        List<String> tlPartitions = findPartitionsAfter("0");
 
 Review comment:
   My idea is extracting the public method to get all the instants after 
startTs. 

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


With regards,
Apache Git Services

Reply via email to