You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yuming Wang (JIRA)" <ji...@apache.org> on 2017/06/21 01:00:01 UTC
[jira] [Resolved] (SPARK-20951) Built-in SQL Function FormatNumber
should validate input value
[ https://issues.apache.org/jira/browse/SPARK-20951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yuming Wang resolved SPARK-20951.
---------------------------------
Resolution: Won't Fix
> 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.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org