GitHub user kiszk opened a pull request:
https://github.com/apache/spark/pull/21937
[WIP][SPARK-23914][SQL][follow-up] refactor ArrayUnion
## What changes were proposed in this pull request?
This PR refactors `ArrayUnion` based on [this
suggestion](https://github.com/apache/spark/pull/21103#discussion_r205668821).
1. Generate optimized code for all of the primitive types except `boolean`
1. Generate code using `ArrayBuilder` or `ArrayBuffer`
1. Leave only a generic path in the interpreted path
## How was this patch tested?
Existing tests
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/kiszk/spark SPARK-23914-follow
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21937.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 #21937
----
commit 738a4a05f0d8d45c3412179b6cdf41ffea219f4d
Author: Kazuaki Ishizaki <ishizaki@...>
Date: 2018-07-31T19:06:33Z
follow the approach using ArrayExcept
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]