nsivabalan commented on code in PR #9765:
URL: https://github.com/apache/hudi/pull/9765#discussion_r2824962737
##########
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieMetadataPayload.java:
##########
@@ -330,12 +330,7 @@ public static HoodieRecord<HoodieMetadataPayload>
createPartitionFilesRecord(Str
List<String> filesDeleted) {
int size = filesAdded.size() + filesDeleted.size();
Map<String, HoodieMetadataFileInfo> fileInfo = new HashMap<>(size, 1);
- filesAdded.forEach((fileName, fileSize) -> {
- // Assert that the file-size of the file being added is positive, since
Hudi
- // should not be creating empty files
- checkState(fileSize > 0);
- fileInfo.put(fileName, new HoodieMetadataFileInfo(fileSize, false));
- });
+ filesAdded.forEach((fileName, fileSize) -> fileInfo.put(fileName, new
HoodieMetadataFileInfo(fileSize, false)));
Review Comment:
hey @linliu-code : why did we remove this? seems not related to the purpose
of the PR
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]