-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-30278][SQL][DOC] Update Spark SQL document menu for new changes #26917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Test build #115422 has finished for PR 26917 at commit
|
| {% highlight r %} | ||
| src <- sql("SELECT * FROM src") | ||
| records <- sql("SELECT * FROM records") | ||
| head(join(broadcast(src), records, src$key == records$key)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did we remove the broadcast method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, the broadcast method still available:
Lines 4129 to 4134 in 18431c7
| setMethod("broadcast", | |
| signature(x = "SparkDataFrame"), | |
| function(x) { | |
| sdf <- callJStatic("org.apache.spark.sql.functions", "broadcast", x@sdf) | |
| dataFrame(sdf) | |
| }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so what's the recommended API to add hint? df.hint(...) or hint(df, ...)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hint(df, ...) is for R, there's no df.hint(...) in R?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah nvm, didn't realize it's R code
|
How about adding the docs about the SQL case, too? #25464 |
|
@maropu We have the SQL hint here: https://github.com/apache/spark/pull/26917/files#diff-ecc0a33250015b4a0fb4a5f1de5cc502R167, do you mean add demo for partition by hint? |
Yea, yes. we can accept |
|
Sure, done in accf45c, please take a look. |
|
Test build #115516 has finished for PR 26917 at commit
|
|
thanks, merging to master! |
|
Thanks! |
|
Thanks for the update, @xuanyuanking ! |
### What changes were proposed in this pull request? Update the Spark SQL document menu and join strategy hints. ### Why are the changes needed? - Several new changes in the Spark SQL document didn't change the menu-sql.yaml correspondingly. - Update the demo code for join strategy hints. ### Does this PR introduce any user-facing change? No. ### How was this patch tested? Document change only. Closes apache#26917 from xuanyuanking/SPARK-30278. Authored-by: Yuanjian Li <xyliyuanjian@gmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
What changes were proposed in this pull request?
Update the Spark SQL document menu and join strategy hints.
Why are the changes needed?
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Document change only.