FAQ
Author: prasanthj
Date: Fri Dec 5 08:45:09 2014
New Revision: 1643195

URL: http://svn.apache.org/viewvc?rev=1643195&view=rev
Log:
HIVE-8870: errors when selecting a struct field within an array from ORC based tables (Sergio Peña via Prasanth Jayachandran)

Modified:
     hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcStruct.java

Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcStruct.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcStruct.java?rev=1643195&r1=1643194&r2=1643195&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcStruct.java (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcStruct.java Fri Dec 5 08:45:09 2014
@@ -216,7 +216,7 @@ final public class OrcStruct implements
      @Override
      public StructField getStructFieldRef(String s) {
        for(StructField field: fields) {
- if (field.getFieldName().equals(s)) {
+ if (field.getFieldName().equalsIgnoreCase(s)) {
            return field;
          }
        }
@@ -304,7 +304,7 @@ final public class OrcStruct implements
          for(int i = 0; i < fields.size(); ++i) {
            StructField left = other.get(i);
            StructField right = fields.get(i);
- if (!(left.getFieldName().equals(right.getFieldName()) &&
+ if (!(left.getFieldName().equalsIgnoreCase(right.getFieldName()) &&
                  left.getFieldObjectInspector().equals
                      (right.getFieldObjectInspector()))) {
              return false;

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categorieshive, hadoop
postedDec 5, '14 at 8:45a
activeDec 5, '14 at 8:45a
posts1
users1
websitehive.apache.org

1 user in discussion

Prasanthj: 1 post

People

Translate

site design / logo © 2021 Grokbase