gengliangwang commented on code in PR #45904:
URL: https://github.com/apache/spark/pull/45904#discussion_r1556423196


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/StringUtils.scala:
##########
@@ -136,9 +137,11 @@ object StringUtils extends Logging {
     override def toString: String = {
       if (atLimit) {
         logWarning(
-          "Truncated the string representation of a plan since it was too 
long. The " +
-            s"plan had length ${length} and the maximum is ${maxLength}. This 
behavior " +
-            s"can be adjusted by setting 
'${SQLConf.MAX_PLAN_STRING_LENGTH.key}'.")
+          log"Truncated the string representation of a plan since it was too 
long. The " +
+            log"plan had length ${MDC(QUERY_PLAN_LENGTH, length)} " +
+            log"and the maximum is ${MDC(QUERY_PLAN_LENGTH, maxLength)}. This 
behavior " +
+            log"can be adjusted by setting " +
+            log"'${MDC(QUERY_PLAN_LENGTH, 
SQLConf.MAX_PLAN_STRING_LENGTH.key)}'.")

Review Comment:
   ```suggestion
               log"'${MDC(CONFIG, SQLConf.MAX_PLAN_STRING_LENGTH.key)}'.")
   ```



-- 
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]

Reply via email to