LuciferYang commented on code in PR #37940:
URL: https://github.com/apache/spark/pull/37940#discussion_r976000233
##########
core/src/main/scala/org/apache/spark/util/collection/Utils.scala:
##########
@@ -79,6 +79,20 @@ private[spark] object Utils {
builder.result()
}
+ /**
+ * Same function as `keys.zipWithIndex.toMap`, but has perf gain.
+ */
+ def toMap[K](keys: Iterable[K]): Map[K, Int] = {
Review Comment:
[405c625](https://github.com/apache/spark/pull/37940/commits/405c6252893c0df6cdf57cea8da94d1ebe7f56c4)
fix this, waiting ci
--
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]