Github user jaceklaskowski commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20368#discussion_r163375534
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/execution/joins/BroadcastJoinSuite.scala
 ---
    @@ -126,6 +126,22 @@ class BroadcastJoinSuite extends QueryTest with 
SQLTestUtils {
         }
       }
     
    +  test("broadcast hint is retained in a cached plan") {
    +    Seq(true, false).foreach { materialized =>
    +      withSQLConf(SQLConf.AUTO_BROADCASTJOIN_THRESHOLD.key -> "-1") {
    +        val df1 = spark.createDataFrame(Seq((1, "4"), (2, 
"2"))).toDF("key", "value")
    --- End diff --
    
    Is `spark.createDataFrame(...)` wrapper really required? I thought `Seq((1, 
"4"), (2, "2")).toDF("key", "value")` would just work fine.


---

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

Reply via email to