Github user kiszk commented on a diff in the pull request:
https://github.com/apache/spark/pull/19865#discussion_r156866988
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeGenerator.scala
---
@@ -842,7 +856,10 @@ class CodegenContext {
blocks.head
} else {
val func = freshName(funcName)
- val argString = arguments.map { case (t, name) => s"$t $name"
}.mkString(", ")
+ val argString = arguments.map { case (t, name) =>
+ assert(!isDeclaredMutableState(name),
--- End diff --
Yeah, this problem occurs not only in split method also in normal method.
Let us check this in `addNewFunction`
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]