KiteSoar commented on code in PR #17772:
URL: https://github.com/apache/hudi/pull/17772#discussion_r2658789409
##########
hudi-common/src/main/java/org/apache/hudi/common/table/log/AbstractHoodieLogRecordScanner.java:
##########
@@ -848,9 +848,9 @@ private Option<Pair<Function<HoodieRecord, HoodieRecord>,
Schema>> composeEvolve
return Option.of(Pair.of((record) -> {
return record.rewriteRecordWithNewSchema(
- dataBlock.getSchema().toAvroSchema(),
+ dataBlock.getSchema(),
this.hoodieTableMetaClient.getTableConfig().getProps(),
- mergedAvroSchema,
+ HoodieSchema.fromAvroSchema(mergedAvroSchema),
Review Comment:
done
##########
hudi-common/src/main/java/org/apache/hudi/common/table/log/AbstractHoodieLogRecordScanner.java:
##########
@@ -634,7 +634,7 @@ private void processDataBlock(HoodieDataBlock dataBlock,
Option<KeySpec> keySpec
try (ClosableIterator<HoodieRecord> recordIterator =
recordsIteratorSchemaPair.getLeft()) {
while (recordIterator.hasNext()) {
HoodieRecord completedRecord = recordIterator.next()
-
.wrapIntoHoodieRecordPayloadWithParams(recordsIteratorSchemaPair.getRight(),
+
.wrapIntoHoodieRecordPayloadWithParams(HoodieSchema.fromAvroSchema(recordsIteratorSchemaPair.getRight()),
Review Comment:
done
--
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]