vamshipasunuru commented on code in PR #12608:
URL: https://github.com/apache/hudi/pull/12608#discussion_r1919625381
##########
hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/realtime/RealtimeUnmergedRecordReader.java:
##########
@@ -105,16 +109,20 @@ private List<HoodieProducer<ArrayWritable>>
getParallelProducers(
) {
return Arrays.asList(
new FunctionBasedQueueProducer<>(queue -> {
- HoodieUnMergedLogRecordScanner scanner =
- scannerBuilder.withLogRecordScannerCallback(record -> {
- // convert Hoodie log record to Hadoop AvroWritable and
buffer
- GenericRecord rec = (GenericRecord)
record.toIndexedRecord(getReaderSchema(), payloadProps).get().getData();
- ArrayWritable aWritable = (ArrayWritable)
HoodieRealtimeRecordReaderUtils.avroToArrayWritable(rec, getHiveSchema(),
isSupportTimestamp());
- queue.insertRecord(aWritable);
- })
- .build();
- // Scan all the delta-log files, filling in the queue
- scanner.scan();
+ HoodieUnMergedLogRecordScanner scanner = scannerBuilder.build();
Review Comment:
Adjusted the usage within BoundedMemoryRecords in
MergeOnReadInputFormat#getUnMergedLogFileIterator
--
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]