spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiao Li (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-20291) NaNvl(FloatType, NullType) should not be cast to NaNvl(DoubleType, DoubleType)
Date Wed, 12 Apr 2017 16:09:41 GMT

     [ https://issues.apache.org/jira/browse/SPARK-20291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Xiao Li updated SPARK-20291:
----------------------------
    Fix Version/s: 2.0.3

> 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
>             Fix For: 2.0.3, 2.1.1, 2.2.0
>
>
> `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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message