Yuming Wang created SPARK-20951:
-----------------------------------
Summary: Built-in SQL Function FormatNumber should validate input
value
Key: SPARK-20951
URL: https://issues.apache.org/jira/browse/SPARK-20951
Project: Spark
Issue Type: Sub-task
Components: SQL
Affects Versions: 2.2.0
Reporter: Yuming Wang
Built-in SQL Function {{FormatNumber}} should validate input value, same as
Hive:
{code:sql}
hive> select format_number(12332.123456, -4);
FAILED: SemanticException [Error 10014]: Line 1:7 Wrong arguments '4':
org.apache.hadoop.hive.ql.metadata.HiveException: Argument 2 of function
FORMAT_NUMBER must be >= 0, but "-4" was found
hive>
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]