You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by le...@apache.org on 2020/06/09 01:22:15 UTC

[hudi] branch master updated: [HUDI-974] Fix fields out of order in MOR mode when using Hive (#1711)

This is an automated email from the ASF dual-hosted git repository.

leesf pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git


The following commit(s) were added to refs/heads/master by this push:
     new 9e07ceb  [HUDI-974]  Fix fields out of order in MOR mode when using Hive (#1711)
9e07ceb is described below

commit 9e07cebece3b4c8b964ddca2f40053734a392ce2
Author: lw0090 <lw...@gmail.com>
AuthorDate: Tue Jun 9 09:22:06 2020 +0800

    [HUDI-974]  Fix fields out of order in MOR mode when using Hive (#1711)
---
 .../org/apache/hudi/hadoop/realtime/RealtimeUnmergedRecordReader.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/realtime/RealtimeUnmergedRecordReader.java b/hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/realtime/RealtimeUnmergedRecordReader.java
index f1e81a7..4c773d4 100644
--- a/hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/realtime/RealtimeUnmergedRecordReader.java
+++ b/hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/realtime/RealtimeUnmergedRecordReader.java
@@ -80,7 +80,7 @@ class RealtimeUnmergedRecordReader extends AbstractRealtimeRecordReader
         false, jobConf.getInt(MAX_DFS_STREAM_BUFFER_SIZE_PROP, DEFAULT_MAX_DFS_STREAM_BUFFER_SIZE), record -> {
           // convert Hoodie log record to Hadoop AvroWritable and buffer
           GenericRecord rec = (GenericRecord) record.getData().getInsertValue(getReaderSchema()).get();
-          ArrayWritable aWritable = (ArrayWritable) avroToArrayWritable(rec, getWriterSchema());
+          ArrayWritable aWritable = (ArrayWritable) avroToArrayWritable(rec, getHiveSchema());
           this.executor.getQueue().insertRecord(aWritable);
     });
     // Start reading and buffering