Skip to content

Commit 2c6b64e

Browse files
committed
revert
1 parent 0167929 commit 2c6b64e

File tree

1 file changed

+2
-2
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen

1 file changed

+2
-2
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeGenerator.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -998,8 +998,8 @@ class CodegenContext {
998998
* Returns the code for subexpression elimination after splitting it if necessary.
999999
*/
10001000
def subexprFunctionsCode: String = {
1001-
// Wholestage codegen does not allow subexpression elimination
1002-
assert(currentVars == null)
1001+
// Wholestage codegen does not allow subexpression elimination: in that case, subexprFunctions
1002+
// is empty and an empty string is returned
10031003
splitExpressions(subexprFunctions, "subexprFunc_split", Seq("InternalRow" -> INPUT_ROW))
10041004
}
10051005

0 commit comments

Comments
 (0)