[ 
https://issues.apache.org/jira/browse/SPARK-20291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15964047#comment-15964047
 ] 

Apache Spark commented on SPARK-20291:
--------------------------------------

User 'dbtsai' has created a pull request for this issue:
https://github.com/apache/spark/pull/17606

> 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: DB Tsai
>
> `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]

Reply via email to