You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiangrui Meng (JIRA)" <ji...@apache.org> on 2015/09/21 07:59:04 UTC

[jira] [Updated] (SPARK-10724) SQL's floor() returns DOUBLE

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

Xiangrui Meng updated SPARK-10724:
----------------------------------
    Assignee:     (was: Xiangrui Meng)

> SQL's floor() returns DOUBLE
> ----------------------------
>
>                 Key: SPARK-10724
>                 URL: https://issues.apache.org/jira/browse/SPARK-10724
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.5.0
>            Reporter: Simeon Simeonov
>            Priority: Critical
>              Labels: sql
>
> This is a change in behavior from 1.4.1 where {{floor}} returns a BIGINT. 
> {code}
> scala> sql("select floor(1)").printSchema
> root
>  |-- _c0: double (nullable = true)
> {code}
> In the [Hive Language Manual|https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF] {{floor}} is defined to return BIGINT.
> This is a significant issue because it changes the DataFrame schema.
> I wonder what caused this and whether other SQL functions are affected.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org