spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Owen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-10724) SQL's floor() returns DOUBLE
Date Thu, 01 Oct 2015 12:06:26 GMT

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

Sean Owen resolved SPARK-10724.
-------------------------------
    Resolution: Duplicate

> 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


Mime
View raw message