[
https://issues.apache.org/jira/browse/SPARK-20291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Apache Spark reassigned SPARK-20291:
------------------------------------
Assignee: Apache Spark (was: DB Tsai)
> NaNvl(FloatType, NullType) should not be cast to NaNvl(DoubleType,
> DoubleType)
> -------------------------------------------------------------------------------
>
> Key: SPARK-20291
> URL: https://issues.apache.org/jira/browse/SPARK-20291
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.0.0, 2.0.1, 2.0.2, 2.1.0
> Reporter: DB Tsai
> Assignee: Apache Spark
>
> `NaNvl(float value, null)` will be converted into `NaNvl(float value,
> Cast(null, DoubleType))` and finally `NaNvl(Cast(float value, DoubleType),
> Cast(null, DoubleType))`.
> This will cause mismatching in the output type when the input type is float.
> By adding extra rule in TypeCoercion can resolve this issue.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]