xiarixiaoyao commented on a change in pull request #4910:
URL: https://github.com/apache/hudi/pull/4910#discussion_r835198394
##########
File path:
hudi-common/src/main/java/org/apache/hudi/common/table/log/block/HoodieAvroDataBlock.java
##########
@@ -147,17 +159,26 @@ private RecordIterator(Schema readerSchema, Schema
writerSchema, byte[] content)
int version = this.dis.readInt();
HoodieAvroDataBlockVersion logBlockVersion = new
HoodieAvroDataBlockVersion(version);
- this.reader = new GenericDatumReader<>(writerSchema, readerSchema);
+ Schema finalReadSchema = readerSchema;
+ if (!internalSchema.isEmptySchema()) {
Review comment:
maybe i miss somethings,
this case already covered by Spark3DDLTest.scala,
--
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]