Ngone51 commented on code in PR #37268:
URL: https://github.com/apache/spark/pull/37268#discussion_r934221383
##########
core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala:
##########
@@ -573,6 +573,8 @@ private[spark] class DAGScheduler(
private[scheduler] def mergeResourceProfiles(
r1: ResourceProfile,
r2: ResourceProfile): ResourceProfile = {
+ // Resource profiles to merge must have the same class type.
+ assert(r1.getClass == r2.getClass)
Review Comment:
```suggestion
assert(r1.getClass == r2.getClass, "Resource profiles to merge must have
the same class type, but got ${r1.getClass} and ${r2.getClass}")
```
--
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]