hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject svn commit: r1634710 - /hive/branches/branch-0.14/ql/src/java/org/apache/hadoop/hive/ql/optimizer/optiq/translator/ASTBuilder.java
Date Mon, 27 Oct 2014 22:29:12 GMT
Author: sershe
Date: Mon Oct 27 22:29:12 2014
New Revision: 1634710

URL: http://svn.apache.org/r1634710
Log:
HIVE-8575 : CBO: decimal_udf is broken by recent changes (and other tests have type changes)
(Sergey Shelukhin, reviewed by Laljo John Pullokkaran)

Modified:
    hive/branches/branch-0.14/ql/src/java/org/apache/hadoop/hive/ql/optimizer/optiq/translator/ASTBuilder.java

Modified: hive/branches/branch-0.14/ql/src/java/org/apache/hadoop/hive/ql/optimizer/optiq/translator/ASTBuilder.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.14/ql/src/java/org/apache/hadoop/hive/ql/optimizer/optiq/translator/ASTBuilder.java?rev=1634710&r1=1634709&r2=1634710&view=diff
==============================================================================
--- hive/branches/branch-0.14/ql/src/java/org/apache/hadoop/hive/ql/optimizer/optiq/translator/ASTBuilder.java
(original)
+++ hive/branches/branch-0.14/ql/src/java/org/apache/hadoop/hive/ql/optimizer/optiq/translator/ASTBuilder.java
Mon Oct 27 22:29:12 2014
@@ -167,6 +167,9 @@ class ASTBuilder {
       type = HiveParser.SmallintLiteral;
       break;
     case INTEGER:
+      val = literal.getValue3();
+      type = HiveParser.BigintLiteral;
+      break;
     case BIGINT:
       if (useTypeQualInLiteral) {
         val = literal.getValue3() + "L";



Mime
View raw message