1
0

[HUDI-574] Fix CLI counts small file inserts as updates (#1321)

This commit is contained in:
lamber-ken
2020-02-13 22:20:58 +08:00
committed by GitHub
parent 63b42166b1
commit 01c868ab86

View File

@@ -268,11 +268,11 @@ public class CommitsCommand implements CommandMarker {
for (HoodieWriteStat stat : stats) {
if (stat.getPrevCommit().equals(HoodieWriteStat.NULL_COMMIT)) {
totalFilesAdded += 1;
totalRecordsInserted += stat.getNumWrites();
} else {
totalFilesUpdated += 1;
totalRecordsUpdated += stat.getNumUpdateWrites();
}
totalRecordsInserted += stat.getNumInserts();
totalBytesWritten += stat.getTotalWriteBytes();
totalWriteErrors += stat.getTotalWriteErrors();
}