DB Tsai created SPARK-20291:
-------------------------------

             Summary: 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.1.0, 2.0.2, 2.0.1, 2.0.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: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to