You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "xieshuaihu (via GitHub)" <gi...@apache.org> on 2024/01/17 01:57:28 UTC

[PR] [SPARK-46732][CONNECT][3.5]Make Subquery/Broadcast thread work with Connect's artifact management [spark]

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

   ### 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-unsubscribe@spark.apache.org

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


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


Re: [PR] [SPARK-46732][CONNECT][3.5]Make Subquery/Broadcast thread work with Connect's artifact management [spark]

Posted by "HyukjinKwon (via GitHub)" <gi...@apache.org>.
HyukjinKwon commented on PR #44763:
URL: https://github.com/apache/spark/pull/44763#issuecomment-1895014457

   Merged to branch-3.5.


-- 
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-unsubscribe@spark.apache.org

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


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


Re: [PR] [SPARK-46732][CONNECT][3.5]Make Subquery/Broadcast thread work with Connect's artifact management [spark]

Posted by "xieshuaihu (via GitHub)" <gi...@apache.org>.
xieshuaihu commented on PR #44763:
URL: https://github.com/apache/spark/pull/44763#issuecomment-1894811373

   @HyukjinKwon 


-- 
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-unsubscribe@spark.apache.org

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


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


Re: [PR] [SPARK-46732][CONNECT][3.5]Make Subquery/Broadcast thread work with Connect's artifact management [spark]

Posted by "HyukjinKwon (via GitHub)" <gi...@apache.org>.
HyukjinKwon closed pull request #44763: [SPARK-46732][CONNECT][3.5]Make Subquery/Broadcast thread work with Connect's artifact management
URL: https://github.com/apache/spark/pull/44763


-- 
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-unsubscribe@spark.apache.org

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


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