hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hashut...@apache.org
Subject svn commit: r1674994 - /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java
Date Mon, 20 Apr 2015 21:57:14 GMT
Author: hashutosh
Date: Mon Apr 20 21:57:13 2015
New Revision: 1674994

URL: http://svn.apache.org/r1674994
Log:
HIVE-10400 : CBO (Calcite Return Path): Exception when column name contains dot or colon characters
(Jesus Camacho Rodriguez via John Pullokkaran)

Modified:
    hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java

Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java?rev=1674994&r1=1674993&r2=1674994&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java Mon Apr 20
21:57:13 2015
@@ -2429,6 +2429,9 @@ public class CalcitePlanner extends Sema
          */
         tmpColAlias = qualifiedColNames[1];
 
+        if (tmpColAlias.contains(".") || tmpColAlias.contains(":")) {
+          tmpColAlias = cInfo.getInternalName();
+        }
         // Prepend column names with '_o_' if it starts with '_c'
         /*
          * Hive treats names that start with '_c' as internalNames; so change



Mime
View raw message