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

UDF decode should accept STRING_GROUP types for the second parameter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • UDF
    • None

    Description

      1. UDF decode should accept STRING_GROUP types for the second parameter
      2. Fix error messages. (replace Encode with Decode)

      select decode(cast('A' as binary), cast('utf-8' as varchar(5)));
      FAILED: SemanticException [Error 10016]: Line 1:59 Argument type mismatch ''utf-8'': The second argument to Encode() must be a string
      

      3. remove unused imports
      4. add udf_decode.q test

      Attachments

        1. HIVE-9587.1.patch
          9 kB
          Alexander Pivovarov
        2. HIVE-9587.2.patch
          9 kB
          Alexander Pivovarov

        Activity

          People

            apivovarov Alexander Pivovarov
            apivovarov Alexander Pivovarov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: