-
Notifications
You must be signed in to change notification settings - Fork 29.1k
[SPARK-18807][SPARKR] Should suppress output print for calls to JVM methods with void return values #16237
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 #69933 has finished for PR 16237 at commit
|
|
Does |
|
Actually looks like that doesn't do what we want - that checks for outputs on stdout, warnings or errors etc. |
| expect_equal(count(tables), 2) | ||
| suppressWarnings(dropTempTable("table1")) | ||
| dropTempView("table2") | ||
| expect_true(dropTempView("table2")) |
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 a bunch of other places where we call dropTempView - Might be good to add this to those places which we think are testing temp views ?
|
LGTM. Will wait for Jenkins, AppVeyor |
|
Test build #69945 has finished for PR 16237 at commit
|
|
Merging into master, branch-2.1 |
…ethods with void return values
## What changes were proposed in this pull request?
Several SparkR API calling into JVM methods that have void return values are getting printed out, especially when running in a REPL or IDE.
example:
```
> setLogLevel("WARN")
NULL
```
We should fix this to make the result more clear.
Also found a small change to return value of dropTempView in 2.1 - adding doc and test for it.
## How was this patch tested?
manually - I didn't find a expect_*() method in testthat for this
Author: Felix Cheung <felixcheung_m@hotmail.com>
Closes #16237 from felixcheung/rinvis.
(cherry picked from commit 3e11d5b)
Signed-off-by: Shivaram Venkataraman <shivaram@cs.berkeley.edu>
…ethods with void return values
## What changes were proposed in this pull request?
Several SparkR API calling into JVM methods that have void return values are getting printed out, especially when running in a REPL or IDE.
example:
```
> setLogLevel("WARN")
NULL
```
We should fix this to make the result more clear.
Also found a small change to return value of dropTempView in 2.1 - adding doc and test for it.
## How was this patch tested?
manually - I didn't find a expect_*() method in testthat for this
Author: Felix Cheung <felixcheung_m@hotmail.com>
Closes apache#16237 from felixcheung/rinvis.
…ethods with void return values
## What changes were proposed in this pull request?
Several SparkR API calling into JVM methods that have void return values are getting printed out, especially when running in a REPL or IDE.
example:
```
> setLogLevel("WARN")
NULL
```
We should fix this to make the result more clear.
Also found a small change to return value of dropTempView in 2.1 - adding doc and test for it.
## How was this patch tested?
manually - I didn't find a expect_*() method in testthat for this
Author: Felix Cheung <felixcheung_m@hotmail.com>
Closes apache#16237 from felixcheung/rinvis.
What changes were proposed in this pull request?
Several SparkR API calling into JVM methods that have void return values are getting printed out, especially when running in a REPL or IDE.
example:
We should fix this to make the result more clear.
Also found a small change to return value of dropTempView in 2.1 - adding doc and test for it.
How was this patch tested?
manually - I didn't find a expect_*() method in testthat for this