Skip to content

Commit 3c4b765

Browse files
committed
Add inline comment.
1 parent 80b9435 commit 3c4b765

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ class CodegenContext {
164164
// It's possible that we add same mutable state twice, e.g. the `mergeExpressions` in
165165
// `TypedAggregateExpression`, we should call `distinct` here to remove the duplicated ones.
166166
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.
167169
splitExpressions(initCodes, "init", Nil)
168170
}
169171

0 commit comments

Comments
 (0)