GitHub user mgaido91 opened a pull request:
https://github.com/apache/spark/pull/19909
[SPARK-22697][SQL] GenerateMutableProjection should not create unneeded
global variables
## What changes were proposed in this pull request?
GenerateMutableProjection is using global variables which are not needed.
This can generate many unneeded entries in the constant pool.
The PR removes the unnecessary mutable states and makes them local
variables.
## How was this patch tested?
added UT
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mgaido91/spark SPARK-22697
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/19909.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 #19909
----
commit d3bebce3ba72b184c8b29e256ab6ca432a7ee246
Author: Marco Gaido <[email protected]>
Date: 2017-12-06T11:35:36Z
[SPARK-22697][SQL] GenerateMutableProjection should not create unneeded
global variables
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]