-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-10807][SPARKR] Added as.data.frame as a synonym for collect #8908
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
|
Jenkins, ok to test |
|
Test build #42981 has finished for PR 8908 at commit
|
|
How can I check the style in my local environment? I ran the unit tests but got no issues. Tried the link below, but it's only for Python and Scala: https://cwiki.apache.org/confluence/display/SPARK/Spark+Code+Style+Guide, |
|
You can run |
|
Yeah, I saw that one. Thank you so much! I have fixed it, and ran dev/lint-r on my local. It should be good now :) |
|
Test build #42989 has finished for PR 8908 at commit
|
R/pkg/R/DataFrame.R
Outdated
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.
Minor style comments -- To keep this similar to the other methods in this function I think this can be
setMethod("as.data.frame",
signature(x = "DataFrame"),
function(x, ...) {
}
|
Thanks @olarayej -- I just had a couple of minor style comments One more thing is that it will be good to add a unit test for this. You could just add a test case to some of the existing tests at spark/R/pkg/inst/tests/test_sparkSQL.R Line 215 in 9223388
|
R/pkg/R/DataFrame.R
Outdated
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.
We have all the generics used in SparkR in R/generics.R -- Could you move this to that file as well ?
|
Also could you change the PR title to |
Changed setMethod stle Removed return()
|
@olarayej Sorry I wasn't clear the last time around but the title should be |
Conflicts: R/pkg/R/DataFrame.R
|
@shivaram Thanks a lot for your comments! I have addressed them. |
R/pkg/R/DataFrame.R
Outdated
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.
sorry a couple of more style nits. Based on existing code, this should be
setMethod("as.data.frame",
signature(x = "DataFrame"),
(i.e. having x = in the signature line and no f= in the name line)
Again, just to restate this isn't for functionality but just for matching the style with all the existing 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.
Sorry I missed that! I have fixed it now.
|
Test build #43072 has finished for PR 8908 at commit
|
|
Jenkins, retest this please |
|
Test build #43069 has finished for PR 8908 at commit
|
|
Jenkins, retest this please |
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.
is there a reason why this isn't on the same list of export for DataFrame above?
|
Test build #43086 has finished for PR 8908 at commit
|
|
Jenkins, retest this please |
|
Test build #43097 has finished for PR 8908 at commit
|
|
@shaneknapp The log has a strange error I haven't seen so far Any ideas if this is related to the recent Jenkins issues ? |
|
huh, i haven't seen that error message either. when i run that command locally (same box, same working dir, jenkins user), it works. i'll try and keep an eye out for failures like this, but please let me know if you see something like this again. |
|
@shivaram @shaneknapp: any suggestions? I did double check the unit tests work fine on my environment. Thanks! |
|
Jenkins, retest this please |
|
Test build #43106 has finished for PR 8908 at commit
|
|
@shaneknapp Looks like the same error again. @olarayej Could you remove the change to |
|
i'll take a closer look tomorrow, @shivaram. On Tue, Sep 29, 2015 at 8:41 PM, Shivaram Venkataraman <
|
|
@shivaram I have removed the changes to .gitignore. My apologies, I accidentally committed this file. Thanks! |
|
Test build #43136 has finished for PR 8908 at commit
|
|
Awesome! :-) |
|
Thanks @olarayej LGTM. Merging this |
Created method as.data.frame as a synonym for collect().