GitHub user kiszk opened a pull request:
https://github.com/apache/spark/pull/21102
[SPARK-23913][SQL] Add array_intersect function
## What changes were proposed in this pull request?
The PR adds the SQL function `array_intersect`. The behavior of the
function is based on Presto's one.
This function returns returns an array of the elements in the intersection
of array1 and array2.
Note: The order of elements in the result is not defined.
## How was this patch tested?
Added UTs
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/kiszk/spark SPARK-23913
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21102.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 #21102
----
commit 548a4b804472e062e36308274d1aff8909621131
Author: Kazuaki Ishizaki <ishizaki@...>
Date: 2018-04-18T16:01:50Z
initial commit
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]