danny0405 commented on code in PR #13070:
URL: https://github.com/apache/hudi/pull/13070#discussion_r2029620890
##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/table/action/deltacommit/SparkUpsertDeltaCommitPartitioner.java:
##########
@@ -73,13 +74,13 @@ protected List<SmallFile> getSmallFiles(String
partitionPath) {
if (smallFileSlice.getBaseFile().isPresent()) {
HoodieBaseFile baseFile = smallFileSlice.getBaseFile().get();
sf.location = new HoodieRecordLocation(baseFile.getCommitTime(),
baseFile.getFileId());
- sf.sizeBytes = getTotalFileSize(smallFileSlice);
+ sf.sizeBytes =
FileSliceUtils.getTotalFileSizeAsParquetFormat(smallFileSlice,
config.getLogFileToParquetCompressionRatio());
Review Comment:
Can be moved to class `FileSlice`, and keep the comment of method:
`convertLogFilesSizeToExpectedParquetSize`.
--
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]