You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2017/11/25 13:21:01 UTC

[jira] [Resolved] (SPARK-22582) Spark SQL round throws error with negative precision

     [ https://issues.apache.org/jira/browse/SPARK-22582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen resolved SPARK-22582.
-------------------------------
    Resolution: Not A Problem

> Spark SQL round throws error with negative precision
> ----------------------------------------------------
>
>                 Key: SPARK-22582
>                 URL: https://issues.apache.org/jira/browse/SPARK-22582
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: Yuxin Cao
>
> select  round(100.1 , 1) as c3,
>         round(100.1 , -1) as c5 from orders;
> Error: java.lang.IllegalArgumentException: Error: name expected at the position 10 of 'decimal(4,-1)' but '-' is found. (state=,code=0)
> The same query works fine in Spark 1.6.



--
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