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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to