gengliangwang commented on code in PR #46309:
URL: https://github.com/apache/spark/pull/46309#discussion_r1585642399
##########
core/src/main/scala/org/apache/spark/util/random/StratifiedSamplingUtils.scala:
##########
@@ -182,12 +182,12 @@ private[spark] object StratifiedSamplingUtils extends
Logging {
for ((key, acceptResult) <- finalResult) {
val sampleSize = math.ceil(acceptResult.numItems * fractions(key)).toLong
if (acceptResult.numAccepted > sampleSize) {
- logWarning("Pre-accepted too many")
+ logWarning(log"Pre-accepted too many")
thresholdByKey += (key -> acceptResult.acceptBound)
} else {
val numWaitListAccepted = (sampleSize - acceptResult.numAccepted).toInt
if (numWaitListAccepted >= acceptResult.waitList.size) {
- logWarning("WaitList too short")
+ logWarning(log"WaitList too short")
Review Comment:
This one is not needed
--
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]