GitHub user rxin opened a pull request:
https://github.com/apache/spark/pull/13208
[SPARK-14990][SQL] Fix checkForSameTypeInputExpr (ignore nullability)
## What changes were proposed in this pull request?
This patch fixes a bug in TypeUtils.checkForSameTypeInputExpr. Previously
the code was testing on strict equality, which does not taking nullability into
account.
This is based on https://github.com/apache/spark/pull/12768. This patch
fixed a bug there (with empty expression) and added a test case.
## How was this patch tested?
Added a new test suite and test case.
Closes #12768.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rxin/spark SPARK-14990
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/13208.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #13208
----
commit 0e4464cd332c056f2798d31663804144723db26b
Author: Oleg Danilov <[email protected]>
Date: 2016-04-28T22:00:26Z
[SPARK-14990][SQL] nvl, coalesce, array functions with parameter of type
'array'
commit 7011995fa70e54abeb253615d38fb75886b57f05
Author: Reynold Xin <[email protected]>
Date: 2016-05-20T01:20:52Z
Merge pull request #12768 from dosoft/SPARK-14990
[SPARK-14990][SQL] nvl, coalesce, array with parameter of type 'array'
commit 2ad10ee6cd96edf4d7f719ab7cd46a1cafa4be4e
Author: Reynold Xin <[email protected]>
Date: 2016-05-20T01:29:40Z
[SPARK-14990][SQL] Fix checkForSameTypeInputExpr by ignoring nullability.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]