[
https://issues.apache.org/jira/browse/HIVE-2694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13180747#comment-13180747
]
Carl Steinbach commented on HIVE-2694:
--------------------------------------
Ref:
http://dev.mysql.com/doc/refman/5.1/en/string-functions.html#function_format
Formats the number X to a format like '#,###,###.##', rounded to D decimal
places, and returns the result as a string. If D is 0, the result has no
decimal point or fractional part.
mysql> SELECT FORMAT(12332.123456, 4);
-> '12,332.1235'
mysql> SELECT FORMAT(12332.1,4);
-> '12,332.1000'
mysql> SELECT FORMAT(12332.2,0);
-> '12,332'
> Add FORMAT UDF
> --------------
>
> Key: HIVE-2694
> URL: https://issues.apache.org/jira/browse/HIVE-2694
> Project: Hive
> Issue Type: New Feature
> Components: UDF
> Reporter: Carl Steinbach
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira