xicm commented on code in PR #8888:
URL: https://github.com/apache/hudi/pull/8888#discussion_r1218787154


##########
hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/avro/HoodieAvroParquetReader.java:
##########
@@ -90,7 +83,7 @@ public Void getCurrentKey() throws IOException, 
InterruptedException {
   @Override
   public ArrayWritable getCurrentValue() throws IOException, 
InterruptedException {
     GenericRecord record = parquetRecordReader.getCurrentValue();
-    return (ArrayWritable) 
HoodieRealtimeRecordReaderUtils.avroToArrayWritable(record, baseSchema, true);
+    return (ArrayWritable) 
HoodieRealtimeRecordReaderUtils.avroToArrayWritable(record, record.getSchema(), 
true);

Review Comment:
   Have you tested with hive3? When I test with hive3, the query returns null 
with `record.getSchema()`.
   https://github.com/apache/hudi/pull/7173#issuecomment-1316208189



-- 
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]

Reply via email to