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

UDF format_number() does not work on DECIMAL types

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.14.0
    • UDF
    • None

    Description

      I believe UDF format should work on decimal types.

      hive> select format_number(decimal_1.u,1) from decimal_1;
      FAILED: SemanticException [Error 10016]: Line 1:21 Argument type mismatch 'u': Argument 1 of function FORMAT_NUMBER must be "tinyint" or "smallint" or "int" or "bigint" or "double" or "float", but "decimal(5,0)" was found.
      

      Attachments

        1. HIVE-7279.2.patch
          7 kB
          Wilbur Yang
        2. HIVE-7279.1.patch
          6 kB
          Wilbur Yang

        Activity

          People

            wilbur.yang Wilbur Yang
            szehon Szehon Ho
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: