FAQ
Author: jcamacho
Date: Wed Apr 1 16:12:53 2015
New Revision: 1670706

URL: http://svn.apache.org/r1670706
Log:
HIVE-10181 : CBO (Calcite Return Path): Missing types in averageTypeValueSize method in HiveRelMdSize [CBO Branch] (Jesus Camacho Rodriguez, reviewed by Ashutosh Chauhan)

Modified:
     hive/branches/cbo/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/stats/HiveRelMdSize.java

Modified: hive/branches/cbo/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/stats/HiveRelMdSize.java
URL: http://svn.apache.org/viewvc/hive/branches/cbo/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/stats/HiveRelMdSize.java?rev=1670706&r1=1670705&r2=1670706&view=diff
==============================================================================
--- hive/branches/cbo/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/stats/HiveRelMdSize.java (original)
+++ hive/branches/cbo/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/stats/HiveRelMdSize.java Wed Apr 1 16:12:53 2015
@@ -98,6 +98,8 @@ public class HiveRelMdSize extends RelMd
      return ImmutableNullableList.copyOf(sizes);
    }

+ // TODO: remove when averageTypeValueSize method RelMdSize
+ // supports all types
    public Double averageTypeValueSize(RelDataType type) {
      switch (type.getSqlTypeName()) {
      case BOOLEAN:
@@ -108,6 +110,7 @@ public class HiveRelMdSize extends RelMd
      case INTEGER:
      case FLOAT:
      case REAL:
+ case DECIMAL:
      case DATE:
      case TIME:
        return 4d;

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categorieshive, hadoop
postedApr 1, '15 at 4:12p
activeApr 1, '15 at 4:12p
posts1
users1
websitehive.apache.org

1 user in discussion

Jcamacho: 1 post

People

Translate

site design / logo © 2021 Grokbase