GitHub user mgaido91 opened a pull request:
https://github.com/apache/spark/pull/19910
[SPARK-22715][SQL] Reuse the same array in CreateNamedStruct
## What changes were proposed in this pull request?
The PR reuses the same object in CreateNamedStruct instead of instantiating
a new object every time.
Theidea of this PR was suggested by @cloud-fan here
(https://github.com/apache/spark/pull/19896#discussion_r155222527).
## How was this patch tested?
existing UTs
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mgaido91/spark SPARK-22715
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/19910.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 #19910
----
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]