You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Marco Gaido (JIRA)" <ji...@apache.org> on 2018/11/29 10:32:00 UTC

[jira] [Commented] (SPARK-26214) Add "broadcast" method to DataFrame

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

Marco Gaido commented on SPARK-26214:
-------------------------------------

You can just use the {{broadcast}} function from {{org.apache.spark.sql.functions}}: this adds an hint to broadcast the dataframe. I am not sure why this is not fine for you and where you'd like to add that, but since there is already a way to do that, I don't think it is a good idea to introduce a new one.

> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org