You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Shockang (Jira)" <ji...@apache.org> on 2021/07/10 14:41:00 UTC

[jira] [Commented] (SPARK-35508) job group and description do not apply on broadcasts

    [ https://issues.apache.org/jira/browse/SPARK-35508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17378483#comment-17378483 ] 

Shockang commented on SPARK-35508:
----------------------------------

It seems that this bug comes from this PR: [https://github.com/apache/spark/pull/24595] , which will override the settings of job group and job description in the user code. Let me fix this issue.

> job group and description do not apply on broadcasts
> ----------------------------------------------------
>
>                 Key: SPARK-35508
>                 URL: https://issues.apache.org/jira/browse/SPARK-35508
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 3.0.0, 3.1.0
>            Reporter: Lior Chaga
>            Priority: Minor
>         Attachments: spark2-image.png, spark3-image.png
>
>
> Given the following code:
> {code:java}
> SparkContext context = new SparkContext("local", "test"); 
> SparkSession session = new SparkSession(context); 
> List<String> strings = Lists.newArrayList("a", "b", "c"); 
> List<String> otherString = Lists.newArrayList( "b", "c", "d"); 
> Dataset<Row> broadcastedDf = session.createDataset(strings, Encoders.STRING()).toDF(); 
> Dataset<Row> dataframe = session.createDataset(otherString, Encoders.STRING()).toDF(); 
> context.setJobGroup("my group", "my job", false); 
> dataframe.join(broadcast(broadcastedDf), "value").count();
> {code}
> Job group and description do not apply on broadcasted dataframe. 
> With spark 2.x, broadcast creation is given the same job description as the query itself. 
> This seems to be broken with spark 3.x
> See attached images
>  !spark3-image.png!  !spark2-image.png! 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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