spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yi Zhou (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-10865) [Spark SQL] [UDF] the ceil/ceiling function got wrong return value type
Date Tue, 29 Sep 2015 03:14:04 GMT
Yi Zhou created SPARK-10865:
-------------------------------

             Summary: [Spark SQL] [UDF] the ceil/ceiling function got wrong return value type
                 Key: SPARK-10865
                 URL: https://issues.apache.org/jira/browse/SPARK-10865
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 1.5.0
            Reporter: Yi Zhou


As per ceil/ceiling definition,it should get BIGINT return value
-ceil(DOUBLE a), ceiling(DOUBLE a)
-Returns the minimum BIGINT value that is equal to or greater than a.

But in current implementation, it got wrong value type.
e.g., 
select ceil(2642.12) from udf_test_web_sales limit 1;
2643.0



--
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