Uh oh!
There was an error while loading. Please reload this page.
[SPARK-20576][SQL] Support generic hint function in Dataset/DataFrame - #17839
Closed
rxin wants to merge 3 commits into
Closed
[SPARK-20576][SQL] Support generic hint function in Dataset/DataFrame#17839rxin wants to merge 3 commits into
rxin wants to merge 3 commits into
Conversation
SparkQA
commented
May 3, 2017
Test build #76410 has started for PR 17839 at commit |
gatorsmile
commented
May 3, 2017
Member
LGTM pending Jenkins |
ContributorAuthor
Actually somebody should add the Python / R wrapper. cc @felixcheung and @zero323 |
cloud-fan
commented
May 3, 2017
Contributor
LGTM |
zero323
commented
May 3, 2017
Member
I can add both, once it is merged. |
SparkQA
commented
May 3, 2017
Test build #3683 has finished for PR 17839 at commit
|
felixcheung
commented
May 3, 2017
Member
just a thought - |
rxin
commented
May 3, 2017
ContributorAuthor
Merging in master/branch-2.2. |
rxin
commented
May 3, 2017
ContributorAuthor
@felixcheung do you worry about conflicts? |
asfgit pushed a commit
that referenced
this pull request
May 3, 2017
## What changes were proposed in this pull request?
We allow users to specify hints (currently only "broadcast" is supported) in SQL and DataFrame. However, while SQL has a standard hint format (/*+ ... */), DataFrame doesn't have one and sometimes users are confused that they can't find how to apply a broadcast hint. This ticket adds a generic hint function on DataFrame that allows using the same hint on DataFrames as well as SQL.
As an example, after this patch, the following will apply a broadcast hint on a DataFrame using the new hint function:
```
df1.join(df2.hint("broadcast"))
```
## How was this patch tested?
Added a test case in DataFrameJoinSuite.
Author: Reynold Xin <rxin@databricks.com>
Closes#17839 from rxin/SPARK-20576.
(cherry picked from commit 527fc5d)
Signed-off-by: Reynold Xin <rxin@databricks.com>rxin
commented
May 3, 2017
ContributorAuthor
BTW I filed follow-up tickets for Python/R at https://issues.apache.org/jira/browse/SPARK-20576 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
We allow users to specify hints (currently only "broadcast" is supported) in SQL and DataFrame. However, while SQL has a standard hint format (/*+ ... */), DataFrame doesn't have one and sometimes users are confused that they can't find how to apply a broadcast hint. This ticket adds a generic hint function on DataFrame that allows using the same hint on DataFrames as well as SQL.
As an example, after this patch, the following will apply a broadcast hint on a DataFrame using the new hint function:
How was this patch tested?
Added a test case in DataFrameJoinSuite.