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 80b9435 commit 3c4b765Copy full SHA for 3c4b765
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeGenerator.scala
@@ -164,6 +164,8 @@ class CodegenContext {
164
// It's possible that we add same mutable state twice, e.g. the `mergeExpressions` in
165
// `TypedAggregateExpression`, we should call `distinct` here to remove the duplicated ones.
166
val initCodes = mutableStates.distinct.map(_._3 + "\n")
167
+ // The generated initialization code may exceed 64kb function size limit in JVM if there are too
168
+ // many mutable states, so split it into multiple functions.
169
splitExpressions(initCodes, "init", Nil)
170
}
171
0 commit comments