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

UDF format_number() does not work on DECIMAL types

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.14.0
    • Component/s: UDF
    • Labels:
      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.1.patch
          6 kB
          Wilbur Yang
        2. HIVE-7279.2.patch
          7 kB
          Wilbur Yang

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: