panbingkun commented on code in PR #46264:
URL: https://github.com/apache/spark/pull/46264#discussion_r1582479845
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/aggregate/AggregateCodegenSupport.scala:
##########
@@ -340,11 +342,11 @@ trait AggregateCodegenSupport
}
Some(splitCodes)
} else {
- val errMsg = "Failed to split aggregate code into small functions
because the parameter " +
- "length of at least one split function went over the JVM limit: " +
- CodeGenerator.MAX_JVM_METHOD_PARAMS_LENGTH
+ val errMsg = log"Failed to split aggregate code into small functions
because the " +
+ log"parameter length of at least one split function went over the
JVM limit: " +
+ log"${MDC(MAX_JVM_METHOD_PARAMS_LENGTH,
CodeGenerator.MAX_JVM_METHOD_PARAMS_LENGTH)}"
if (Utils.isTesting) {
- throw SparkException.internalError(errMsg)
+ throw SparkException.internalError(errMsg.message)
} else {
logInfo(errMsg)
Review Comment:
For it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]