GitHub user wangyum opened a pull request:
https://github.com/apache/spark/pull/21010
[SPARK-23900][SQL] format_number support user specifed format as argument
## What changes were proposed in this pull request?
`format_number` support user specifed format as argument. For example:
```sql
spark-sql> SELECT format_number(12332.123456, '##################.###');
12332.123
```
## How was this patch tested?
unit test
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/wangyum/spark SPARK-23900
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21010.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #21010
----
commit 202fa3d505ed4395858a277c9b871006b2f64483
Author: Yuming Wang <yumwang@...>
Date: 2018-04-09T14:28:44Z
format_number udf should take user specifed format as argument
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]