FAQ
Repository: hive
Updated Branches:
   refs/heads/master 8260a7975 -> 0a526774d


HIVE-13005 : CBO: Calcite Operator To Hive Operator (Calcite Return Path): RexNode convert(ExprNodeConstantDesc literal) decimal support bug (Hari Subramaniyan via Sergey Shelukhin)
Signed-off-by: Ashutosh Chauhan <hashutosh@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/0a526774
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/0a526774
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/0a526774

Branch: refs/heads/master
Commit: 0a526774d5a012e0f1cb1adef2a5e3d982e39395
Parents: 8260a79
Author: Hari Subramaniyan <harisankar@apache.org>
Authored: Sat Feb 20 13:50:56 2016 -0800
Committer: Ashutosh Chauhan <hashutosh@apache.org>
Committed: Sat Feb 20 13:50:56 2016 -0800

----------------------------------------------------------------------
  .../hive/ql/optimizer/calcite/translator/RexNodeConverter.java | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/0a526774/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/translator/RexNodeConverter.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/translator/RexNodeConverter.java b/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/translator/RexNodeConverter.java
index 9c929af..ee4f4ea 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/translator/RexNodeConverter.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/translator/RexNodeConverter.java
@@ -455,7 +455,7 @@ public class RexNodeConverter {
          // An alternative would be to throw CboSemanticException and fall back
          // to no CBO.
          RelDataType relType = cluster.getTypeFactory().createSqlType(SqlTypeName.DECIMAL,
- bd.scale(), unscaled.toString().length());
+ unscaled.toString().length(), bd.scale());
          calciteLiteral = rexBuilder.makeExactLiteral(bd, relType);
        }
        break;

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categorieshive, hadoop
postedFeb 20, '16 at 9:52p
activeFeb 20, '16 at 9:52p
posts1
users1
websitehive.apache.org

1 user in discussion

Hashutosh: 1 post

People

Translate

site design / logo © 2021 Grokbase