We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0167929 commit 2c6b64eCopy full SHA for 2c6b64e
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeGenerator.scala
@@ -998,8 +998,8 @@ class CodegenContext {
998
* Returns the code for subexpression elimination after splitting it if necessary.
999
*/
1000
def subexprFunctionsCode: String = {
1001
- // Wholestage codegen does not allow subexpression elimination
1002
- assert(currentVars == null)
+ // Wholestage codegen does not allow subexpression elimination: in that case, subexprFunctions
+ // is empty and an empty string is returned
1003
splitExpressions(subexprFunctions, "subexprFunc_split", Seq("InternalRow" -> INPUT_ROW))
1004
}
1005
0 commit comments