hudi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-hudi] liujianhuiouc commented on a change in pull request #1216: [HUDI-525] lack of insert info in delta_commit inflight
Date Mon, 20 Jan 2020 03:05:32 GMT
liujianhuiouc commented on a change in pull request #1216: [HUDI-525] lack of insert info in
delta_commit inflight
URL: https://github.com/apache/incubator-hudi/pull/1216#discussion_r368354556
 
 

 ##########
 File path: hudi-client/src/main/java/org/apache/hudi/HoodieWriteClient.java
 ##########
 @@ -428,6 +428,12 @@ private void saveWorkloadProfileMetadataToInflight(WorkloadProfile profile,
Hood
       HoodieCommitMetadata metadata = new HoodieCommitMetadata();
       profile.getPartitionPaths().forEach(path -> {
         WorkloadStat partitionStat = profile.getWorkloadStat(path.toString());
+        HoodieWriteStat insertStat = new HoodieWriteStat();
+        insertStat.setNumInserts(partitionStat.getNumInserts());
+        insertStat.setFileId("");
 
 Review comment:
   unset will make test fail , that cause NPE

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message