-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
[SPARK-9121][SparkR] Get rid of the warnings about no visible global function definition
in SparkR
#7567
Conversation
… function definition` in SparkR
Test build #37939 has finished for PR 7567 at commit
|
expect_equal(actual$name(), expectedName) | ||
expect_equal(actual$dataType.toString(), expectedType) | ||
expect_equal(actual$nullable(), expectedNullable) | ||
testthat::expect_equal(class(actual), "structField") |
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 don't need to do this -- instead we can include library(testthat)
in our lint-R
script as Jenkins and developers who run unit tests should have this package installed.
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.
Alright. I will modify it soon. Thank you for the comment.
…ull path of function.
# NOTE: You should install SparkR with `R/install-dev.sh` before running this script. | ||
library(lintr) | ||
library(testthat) | ||
library(SparkR, lib.loc = file.path(SPARK_ROOT_DIR, "R", "lib")) |
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 thing -- it would be good for the script to exit if any of these package loads fail. We can pass in logical.return=T
to the library
call to do this.
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.
Sure. I have added the validation.
Test build #38002 has finished for PR 7567 at commit
|
Jenkins, test this please. |
library(methods) | ||
library(testthat) | ||
if (! library(SparkR, lib.loc = file.path(SPARK_ROOT_DIR, "R", "lib"), logical.return = TRUE)) { | ||
stop("You should install SparkR in a local directory with `R/instlal-dev.sh`.") |
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 typo here -- It should be install-dev.sh
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...
Test build #37997 has finished for PR 7567 at commit
|
LGTM. Thanks @yu-iskw |
Test build #46 has finished for PR 7567 at commit
|
Jenkins, retest this please |
Test build #38003 has finished for PR 7567 at commit
|
Test build #38009 timed out for PR 7567 at commit |
Test build #38020 has finished for PR 7567 at commit
|
Finally the tests passed ! Merging this. |
@shivaram Thank you for reviewing it and merging it! |
[SPARK-9121] Get rid of the warnings about
no visible global function definition
in SparkR - ASF JIRAThe Result of
dev/lint-r
The result of lint-r for SPARK-9121 at the revision:1ddd0f2f1688560f88470e312b72af04364e2d49 when I have sent a PR