GitHub user cloud-fan opened a pull request: https://github.com/apache/spark/pull/19803
[SPARK-22596][SQL] set ctx.currentVars in CodegenSupport.consume ## What changes were proposed in this pull request? `ctx.currentVars` means the input variables for the current operator, which is already decided in `CodegenSupport`, we can set it there instead of `doConsume`. ## 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 codegen Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/19803.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 #19803 ---- commit cfae7b5c5747645c42d67c80f61cef7cb3b9423d Author: Wenchen Fan <wenc...@databricks.com> Date: 2017-11-23T16:58:32Z set ctx.currentVars in CodegenSupport.consume ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org