GitHub user cloud-fan opened a pull request:
https://github.com/apache/spark/pull/19895
[SPARK-22701][SQL] add ctx.splitExpressionsWithCurrentInputs
## What changes were proposed in this pull request?
This pattern appears many times in the codebase:
```
if (ctx.INPUT_ROW == null || ctx.currentVars != null) {
exprs.mkString("\n")
} else {
ctx.splitExpressions(...)
}
```
This PR adds a `ctx.splitExpressionsWithCurrentInputs` for this pattern
## How was this patch tested?
existing tests
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cloud-fan/spark splitExpression
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/19895.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 #19895
----
commit 64ad1a03b16278e60d2643a92c0ce846bb268faf
Author: Wenchen Fan <[email protected]>
Date: 2017-12-05T12:33:03Z
add ctx.splitExpressionsWithCurrentInputs
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]