xieshuaihu opened a new pull request, #44753:
URL: https://github.com/apache/spark/pull/44753

   ### What changes were proposed in this pull request?
   
   Similar with SPARK-44794, propagate JobArtifactState to broadcast/subquery 
thread.
   
   This is an example:
   
   ```scala
   val add1 = udf((i: Long) => i + 1)
   val tableA = spark.range(2).alias("a")
   val tableB = 
broadcast(spark.range(2).select(add1(col("id")).alias("id"))).alias("b")
   tableA.join(tableB).
     where(col("a.id")===col("b.id")).
     select(col("a.id").alias("a_id"), col("b.id").alias("b_id")).
     collect().
     mkString("[", ", ", "]")
   ```
   
   Before this pr, this example will throw exception `ClassNotFoundException`. 
Subquery and Broadcast execution use a separate ThreadPool which don't have the 
`JobArtifactState`.
   
   ### Why are the changes needed?
   Fix bug. Make Subquery/Broadcast thread work with Connect's artifact 
management.
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   Add a new test to `ReplE2ESuite`
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No
   


-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to