1
0

[MINOR] Fix out of limits for results

This commit is contained in:
lamber-ken
2019-12-27 01:13:47 +08:00
parent 842eabb27f
commit bb90dedfc8

View File

@@ -215,9 +215,11 @@ public class HoodieLogFileCommand implements CommandMarker {
if (n instanceof HoodieAvroDataBlock) {
HoodieAvroDataBlock blk = (HoodieAvroDataBlock) n;
List<IndexedRecord> records = blk.getRecords();
allRecords.addAll(records);
if (allRecords.size() >= limit) {
break;
for(IndexedRecord record : records) {
if (allRecords.size() >= limit) {
break;
}
allRecords.add(record);
}
}
}