org.apache.hadoop.hive.ql.exec.UDFArgumentTypeException: Even arguments to NAMED_STRUCT must be a constant STRING.org.apache.hadoop.hive.serde2.objectinspector.primitive.JavaStringObjectInspector@2f2dbcfc

github.com | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    eco-release-metadata/RELEASENOTES.1.2.0.md at master · aw-was-here/eco-release-metadata · GitHub

    github.com | 5 months ago
    org.apache.hadoop.hive.ql.exec.UDFArgumentTypeException: Even arguments to NAMED_STRUCT must be a constant STRING.org.apache.hadoop.hive.serde2.objectinspector.primitive.JavaStringObjectInspector@2f2dbcfc

    Root Cause Analysis

    1. org.apache.hadoop.hive.ql.exec.UDFArgumentTypeException

      Even arguments to NAMED_STRUCT must be a constant STRING.org.apache.hadoop.hive.serde2.objectinspector.primitive.JavaStringObjectInspector@2f2dbcfc

      at org.apache.hadoop.hive.ql.udf.generic.GenericUDFNamedStruct.initialize()
    2. Hive Query Language
      GenericUDFNamedStruct.initialize
      1. org.apache.hadoop.hive.ql.udf.generic.GenericUDFNamedStruct.initialize(GenericUDFNamedStruct.java:55)
      1 frame
    3. Spark Project Hive
      HiveGenericUdf.eval
      1. org.apache.spark.sql.hive.HiveGenericUdf.returnInspector$lzycompute(hiveUdfs.scala:129)
      2. org.apache.spark.sql.hive.HiveGenericUdf.returnInspector(hiveUdfs.scala:129)
      3. org.apache.spark.sql.hive.HiveGenericUdf.eval(hiveUdfs.scala:158)
      3 frames
    4. Spark Project Catalyst
      ConstantFolding$$anonfun$apply$6$$anonfun$applyOrElse$2.applyOrElse
      1. org.apache.spark.sql.catalyst.optimizer.ConstantFolding$$anonfun$apply$6$$anonfun$applyOrElse$2.applyOrElse(Optimizer.scala:267)
      2. org.apache.spark.sql.catalyst.optimizer.ConstantFolding$$anonfun$apply$6$$anonfun$applyOrElse$2.applyOrElse(Optimizer.scala:260)
      2 frames