[HUDI-3438] Avoid getSmallFiles if hoodie.parquet.small.file.limit is 0 (#4823)
Co-authored-by: Hui An <hui.an@shopee.com>
This commit is contained in:
@@ -180,7 +180,14 @@ public class WriteProfile {
|
||||
if (smallFilesMap.containsKey(partitionPath)) {
|
||||
return smallFilesMap.get(partitionPath);
|
||||
}
|
||||
List<SmallFile> smallFiles = smallFilesProfile(partitionPath);
|
||||
|
||||
List<SmallFile> smallFiles = new ArrayList<>();
|
||||
if (config.getParquetSmallFileLimit() <= 0) {
|
||||
this.smallFilesMap.put(partitionPath, smallFiles);
|
||||
return smallFiles;
|
||||
}
|
||||
|
||||
smallFiles = smallFilesProfile(partitionPath);
|
||||
this.smallFilesMap.put(partitionPath, smallFiles);
|
||||
return smallFiles;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user