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

Thomas Decaux edited comment on SPARK-26214 at 11/30/18 4:24 PM:
-----------------------------------------------------------------

 

Well, not so different :
{code:java}
public void broadcast() {
this.sqlContext().sparkContext().broadcast(this);
}
{code}
 

{{VERSUS}}
{code:java}
public void registerTempTable(String tableName)
{ this.sqlContext().registerDataFrameAsTable(this, tableName); }
{code}
 

 


was (Author: ebuildy):
 

Well, not so different :
{code:java}
public void broadcast() {
this.sqlContext().sparkContext().broadcast(this);
}
{code}
 

{{VERSUS}}
public void registerTempTable(String tableName) { 
this.sqlContext().registerDataFrameAsTable(this, tableName);
}
 

> Add "broadcast" method to DataFrame
> -----------------------------------
>
>                 Key: SPARK-26214
>                 URL: https://issues.apache.org/jira/browse/SPARK-26214
>             Project: Spark
>          Issue Type: Wish
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: Thomas Decaux
>            Priority: Trivial
>              Labels: broadcast, dataframe
>
> As discussed at 
> [https://stackoverflow.com/questions/43984068/does-spark-sql-autobroadcastjointhreshold-work-for-joins-using-datasets-join-op/43994022,]
>  it's possible to force broadcast of DataFrame, even if total size is greater 
> than ``*spark.sql.autoBroadcastJoinThreshold``.*
> But this not trivial for beginner, because there is no "broadcast" method (I 
> know, I am lazy ...).
> We could add this method, with a WARN if size is greater than the threshold.
> (if it's an easy one, I could do it?)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to