hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lefty Leverenz (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-7279) UDF format_number() does not work on DECIMAL types
Date Sat, 15 Nov 2014 00:58:34 GMT

    [ https://issues.apache.org/jira/browse/HIVE-7279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14213200#comment-14213200
] 

Lefty Leverenz commented on HIVE-7279:
--------------------------------------

Doc looks good, thanks [~szehon].

* [UDF -- String Functions | https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF#LanguageManualUDF-StringFunctions]

> UDF format_number() does not work on DECIMAL types
> --------------------------------------------------
>
>                 Key: HIVE-7279
>                 URL: https://issues.apache.org/jira/browse/HIVE-7279
>             Project: Hive
>          Issue Type: Bug
>          Components: UDF
>            Reporter: Szehon Ho
>            Assignee: Wilbur Yang
>            Priority: Minor
>             Fix For: 0.14.0
>
>         Attachments: HIVE-7279.1.patch, HIVE-7279.2.patch
>
>
> I believe UDF format should work on decimal types.
> {noformat}
> 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.
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message