-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-8506] Add pakages to R context created through init. #6928
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
|
Test build #35420 has finished for PR 6928 at commit
|
|
jenkins, retest this please. |
|
Test build #35425 has finished for PR 6928 at commit
|
R/pkg/R/sparkR.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.
space before and after = here
|
Thanks @holdenk -- Change looks pretty good. I just had some minor style comments. BTW do you know if we re-use some test spark package to create a unit test for this ? Using a real package might mean going to maven central etc. which doesn't seem like a very good for a unit test, but I was wondering if we had code to generat some fake test package for Scala unit tests. cc @brkyvz |
|
Hey @shivaram and @holdenk! I have a lot of package related utils here. The most relevant method I believe would be |
|
Well, since SparkSubmitt should ready be tested, could we just test the param code gen? |
|
Yeah I think that sounds reasonable. Tying this up with the SparkSubmitSuite will be pretty messy. One easy way to do this is to just pull out the code to construct the spark-submit command line into a separate function and then test that function. https://github.com/apache/spark/blob/master/R/pkg/inst/tests/test_utils.R#L23 has some examples on how to test util functions. |
|
Test build #35523 has finished for PR 6928 at commit
|
|
Test build #35525 has finished for PR 6928 at commit
|
|
Test build #35529 has finished for PR 6928 at commit
|
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: sparkHome is not used in this function
|
Thanks @holdenk for the update. LGTM. Will merge after tests pass |
|
Test build #35707 has finished for PR 6928 at commit
|
|
Merged build finished. Test FAILed. |
Author: Holden Karau <[email protected]> Closes #6928 from holdenk/SPARK-8506-sparkr-does-not-provide-an-easy-way-to-depend-on-spark-packages-when-performing-init-from-inside-of-r and squashes the following commits: b60dd63 [Holden Karau] Add an example with the spark-csv package fa8bc92 [Holden Karau] typo: sparm -> spark 865a90c [Holden Karau] strip spaces for comparision c7a4471 [Holden Karau] Add some documentation c1a9233 [Holden Karau] refactor for testing c818556 [Holden Karau] Add pakages to R (cherry picked from commit 43e6619) Signed-off-by: Shivaram Venkataraman <[email protected]>
Author: Holden Karau <[email protected]> Closes apache#6928 from holdenk/SPARK-8506-sparkr-does-not-provide-an-easy-way-to-depend-on-spark-packages-when-performing-init-from-inside-of-r and squashes the following commits: b60dd63 [Holden Karau] Add an example with the spark-csv package fa8bc92 [Holden Karau] typo: sparm -> spark 865a90c [Holden Karau] strip spaces for comparision c7a4471 [Holden Karau] Add some documentation c1a9233 [Holden Karau] refactor for testing c818556 [Holden Karau] Add pakages to R (cherry picked from commit 43e6619) Signed-off-by: Shivaram Venkataraman <[email protected]>
No description provided.