Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-20816

FastHiveDecimal throws Exception (RuntimeException: Unexpected #3)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 2.3.2
    • None
    • Hive

    Description

      with t1 as (
      ...
      ...
      )
      select id, max(abs(c1))) from t1 group by id;
      

      throws the following exception

      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
      
      

      Attachments

        1. HIVE-20816.1.patch
          0.8 kB
          Rajesh Balamohan

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rajesh.balamohan Rajesh Balamohan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: