[ https://issues.apache.org/jira/browse/SPARK-10724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14905658#comment-14905658 ]
Apache Spark commented on SPARK-10724: -------------------------------------- User 'navis' has created a pull request for this issue: https://github.com/apache/spark/pull/8893 > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org