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/01 10:24:04 UTC

[jira] [Issue Comment Deleted] (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 updated SPARK-20951:
--------------------------------
    Comment: was deleted

(was: I'm working on.)

> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org