You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yin Huai (JIRA)" <ji...@apache.org> on 2015/07/23 00:23:06 UTC
[jira] [Created] (SPARK-9264) When dealing with
Union/Intersect/Except, we cast FloatType/DoubleType to the wrong
DecimalType
Yin Huai created SPARK-9264:
-------------------------------
Summary: When dealing with Union/Intersect/Except, we cast FloatType/DoubleType to the wrong DecimalType
Key: SPARK-9264
URL: https://issues.apache.org/jira/browse/SPARK-9264
Project: Spark
Issue Type: Sub-task
Affects Versions: 1.4.0
Reporter: Yin Huai
Priority: Blocker
The problem is https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/HiveTypeCoercion.scala#L361-L362. When we union/intersect/except, for a column, if the data type of it in one table is a fixed precision decimal type and that in another table is a FloatType/DoubleType, we cast FloatType to Decimal(7, 7) and cast DoubleType to Decimal(15, 15), respectively. It is wrong.
--
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