GitHub user viirya opened a pull request:
https://github.com/apache/spark/pull/21724
[SPARK-24749] Use sameType to compare Array's element type in ArrayContains
## What changes were proposed in this pull request?
We should use `DataType.sameType` to compare element type in
`ArrayContains`, otherwise nullability affects comparison result.
## How was this patch tested?
Added test.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/viirya/spark-1 SPARK-24749
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21724.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 #21724
----
commit 2c16b4e0b89985886f4f588f39c71249f92f3aa9
Author: Liang-Chi Hsieh <viirya@...>
Date: 2018-07-06T07:24:24Z
Use sameType to compare Array's element type.
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]