spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-20951) Built-in SQL Function FormatNumber should validate input value
Date Thu, 01 Jun 2017 10:23:04 GMT

    [ https://issues.apache.org/jira/browse/SPARK-20951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16032752#comment-16032752
] 

Apache Spark commented on SPARK-20951:
--------------------------------------

User 'wangyum' has created a pull request for this issue:
https://github.com/apache/spark/pull/18175

> 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


Mime
View raw message