gengliangwang commented on code in PR #46980:
URL: https://github.com/apache/spark/pull/46980#discussion_r1640646418
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/ShufflePartitionsUtil.scala:
##########
@@ -61,8 +61,10 @@ object ShufflePartitionsUtil extends Logging {
val targetSize =
maxTargetSize.min(advisoryTargetSize).max(minPartitionSize)
val shuffleIds =
mapOutputStatistics.flatMap(_.map(_.shuffleId)).mkString(", ")
- logInfo(s"For shuffle($shuffleIds), advisory target size:
$advisoryTargetSize, " +
- s"actual target size $targetSize, minimum partition size:
$minPartitionSize")
+ logInfo(log"For shuffle(${MDC(LogKeys.SHUFFLE_ID, shuffleIds)}, advisory
target size: " +
+ log"${MDC(LogKeys.TARGET_SIZE, advisoryTargetSize)}, actual target size
" +
+ log"${MDC(LogKeys.TARGET_SIZE, targetSize)}, minimum partition size: " +
Review Comment:
The TARGET_SIZE is used on two different variables in this log entry
--
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]