You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Amareshwari Sriramadasu (JIRA)" <ji...@apache.org> on 2014/02/17 09:41:20 UTC

[jira] [Updated] (HIVE-5370) format_number udf should take user specifed format as argument

     [ https://issues.apache.org/jira/browse/HIVE-5370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amareshwari Sriramadasu updated HIVE-5370:
------------------------------------------

    Attachment: HIVE-5370.patch

Attaching the patch with following changes:

* Added the format as second argument. 
* Also takes care of null be being formatted. Current code throws NPE for null value, fixed it to return null on formatting of null.

Review request for the same: https://reviews.apache.org/r/18182/

> format_number udf should take user specifed format as argument
> --------------------------------------------------------------
>
>                 Key: HIVE-5370
>                 URL: https://issues.apache.org/jira/browse/HIVE-5370
>             Project: Hive
>          Issue Type: Improvement
>          Components: UDF
>            Reporter: Amareshwari Sriramadasu
>            Assignee: Amareshwari Sriramadasu
>            Priority: Minor
>             Fix For: 0.13.0
>
>         Attachments: D13185.1.patch, D13185.2.patch, HIVE-5370.patch
>
>
> Currently, format_number udf formats the number to #,###,###.##, but it should also take a user specified format as optional input.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)