RexXiong commented on code in PR #2373:
URL: https://github.com/apache/celeborn/pull/2373#discussion_r1912651004
##########
client/src/main/scala/org/apache/celeborn/client/ClientUtils.scala:
##########
@@ -37,4 +39,20 @@ object ClientUtils {
}
true
}
+
+ /**
+ * If startMapIndex > endMapIndex, means partition is skew partition.
+ * locations will split to sub-partitions with startMapIndex size.
+ *
+ * @param conf cleborn conf
+ * @param startMapIndex shuffle start map index
+ * @param endMapIndex shuffle end map index
+ * @return true if read skew partition without map range
+ */
+ def readSkewPartitionWithoutMapRange(
+ conf: CelebornConf,
+ startMapIndex: Int,
+ endMapIndex: Int): Boolean = {
+ conf.clientAdaptiveOptimizeSkewedPartitionReadEnabled && startMapIndex >
endMapIndex
Review Comment:
It can't be.
--
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]