1
0

[MINOR] Remove redundant judgments (#2466)

This commit is contained in:
teeyog
2021-01-20 20:41:09 +08:00
committed by GitHub
parent 5ca0625b27
commit c931dc5406
3 changed files with 3 additions and 3 deletions

View File

@@ -151,7 +151,7 @@ public class UpsertPartitioner<T extends HoodieRecordPayload<T>> implements Part
for (SmallFile smallFile : smallFiles) {
long recordsToAppend = Math.min((config.getParquetMaxFileSize() - smallFile.sizeBytes) / averageRecordSize,
totalUnassignedInserts);
if (recordsToAppend > 0 && totalUnassignedInserts > 0) {
if (recordsToAppend > 0) {
// create a new bucket or re-use an existing bucket
int bucket;
if (updateLocationToBucket.containsKey(smallFile.location.getFileId())) {