Skip to content

Commit

Permalink
[SPARK-47148][SQL][FOLLOWUP] Use broadcast hint to make test more stable
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?

A followup of apache#45234 to make the test more stable by using broadcast hint.

### Why are the changes needed?

test improvement

### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?

N/A

### Was this patch authored or co-authored using generative AI tooling?

no

Closes apache#47007 from cloud-fan/follow.

Authored-by: Wenchen Fan <wenchen@databricks.com>
Signed-off-by: yangjie01 <yangjie01@baidu.com>
  • Loading branch information
cloud-fan authored and LuciferYang committed Jun 18, 2024
1 parent 9898e9d commit 58701d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ class AdaptiveQueryExecSuite
spark.range(10).toDF("col1").createTempView("t1")
spark.range(5).coalesce(2).toDF("col2").createTempView("t2")
spark.range(15).toDF("col3").filter(Symbol("col3") >= 2).createTempView("t3")
sql("SELECT * FROM (SELECT /*+ BROADCAST(t2) */ * FROM t1 " +
sql("SELECT /*+ BROADCAST(t3) */ * FROM (SELECT /*+ BROADCAST(t2) */ * FROM t1 " +
"INNER JOIN t2 ON t1.col1 = t2.col2) t JOIN t3 ON t.col1 = t3.col3;")
}
withTempView("t1", "t2", "t3") {
Expand Down

0 comments on commit 58701d8

Please sign in to comment.