-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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-12168][SPARKR] Add automated tests for conflicted function in R #10171
Conversation
Test build #47252 has finished for PR 10171 at commit
|
Thanks @felixcheung -- this is an interesting approach. Do you know if |
@shivaram I have verified this via SPARK_HOME/R/run_tests.sh - with this load order:
I guess it is possible that something in profile or loading with an explicit For now I assume we want to detect conflicts with |
To avoid the interference of user loaded packages for this test, we may:
|
I think we should run tests with --vanilla (or equivalent) to make it cleaner? Though it seems we don't have a way to specify options to Rscript I have a hack to get this to work but shouldn't we support that officially? Like a spark.r.driver.command.options conf? |
Can anybody stop @3ourroom ? |
Just set "spark.r.driver.command" to be "Rscript --vanilla " seems workable? |
Well, that was the first thing I tried :)
ProcessBuilder assumes that entire string is the runnable. Another trick is to set |
@felixcheung, maybe we always set the "--vanilla" option in RRuner? as this is done in RRDD, see https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/api/r/RRDD.scala#L401. |
@gatorsmile I reported the spam to Github, who said Apache had to block them. I was about to contact them, but, realized I don't see the spam comments anymore. Is it because I blocked the user or do you all also see they're gone? |
@srowen ! It sounds like his mailing app is hacked. Hopefully, it will not happen again! Thank you! I did not see any new spam message starting from this morning. |
@shivaram what do you think about adding |
7c7c5d3
to
fa4869d
Compare
Test build #48357 has finished for PR 10171 at commit
|
@shivaram how about I open a different PR on adding |
@shivaram please review when you get a chance! |
LGTM. Thanks for this PR and apologies for the delay in getting back on this. Merging to master. |
Currently this is reported when loading the SparkR package in R (probably would add is.nan)
Adding this test adds an automated way to track changes to masked method.
Also, the second part of this test check for those functions that would not be accessible without namespace/package prefix.
Incidentally, this might point to how we would fix those inaccessible functions in base or stats.
Looking for feedback for adding this test.