Skip to content

[SPARK-9860][SQL] Join: Determine the join strategy (broadcast join or shuffle join) at runtime - #13028

Closed
lianhuiwang wants to merge 9 commits into
apache:masterfrom
lianhuiwang:adaptive-2
Closed

[SPARK-9860][SQL] Join: Determine the join strategy (broadcast join or shuffle join) at runtime#13028
lianhuiwang wants to merge 9 commits into
apache:masterfrom
lianhuiwang:adaptive-2

Conversation

@lianhuiwang

@lianhuiwanglianhuiwang commented May 10, 2016

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

  1. add query fragment for execute stage according to exchange.
  2. before running no leaf query fragment, optimize plan using mapOutputStatistics of its child fragments.
    if size of one exchange is less than autoBroadcastJoinThreshold, it transforms sort merge join to broadcast join.
    I will support optimization for skew join in another PR.

How was this patch tested?

unit tests

@SparkQA

Copy link
Copy Markdown

Test build #58239 has finished for PR 13028 at commit 73de7b2.

  • This patch fails RAT tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA

Copy link
Copy Markdown

Test build #58240 has finished for PR 13028 at commit 6cc187e.

  • This patch fails RAT tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA

Copy link
Copy Markdown

Test build #58241 has finished for PR 13028 at commit 6f1105c.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA

Copy link
Copy Markdown

Test build #58376 has finished for PR 13028 at commit 5de46b0.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@lianhuiwanglianhuiwang changed the title [SPARK-9860][SQL][WIP] Join: Determine the join strategy (broadcast join or shuffle join) at runtime[SPARK-9860][SQL] Join: Determine the join strategy (broadcast join or shuffle join) at runtimeMay 11, 2016
@SparkQA

Copy link
Copy Markdown

Test build #58378 has finished for PR 13028 at commit a18be55.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class QueryFragmentSuite extends QueryTest with SQLTestUtils with SharedSQLContext

@lianhuiwang

Copy link
Copy Markdown
ContributorAuthor

cc @rxin@davies

@SparkQA

Copy link
Copy Markdown

Test build #58481 has finished for PR 13028 at commit d9c66d7.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@sameeragarwal

Copy link
Copy Markdown
Member

@lianhuiwang could this regress performance for existing queries? Can you please share some benchmarks with us (if any)?

@HyukjinKwonHyukjinKwon mentioned this pull request Jun 25, 2017
@gatorsmile

Copy link
Copy Markdown
Member

We are closing it due to inactivity. please do reopen if you want to push it forward. Thanks!

@meteorchenwu

Copy link
Copy Markdown

It is great for BI scene. Why not continue?

zifeif2 pushed a commit to zifeif2/spark that referenced this pull request Nov 22, 2025
## What changes were proposed in this pull request?
This PR proposes to close stale PRs, mostly the same instances with apache#18017
I believe the author in apache#14807 removed his account.
Closesapache#7075Closesapache#8927Closesapache#9202Closesapache#9366Closesapache#10861Closesapache#11420Closesapache#12356Closesapache#13028Closesapache#13506Closesapache#14191Closesapache#14198Closesapache#14330Closesapache#14807Closesapache#15839Closesapache#16225Closesapache#16685Closesapache#16692Closesapache#16995Closesapache#17181Closesapache#17211Closesapache#17235Closesapache#17237Closesapache#17248Closesapache#17341Closesapache#17708Closesapache#17716Closesapache#17721Closesapache#17937
Added:
Closesapache#14739Closesapache#17139Closesapache#17445Closesapache#18042Closesapache#18359
Added:
Closesapache#16450Closesapache#16525Closesapache#17738
Added:
Closesapache#16458Closesapache#16508Closesapache#17714
Added:
Closesapache#17830Closesapache#14742
## How was this patch tested?
N/A
Author: hyukjinkwon <gurwls223@gmail.com>
Closesapache#18417 from HyukjinKwon/close-stale-pr.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@lianhuiwang@SparkQA@sameeragarwal@gatorsmile@meteorchenwu