danny0405 commented on code in PR #13654:
URL: https://github.com/apache/hudi/pull/13654#discussion_r2265857043
##########
hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/HiveRecordContext.java:
##########
@@ -83,7 +81,7 @@ public HoodieRecord<ArrayWritable>
constructHoodieRecord(BufferedRecord<ArrayWri
}
Schema schema = getSchemaFromBufferRecord(bufferedRecord);
ArrayWritable writable = bufferedRecord.getRecord();
- return new HoodieHiveRecord(key, writable, schema, objectInspectorCache,
bufferedRecord.getHoodieOperation(), bufferedRecord.isDelete());
+ return new HoodieHiveRecord(key, writable, schema,
getHiveAvroSerializer(schema), bufferedRecord.getHoodieOperation(),
bufferedRecord.isDelete());
Review Comment:
the hashcode of avro schema is cached, should be negligible for computation
cost.
--
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]