Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
3.4.0
-
None
Description
Some code in Spark constructing ranges of collection indices manually as follows:
for (i <- 0 until shuffledOffers.size) {
val execId = shuffledOffers(i).executorId
val host = shuffledOffers(i).host
val taskSetRpID = taskSet.taskSet.resourceProfileId
can use `shuffledOffers.indices` instead of `0 until shuffledOffers.size`