zhangyue19921010 commented on code in PR #13134:
URL: https://github.com/apache/hudi/pull/13134#discussion_r2039692891
##########
hudi-hadoop-mr/src/test/java/org/apache/hudi/hadoop/hive/TestHoodieCombineHiveInputFormat.java:
##########
@@ -447,34 +445,43 @@ public void testHoodieRealtimeCombineHoodieInputFormat()
throws Exception {
schema.toString(), HoodieTimeline.COMMIT_ACTION);
FileCreateUtilsLegacy.createCommit(COMMIT_METADATA_SER_DE,
tempDir.toString(), commitTime, Option.of(commitMetadata));
+ long writtenBytes = 0;
// insert 1000 update records to log file 0
String newCommitTime = "101";
HoodieLogFormat.Writer writer =
InputFormatTestUtil.writeDataBlockToLogFile(partitionDir, storage,
schema, "fileid0",
commitTime, newCommitTime,
numRecords, numRecords, 0);
+ writtenBytes += writer.getCurrentSize();
writer.close();
// insert 1000 update records to log file 1
writer =
InputFormatTestUtil.writeDataBlockToLogFile(partitionDir, storage,
schema, "fileid1",
commitTime, newCommitTime,
numRecords, numRecords, 0);
+ writtenBytes += writer.getCurrentSize();
writer.close();
// insert 1000 update records to log file 2
writer =
InputFormatTestUtil.writeDataBlockToLogFile(partitionDir, storage,
schema, "fileid2",
commitTime, newCommitTime,
numRecords, numRecords, 0);
+ writtenBytes += writer.getCurrentSize();
writer.close();
TableDesc tblDesc = Utilities.defaultTd;
// Set the input format
- tblDesc.setInputFileFormatClass(HoodieCombineHiveInputFormat.class);
+ tblDesc.setInputFileFormatClass(HoodieParquetRealtimeInputFormat.class);
Review Comment:
In HoodieCombineHiveInputFormat, There is a miss-understanding of config
`SPLIT_MAXSIZE` which is a size of data file size instead of a size of data
file number.
Before this pr, we will only get 1 map when using hive to query hudi table.
--
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]