hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gunt...@apache.org
Subject svn commit: r1635271 - /hive/branches/branch-0.14/ql/src/java/org/apache/hadoop/hive/ql/optimizer/optiq/translator/ASTBuilder.java
Date Wed, 29 Oct 2014 19:34:14 GMT
Author: gunther
Date: Wed Oct 29 19:34:14 2014
New Revision: 1635271

URL: http://svn.apache.org/r1635271
Log:
HIVE-8619: CBO causes some more type problems (Laljo John Pullokkaran via Gunther Hagleitner)

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=1635271&r1=1635270&r2=1635271&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
Wed Oct 29 19:34:14 2014
@@ -179,19 +179,11 @@ class ASTBuilder {
       type = HiveParser.BigintLiteral;
       break;
     case DOUBLE:
-      if (useTypeQualInLiteral) {
-        val = literal.getValue3() + "D";
-      } else {
-        val = literal.getValue3();
-      }
+      val = literal.getValue3() + "D";
       type = HiveParser.Number;
       break;
     case DECIMAL:
-      if (useTypeQualInLiteral) {
-        val = literal.getValue3() + "BD";
-      } else {
-        val = literal.getValue3();
-      }
+      val = literal.getValue3() + "BD";
       type = HiveParser.DecimalLiteral;
       break;
     case FLOAT:



Mime
View raw message