Skip to content

Commit

Permalink
[HUDI-4270] Bootstrap op data loading missing (apache#5888)
Browse files Browse the repository at this point in the history
(cherry picked from commit 7c4aaa9)
  • Loading branch information
cuibo01 authored and danny0405 committed Jul 22, 2022
1 parent 622d27a commit 90fa31e
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 90fa31e

Please sign in to comment.