GitHub user navis opened a pull request:
https://github.com/apache/spark/pull/8893
[SPARK-10724] [SQL] SQL's floor() returns DOUBLE
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.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/navis/spark SPARK-10724
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/8893.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #8893
----
commit d753294150cb51238121f00b5933df007de968b8
Author: navis.ryu <[email protected]>
Date: 2015-09-24T01:42:47Z
[SPARK-10724] [SQL] SQL's floor() returns DOUBLE
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]