Skip to content

Commit

Permalink
HIVE-11102 : ReaderImpl: getColumnIndicesFromNames does not work for …
Browse files Browse the repository at this point in the history
…some cases (Sergey Shelukhin, reviewed by Prasanth Jayachandran)
  • Loading branch information
sershe-apache committed Jul 1, 2015
1 parent 6eaa32c commit 023c06c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ql/src/java/org/apache/hadoop/hive/ql/io/orc/ReaderImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,13 @@ private List<Integer> getColumnIndicesFromNames(List<String> colNames) {
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
Expand Down

0 comments on commit 023c06c

Please sign in to comment.