spark-instrumented-optimizer/sql/catalyst/src/main
Kris Mok 95e51ff849 [SPARK-23760][SQL] CodegenContext.withSubExprEliminationExprs should save/restore CSE state correctly
## What changes were proposed in this pull request?

Fixed `CodegenContext.withSubExprEliminationExprs()` so that it saves/restores CSE state correctly.

## How was this patch tested?

Added new unit test to verify that the old CSE state is indeed saved and restored around the `withSubExprEliminationExprs()` call. Manually verified that this test fails without this patch.

Author: Kris Mok <kris.mok@databricks.com>

Closes #20870 from rednaxelafx/codegen-subexpr-fix.
2018-03-21 21:21:36 -07:00
..
antlr4/org/apache/spark/sql/catalyst/parser [SPARK-20749][SQL][FOLLOW-UP] Override prettyName for bit_length and octet_length 2018-01-23 21:36:20 +09:00
java/org/apache/spark/sql [SPARK-23581][SQL] Add interpreted unsafe projection 2018-03-16 18:28:16 +01:00
scala/org/apache/spark/sql [SPARK-23760][SQL] CodegenContext.withSubExprEliminationExprs should save/restore CSE state correctly 2018-03-21 21:21:36 -07:00