GitHub user cloud-fan opened a pull request: https://github.com/apache/spark/pull/19827
[SPARK-22617][SQL] make splitExpressions extract current input of the context ## What changes were proposed in this pull request? Mostly when we call `CodegenContext.splitExpressions`, we want to split the code into methods and pass the current inputs of the codegen context to these methods so that the code in these methods can still be evaluated. This PR makes the expectation clear, while still keep the advanced version of `splitExpressions` to customize the inputs to pass to generated methods. ## How was this patch tested? existing test You can merge this pull request into a Git repository by running: $ git pull https://github.com/cloud-fan/spark codegen Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/19827.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 #19827 ---- commit cae5f74076bfa74c91700fe03b19158c5aa5f4f4 Author: Wenchen Fan <wenc...@databricks.com> Date: 2017-11-27T15:25:14Z make splitExpressions extract current input of the context ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org