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

Better error message for UDF parameter handling

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • None
    • None
    • Diagnosability, UDF
    • None

    Description

      CREATE TABLE x (a map<string,string>);
      SELECT round(a) FROM x;
      

      This will show an error message:
      FAILED: Unknown exception : org.apache.hadoop.hive.serde2.typeinfo.MapTypeInfo cannot be cast to org.apache.hadoop.hive.serde2.typeinfo.PrimitiveTypeInfo

      We need better error messsage like:
      FAILED: Unable to pass a (type: map<string,string>) to function round.

      Attachments

        Activity

          People

            Unassigned Unassigned
            zshao Zheng Shao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: