sarveshdave1 opened a new pull request #30252:
URL: https://github.com/apache/spark/pull/30252
### What changes were proposed in this pull request?
Update join type in stream static joins code examples in structured
streaming programming guide.
1) Scala, Java and Python examples have a common issue.
The example is of stream and static df left outer join but the join keyword
is "right_join".
a) This is an example of left outer join.
b) The keyword "right_join/left_join" is unsupported and it should be
"right_outer/left_outer"
So, all this code snippets have been updated to "left_outer".
2) R exmaple is correct, but the example is of "right_outer".
It is changed to "left_outer" to make it consistent with other three
examples of scala, java and python.
### Why are the changes needed?
The changes are needed to fix the mistake in example code of documentation.
### Does this PR introduce _any_ user-facing change?
Yes,user-facing change (documentation update only).
**Screenshots 1: Scala/Java/python example (similar issue)**
_Before:_
<img width="941" alt="Screenshot 2020-11-05 at 12 16 09 AM"
src="https://user-images.githubusercontent.com/62717942/98155351-19e59400-1efc-11eb-8142-e6a25a5e6497.png">
_After:_
<img width="922" alt="Screenshot 2020-11-05 at 12 17 12 AM"
src="https://user-images.githubusercontent.com/62717942/98155503-5d400280-1efc-11eb-96e1-5ba0f3c35c82.png">
**Screenshots 2: R example (Make it consistent with above change)**
_Before:_
<img width="896" alt="Screenshot 2020-11-05 at 12 19 57 AM"
src="https://user-images.githubusercontent.com/62717942/98155685-ac863300-1efc-11eb-93bc-b7ca4dd34634.png">
_After:_
<img width="919" alt="Screenshot 2020-11-05 at 12 20 51 AM"
src="https://user-images.githubusercontent.com/62717942/98155739-c0ca3000-1efc-11eb-8f95-a7538fa784b7.png">
### How was this patch tested?
The change was tested locally.
1) cd docs/
SKIP_API=1 jekyll build
2) Verify docs/_site/structured-streaming-programming-guide.html file in
browser.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]