Skip to content

Conversation

@olarayej
Copy link

Created method as.data.frame as a synonym for collect().

@shivaram
Copy link
Contributor

Jenkins, ok to test

@SparkQA
Copy link

SparkQA commented Sep 24, 2015

Test build #42981 has finished for PR 8908 at commit e9e34b5.

  • This patch fails R style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@olarayej
Copy link
Author

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,

@shivaram
Copy link
Contributor

You can run dev/lint-r in your tree and it should do the style checks. Also the jenkins log has the error at the end

R/DataFrame.R:1867:69: style: Trailing whitespace is superfluous.
setMethod(f = "as.data.frame", signature = "DataFrame", definition = 

@olarayej
Copy link
Author

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 :)

@SparkQA
Copy link

SparkQA commented Sep 24, 2015

Test build #42989 has finished for PR 8908 at commit cee871c.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Contributor

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, ...) {
}

@shivaram
Copy link
Contributor

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

test_that("create DataFrame from list or data.frame", {

Copy link
Contributor

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 ?

@shivaram
Copy link
Contributor

Also could you change the PR title to [SPARK-10807][SPARKR] ? This matches the format we use for all PRs -- https://cwiki.apache.org/confluence/display/SPARK/Contributing+to+Spark#ContributingtoSpark-PullRequest has more information

@olarayej olarayej changed the title SPARK-10807. Added as.data.frame as a synonym for collect(). [SPARK-10807][SPARKR] Sep 28, 2015
Changed setMethod stle
Removed return()
@shivaram
Copy link
Contributor

@olarayej Sorry I wasn't clear the last time around but the title should be [SPARK-10807][SPARKR] Added as.data.frame as a synonym for collect

@olarayej olarayej changed the title [SPARK-10807][SPARKR] [SPARK-10807][SPARKR] Added as.data.frame as a synonym for collect Sep 28, 2015
@olarayej
Copy link
Author

@shivaram Thanks a lot for your comments! I have addressed them.
-Oscar

Copy link
Contributor

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

Copy link
Author

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.

@SparkQA
Copy link

SparkQA commented Sep 28, 2015

Test build #43072 has finished for PR 8908 at commit a346cc6.

  • This patch fails MiMa tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@shivaram
Copy link
Contributor

Jenkins, retest this please

@SparkQA
Copy link

SparkQA commented Sep 28, 2015

Test build #43069 has finished for PR 8908 at commit de6d164.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@shivaram
Copy link
Contributor

Jenkins, retest this please

Copy link
Member

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?

@SparkQA
Copy link

SparkQA commented Sep 29, 2015

Test build #43086 has finished for PR 8908 at commit a346cc6.

  • This patch fails MiMa tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@shivaram
Copy link
Contributor

Jenkins, retest this please

@SparkQA
Copy link

SparkQA commented Sep 29, 2015

Test build #43097 has finished for PR 8908 at commit a346cc6.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@shivaram
Copy link
Contributor

@shaneknapp The log has a strange error I haven't seen so far

/home/jenkins/workspace/SparkPullRequestBuilder/build/sbt -Pyarn -Phadoop-2.3 -Dhadoop.version=2.3.0 -Phive -Pkinesis-asl -Phive-thriftserver test ; received return code 143

Any ideas if this is related to the recent Jenkins issues ?

@shaneknapp
Copy link
Contributor

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.

@olarayej
Copy link
Author

@shivaram @shaneknapp: any suggestions? I did double check the unit tests work fine on my environment. Thanks!

@shivaram
Copy link
Contributor

Jenkins, retest this please

@SparkQA
Copy link

SparkQA commented Sep 30, 2015

Test build #43106 has finished for PR 8908 at commit a346cc6.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@shivaram
Copy link
Contributor

@shaneknapp Looks like the same error again.

@olarayej Could you remove the change to .gitignore in this PR ? Because of the way our tests are setup only changes in R/ will only run SparkR unit tests which should pass without a problem I think

@shaneknapp
Copy link
Contributor

i'll take a closer look tomorrow, @shivaram.

On Tue, Sep 29, 2015 at 8:41 PM, Shivaram Venkataraman <
[email protected]> wrote:

@shaneknapp https://github.com/shaneknapp Looks like the same error
again.

@olarayej https://github.com/olarayej Could you remove the change to
.gitignore in this PR ? Because of the way our tests are setup only
changes in R/ will only run SparkR unit tests which should pass without a
problem I think


Reply to this email directly or view it on GitHub
#8908 (comment).

@olarayej
Copy link
Author

@shivaram I have removed the changes to .gitignore. My apologies, I accidentally committed this file. Thanks!

@SparkQA
Copy link

SparkQA commented Sep 30, 2015

Test build #43136 has finished for PR 8908 at commit 6c4dcbc.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@olarayej
Copy link
Author

Awesome! :-)

@shivaram
Copy link
Contributor

Thanks @olarayej LGTM. Merging this

@asfgit asfgit closed this in f21e2da Oct 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants