-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-25117][R] Add EXEPT ALL and INTERSECT ALL support in R #22107
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
6076700
[SPARK-25117] Add EXEPT ALL and INTERSECT ALL support in R
dilipbiswal 426ffed
minor fix
dilipbiswal 7e88c9d
lint
dilipbiswal 5247ab5
code review
dilipbiswal 1d93304
code review
dilipbiswal 528050d
code review
dilipbiswal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev
Previous commit
code review
- Loading branch information
commit 528050d14f16a5a44b552c44d49aa733584c21d6
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2869,14 +2869,14 @@ setMethod("intersect", | |
| #' df2 <- read.json(path2) | ||
| #' intersectAllDF <- intersectAll(df1, df2) | ||
| #' } | ||
| #' @rdname intersectAll | ||
| #' @note intersectAll since 2.4.0 | ||
| setMethod("intersectAll", | ||
| signature(x = "SparkDataFrame", y = "SparkDataFrame"), | ||
| function(x, y) { | ||
| intersected <- callJMethod(x@sdf, "intersectAll", y@sdf) | ||
| dataFrame(intersected) | ||
| }) | ||
|
|
||
| #' except | ||
| #' | ||
| #' Return a new SparkDataFrame containing rows in this SparkDataFrame | ||
|
|
@@ -2896,7 +2896,6 @@ setMethod("intersectAll", | |
| #' df2 <- read.json(path2) | ||
| #' exceptDF <- except(df, df2) | ||
| #' } | ||
| #' @rdname except | ||
| #' @note except since 1.4.0 | ||
| setMethod("except", | ||
| signature(x = "SparkDataFrame", y = "SparkDataFrame"), | ||
|
|
@@ -2926,7 +2925,6 @@ setMethod("except", | |
| #' df2 <- read.json(path2) | ||
| #' exceptAllDF <- exceptAll(df1, df2) | ||
| #' } | ||
| #' @rdname exceptAll | ||
| #' @note exceptAll since 2.4.0 | ||
| setMethod("exceptAll", | ||
| signature(x = "SparkDataFrame", y = "SparkDataFrame"), | ||
|
|
@@ -2935,7 +2933,6 @@ setMethod("exceptAll", | |
| dataFrame(excepted) | ||
| }) | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: remove one of the two empty lines
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @felixcheung Sure. |
||
|
|
||
| #' Save the contents of SparkDataFrame to a data source. | ||
| #' | ||
| #' The data source is specified by the \code{source} and a set of options (...). | ||
|
|
||
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.
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.
add extra empty line after code
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.
@felixcheung OK.