Skip to content

Commit

Permalink
[HUDI-4270] Bootstrap op data loading missing
Browse files Browse the repository at this point in the history
  • Loading branch information
cuibo01 committed Jun 16, 2022
1 parent 2bf0a19 commit 05b6834
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.apache.hudi.common.model.FileSlice;
import org.apache.hudi.common.model.HoodieAvroRecord;
import org.apache.hudi.common.model.HoodieKey;
import org.apache.hudi.common.model.HoodieLogFile;
import org.apache.hudi.common.model.HoodieRecord;
import org.apache.hudi.common.model.HoodieRecordGlobalLocation;
import org.apache.hudi.common.table.TableSchemaResolver;
Expand Down Expand Up @@ -223,6 +224,7 @@ protected void loadRecords(String partitionPath) throws Exception {

// load avro log records
List<String> logPaths = fileSlice.getLogFiles()
.sorted(HoodieLogFile.getLogFileComparator())
// filter out crushed files
.filter(logFile -> isValidFile(logFile.getFileStatus()))
.map(logFile -> logFile.getPath().toString())
Expand Down

0 comments on commit 05b6834

Please sign in to comment.