hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jxi...@apache.org
Subject svn commit: r1674332 - in /hive/trunk/ql/src: java/org/apache/hadoop/hive/ql/parse/ test/results/clientpositive/ test/results/clientpositive/tez/
Date Fri, 17 Apr 2015 14:58:58 GMT
Author: jxiang
Date: Fri Apr 17 14:58:57 2015
New Revision: 1674332

URL: http://svn.apache.org/r1674332
Log:
HIVE-10313: Literal Decimal ExprNodeConstantDesc should contain value of HiveDecimal instead
of String (Chaoyu via Jimmy)

Modified:
    hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java
    hive/trunk/ql/src/test/results/clientpositive/literal_decimal.q.out
    hive/trunk/ql/src/test/results/clientpositive/tez/vector_decimal_2.q.out
    hive/trunk/ql/src/test/results/clientpositive/vector_decimal_2.q.out

Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java?rev=1674332&r1=1674331&r2=1674332&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java Fri Apr
17 14:58:57 2015
@@ -302,7 +302,7 @@ public class TypeCheckProcFactory {
             scale = hd.scale();
           }
           DecimalTypeInfo typeInfo = TypeInfoFactory.getDecimalTypeInfo(prec, scale);
-          return new ExprNodeConstantDesc(typeInfo, strVal);
+          return new ExprNodeConstantDesc(typeInfo, hd);
         } else {
           v = Double.valueOf(expr.getText());
           v = Long.valueOf(expr.getText());

Modified: hive/trunk/ql/src/test/results/clientpositive/literal_decimal.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/literal_decimal.q.out?rev=1674332&r1=1674331&r2=1674332&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/literal_decimal.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/literal_decimal.q.out Fri Apr 17 14:58:57
2015
@@ -14,12 +14,12 @@ STAGE PLANS:
           alias: src
           Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: COMPLETE
           Select Operator
-            expressions: -1 (type: decimal(1,0)), 0 (type: decimal(1,0)), 1 (type: decimal(1,0)),
3.14 (type: decimal(3,2)), -3.14 (type: decimal(3,2)), 99999999999999999 (type: decimal(17,0)),
99999999999999999.9999999999999 (type: decimal(30,13)), 1E99 (type: decimal(1,0))
+            expressions: -1 (type: decimal(1,0)), 0 (type: decimal(1,0)), 1 (type: decimal(1,0)),
3.14 (type: decimal(3,2)), -3.14 (type: decimal(3,2)), 99999999999999999 (type: decimal(17,0)),
99999999999999999.9999999999999 (type: decimal(30,13)), null (type: decimal(1,0))
             outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7
-            Statistics: Num rows: 500 Data size: 448000 Basic stats: COMPLETE Column stats:
COMPLETE
+            Statistics: Num rows: 500 Data size: 392000 Basic stats: COMPLETE Column stats:
COMPLETE
             Limit
               Number of rows: 1
-              Statistics: Num rows: 1 Data size: 896 Basic stats: COMPLETE Column stats:
COMPLETE
+              Statistics: Num rows: 1 Data size: 784 Basic stats: COMPLETE Column stats:
COMPLETE
               ListSink
 
 PREHOOK: query: SELECT -1BD, 0BD, 1BD, 3.14BD, -3.14BD, 99999999999999999BD, 99999999999999999.9999999999999BD,
1E99BD FROM src LIMIT 1

Modified: hive/trunk/ql/src/test/results/clientpositive/tez/vector_decimal_2.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/tez/vector_decimal_2.q.out?rev=1674332&r1=1674331&r2=1674332&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/tez/vector_decimal_2.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/tez/vector_decimal_2.q.out Fri Apr 17 14:58:57
2015
@@ -1039,6 +1039,7 @@ STAGE PLANS:
                       sort order: +
                       Statistics: Num rows: 1 Data size: 112 Basic stats: COMPLETE Column
stats: COMPLETE
                       value expressions: _col0 (type: decimal(4,2))
+            Execution mode: vectorized
         Reducer 2 
             Reduce Operator Tree:
               Select Operator
@@ -1100,6 +1101,7 @@ STAGE PLANS:
                       sort order: +
                       Statistics: Num rows: 1 Data size: 112 Basic stats: COMPLETE Column
stats: COMPLETE
                       value expressions: _col0 (type: decimal(4,2))
+            Execution mode: vectorized
         Reducer 2 
             Reduce Operator Tree:
               Select Operator
@@ -1161,6 +1163,7 @@ STAGE PLANS:
                       sort order: +
                       Statistics: Num rows: 1 Data size: 112 Basic stats: COMPLETE Column
stats: COMPLETE
                       value expressions: _col0 (type: decimal(30,8))
+            Execution mode: vectorized
         Reducer 2 
             Reduce Operator Tree:
               Select Operator
@@ -1647,6 +1650,7 @@ STAGE PLANS:
                       sort order: +
                       Statistics: Num rows: 1 Data size: 112 Basic stats: COMPLETE Column
stats: COMPLETE
                       value expressions: _col0 (type: decimal(20,20))
+            Execution mode: vectorized
         Reducer 2 
             Reduce Operator Tree:
               Select Operator

Modified: hive/trunk/ql/src/test/results/clientpositive/vector_decimal_2.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/vector_decimal_2.q.out?rev=1674332&r1=1674331&r2=1674332&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/vector_decimal_2.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/vector_decimal_2.q.out Fri Apr 17 14:58:57
2015
@@ -922,6 +922,7 @@ STAGE PLANS:
                 sort order: +
                 Statistics: Num rows: 1 Data size: 112 Basic stats: COMPLETE Column stats:
COMPLETE
                 value expressions: _col0 (type: decimal(4,2))
+      Execution mode: vectorized
       Reduce Operator Tree:
         Select Operator
           expressions: VALUE._col0 (type: decimal(4,2))
@@ -976,6 +977,7 @@ STAGE PLANS:
                 sort order: +
                 Statistics: Num rows: 1 Data size: 112 Basic stats: COMPLETE Column stats:
COMPLETE
                 value expressions: _col0 (type: decimal(4,2))
+      Execution mode: vectorized
       Reduce Operator Tree:
         Select Operator
           expressions: VALUE._col0 (type: decimal(4,2))
@@ -1030,6 +1032,7 @@ STAGE PLANS:
                 sort order: +
                 Statistics: Num rows: 1 Data size: 112 Basic stats: COMPLETE Column stats:
COMPLETE
                 value expressions: _col0 (type: decimal(30,8))
+      Execution mode: vectorized
       Reduce Operator Tree:
         Select Operator
           expressions: VALUE._col0 (type: decimal(30,8))
@@ -1460,6 +1463,7 @@ STAGE PLANS:
                 sort order: +
                 Statistics: Num rows: 1 Data size: 112 Basic stats: COMPLETE Column stats:
COMPLETE
                 value expressions: _col0 (type: decimal(20,20))
+      Execution mode: vectorized
       Reduce Operator Tree:
         Select Operator
           expressions: VALUE._col0 (type: decimal(20,20))



Mime
View raw message