You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Rajesh Balamohan (JIRA)" <ji...@apache.org> on 2018/10/26 15:03:00 UTC

[jira] [Commented] (HIVE-20816) FastHiveDecimal throws Exception (RuntimeException: Unexpected #3)

    [ https://issues.apache.org/jira/browse/HIVE-20816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16665272#comment-16665272 ] 

Rajesh Balamohan commented on HIVE-20816:
-----------------------------------------

Related ticket: https://issues.apache.org/jira/browse/HIVE-19085

https://github.com/apache/hive/blob/f37c5de6c32b9395d1b34fa3c02ed06d1bfbf6eb/storage-api/src/java/org/apache/hadoop/hive/common/type/FastHiveDecimalImpl.java#L2537

If all words are 0 && byteIndex is 0 as well, we should return 0 instead of proceeding further. 


> FastHiveDecimal throws Exception (RuntimeException: Unexpected #3)
> ------------------------------------------------------------------
>
>                 Key: HIVE-20816
>                 URL: https://issues.apache.org/jira/browse/HIVE-20816
>             Project: Hive
>          Issue Type: Improvement
>          Components: Hive
>    Affects Versions: 2.3.2
>            Reporter: Rajesh Balamohan
>            Priority: Major
>              Labels: fastdecimal
>
> {noformat}
> with t1 as (
> ...
> ...
> )
> select id, max(abs(c1))) from t1 group by id;
> {noformat}
> throws the following exception
> {noformat}
> g.Thread.run(Thread.java:748)
> Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: org.apache.hadoop.hive.ql.metadata.HiveException: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unexpected #3
>  at org.apache.hadoop.hive.ql.exec.GroupByOperator.closeOp(GroupByOperator.java:1126)
>  at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:697)
>  at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:711)
>  at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:711)
>  at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:711)
>  at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:711)
> ....
> ...
> Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unexpected #3
>     at org.apache.hadoop.hive.ql.exec.GroupByOperator.flush(GroupByOperator.java:1084)
>     at org.apache.hadoop.hive.ql.exec.GroupByOperator.closeOp(GroupByOperator.java:1123)
>     ... 18 more
> Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unexpected #3
>     at org.apache.hadoop.hive.ql.exec.ReduceSinkOperator.process(ReduceSinkOperator.java:397)
>     at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:897)
>     at org.apache.hadoop.hive.ql.exec.GroupByOperator.forward(GroupByOperator.java:1047)
>     at org.apache.hadoop.hive.ql.exec.GroupByOperator.flush(GroupByOperator.java:1067)
>     ... 19 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)