You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Zhongshuai Pei (JIRA)" <ji...@apache.org> on 2015/05/12 05:23:00 UTC
[jira] [Closed] (SPARK-6768) Do not support "float/double union
decimal or decimal(a ,b) union decimal(c, d)"
[ https://issues.apache.org/jira/browse/SPARK-6768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zhongshuai Pei closed SPARK-6768.
---------------------------------
Resolution: Fixed
> Do not support "float/double union decimal or decimal(a ,b) union decimal(c, d)"
> --------------------------------------------------------------------------------
>
> Key: SPARK-6768
> URL: https://issues.apache.org/jira/browse/SPARK-6768
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Reporter: Zhongshuai Pei
>
> Do not support sql like that :
> select cast(12.2056999 as float) from testData limit 1
> union
> select cast(12.2041 as decimal(7, 4)) from testData limit 1
> select cast(12.2056999 as double) from testData limit 1
> union
> select cast(12.2041 as decimal(7, 4)) from testData limit 1
> select cast(1241.20 as decimal(6, 2)) from testData limit 1
> union
> select cast(1.204 as decimal(5, 3)) from testData limit 1
--
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