GitHub user mgaido91 opened a pull request:
https://github.com/apache/spark/pull/19822
[SPARK-22609][SQL] Reuse CodeGenerator.nullSafeExec when possible
## What changes were proposed in this pull request?
There are several places in the code where `CodeGeneration.nullSafeExec`
could be used, but it is not. This makes the generated code containing a lot of
useless:
```
if (!false) {
// some code here
}
```
This PR use `CodeGeneration.nullSafeExec` where it is possible, also for
consistency and coherency of the code.
## 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-22609
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/19822.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 #19822
----
commit 830793e75a43ec119be520f20e4565259cd11d71
Author: Marco Gaido <[email protected]>
Date: 2017-11-26T11:22:42Z
[SPARK-22609][SQL] Reuse CodeGenerator.nullSafeExec when possible
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]