Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/19865#discussion_r156862608
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeGenerator.scala
---
@@ -217,6 +217,18 @@ class CodegenContext {
splitExpressions(expressions = initCodes, funcName = "init", arguments
= Nil)
}
+ /**
+ * Return true if a given variable has been described as a global
variable
+ */
+ def isDeclaredMutableState(varName: String): Boolean = {
--- End diff --
let's only enable this check in test environment, in case it has bugs and
break production jobs.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]