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

Grouping by a struct throws an exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 0.12.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Queries that require a shuffle with a struct as the key result in an exception:

      Caused by: java.lang.RuntimeException: Hash code on complex types not supported yet.
      	at org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils.hashCode(ObjectInspectorUtils.java:528)
      	at org.apache.hadoop.hive.ql.exec.ReduceSinkOperator.processOp(ReduceSinkOperator.java:226)
      	at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:531)
      	at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:859)
      	at org.apache.hadoop.hive.ql.exec.GroupByOperator.forward(GroupByOperator.java:1066)
      	at org.apache.hadoop.hive.ql.exec.GroupByOperator.closeOp(GroupByOperator.java:1118)
      	... 13 more
      

        Attachments

        1. demonstration.txt
          4 kB
          Mark Wagner

          Issue Links

            Activity

              People

              • Assignee:
                mwagner Mark Wagner
                Reporter:
                mwagner Mark Wagner
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: