You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Simeon Simeonov (JIRA)" <ji...@apache.org> on 2015/09/21 07:51:04 UTC
[jira] [Created] (SPARK-10724) SQL's floor() returns DOUBLE
Simeon Simeonov created SPARK-10724:
---------------------------------------
Summary: 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
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