hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject [24/25] hive git commit: HIVE-11102 : ReaderImpl: getColumnIndicesFromNames does not work for some cases (Sergey Shelukhin, reviewed by Prasanth Jayachandran)
Date Thu, 02 Jul 2015 01:49:29 GMT
HIVE-11102 : ReaderImpl: getColumnIndicesFromNames does not work for some cases (Sergey Shelukhin,
reviewed by Prasanth Jayachandran)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/023c06c1
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/023c06c1
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/023c06c1

Branch: refs/heads/llap
Commit: 023c06c17d7e03ba0458ed2bac6b475102150d77
Parents: 6eaa32c
Author: Sergey Shelukhin <sershe@apache.org>
Authored: Wed Jul 1 16:59:21 2015 -0700
Committer: Sergey Shelukhin <sershe@apache.org>
Committed: Wed Jul 1 16:59:21 2015 -0700

----------------------------------------------------------------------
 ql/src/java/org/apache/hadoop/hive/ql/io/orc/ReaderImpl.java | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/023c06c1/ql/src/java/org/apache/hadoop/hive/ql/io/orc/ReaderImpl.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/io/orc/ReaderImpl.java b/ql/src/java/org/apache/hadoop/hive/ql/io/orc/ReaderImpl.java
index bbc4654..3c0de3c 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/io/orc/ReaderImpl.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/io/orc/ReaderImpl.java
@@ -642,6 +642,13 @@ public class ReaderImpl implements Reader {
     for (String colName : colNames) {
       if (fieldNames.contains(colName)) {
         fieldIdx = fieldNames.indexOf(colName);
+      } else {
+        String s = "Cannot find field for: " + colName + " in ";
+        for (String fn : fieldNames) {
+          s += fn + ", ";
+        }
+        LOG.warn(s);
+        continue;
       }
 
       // a single field may span multiple columns. find start and end column


Mime
View raw message