tgravescs commented on a change in pull request #26633: [SPARK-29994][CORE] Add 
WILDCARD task location
URL: https://github.com/apache/spark/pull/26633#discussion_r351063066
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/scheduler/TaskLocation.scala
 ##########
 @@ -70,7 +80,9 @@ private[spark] object TaskLocation {
   def apply(str: String): TaskLocation = {
     val hstr = str.stripPrefix(inMemoryLocationTag)
     if (hstr.equals(str)) {
-      if (str.startsWith(executorLocationTag)) {
+      if (str == "*") {
+        WildcardLocation
 
 Review comment:
   If this goes in I would like to see documentation about this being 
DeveloperAPI and a temporary workaround and will be removed once locality is 
fixed.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to