-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-20291][SQL][BACKPORT] NaNvl(FloatType, NullType) should not be cast to N… #17618
Conversation
Test build #75731 has started for PR 17618 at commit |
Shall we add backport tag to the title? |
Test build #75732 has started for PR 17618 at commit |
@viirya Added. Thanks. |
retest this please |
Test build #75734 has finished for PR 17618 at commit
|
… cast to N… …aNvl(DoubleType, DoubleType) ## What changes were proposed in this pull request? This is a backport of #17606 `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. ## How was this patch tested? unite tests. Please review http://spark.apache.org/contributing.html before opening a pull request. Author: DB Tsai <dbt@netflix.com> Author: DB Tsai <dbtsai@dbtsai.com> Closes #17618 from dbtsai/branch-2.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Merging to 2.0.
Could you close it?
Thanks. |
…aNvl(DoubleType, DoubleType)
What changes were proposed in this pull request?
This is a backport of #17606
NaNvl(float value, null)
will be converted intoNaNvl(float value, Cast(null, DoubleType))
and finallyNaNvl(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.
How was this patch tested?
unite tests.
Please review http://spark.apache.org/contributing.html before opening a pull request.