Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-17773

HiveInspector wrapper for JavaVoidObjectInspector is missing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • 2.1.0
    • Input/Output
    • None

    Description

      Executing following query fails.

      select SOME_UDAF*(a.arr) 
      from (
        select Array(null) as arr from dim_one_row
      ) a
      
      SOME_UDAF= It's an UDAF which is similar to FIRST(), but skips the null values if it can and adds randomization.
      
      Error message:
      scala.MatchError: org.apache.hadoop.hive.serde2.objectinspector.primitive.JavaVoidObjectInspector@39055e0d (of class org.apache.hadoop.hive.serde2.objectinspector.primitive.JavaVoidObjectInspector)
        at org.apache.spark.sql.hive.HiveInspectors$class.wrapperFor(HiveInspectors.scala:257)
        at org.apache.spark.sql.hive.HiveUDAFFunction.wrapperFor(hiveUDFs.scala:269)
        at org.apache.spark.sql.hive.HiveInspectors$class.wrap(HiveInspectors.scala:719)
      

      Attachments

        Activity

          People

            eseyfe Ergin Seyfe
            eseyfe Ergin Seyfe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: