hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prasan...@apache.org
Subject svn commit: r1643195 - /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcStruct.java
Date Fri, 05 Dec 2014 08:45:09 GMT
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;



Mime
View raw message