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

    https://github.com/apache/spark/pull/7904#discussion_r36252809
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/JoinSuite.scala ---
    @@ -457,25 +450,24 @@ class JoinSuite extends QueryTest with 
BeforeAndAfterEach {
       test("broadcasted left semi join operator selection") {
         ctx.cacheManager.clearCache()
         ctx.sql("CACHE TABLE testData")
    -    val tmp = ctx.conf.autoBroadcastJoinThreshold
     
    -    ctx.sql(s"SET ${SQLConf.AUTO_BROADCASTJOIN_THRESHOLD.key}=1000000000")
    -    Seq(
    -      ("SELECT * FROM testData LEFT SEMI JOIN testData2 ON key = a",
    -        classOf[BroadcastLeftSemiJoinHash])
    -    ).foreach {
    -      case (query, joinClass) => assertJoin(query, joinClass)
    +    withSQLConf(SQLConf.AUTO_BROADCASTJOIN_THRESHOLD.key -> "1000000000") {
    +      Seq(
    --- End diff --
    
    For thoroughness, I think that this test should also test with and without 
SMJ enabled, just to be sure that we're not accidentally prioritizing SMJ over 
broadcast for outer joins (the previous patch had this issue).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to