Github user felixcheung commented on a diff in the pull request:
https://github.com/apache/spark/pull/17511#discussion_r109833091
--- Diff: R/pkg/R/DataFrame.R ---
@@ -557,7 +557,7 @@ setMethod("insertInto",
jmode <- convertToJSaveMode(ifelse(overwrite, "overwrite",
"append"))
write <- callJMethod(x@sdf, "write")
write <- callJMethod(write, "mode", jmode)
- callJMethod(write, "insertInto", tableName)
+ invisible(callJMethod(write, "insertInto", tableName))
--- End diff --
It's a R usability thing: for method not returning any value (in these
cases the Scala method is defined as `foo : Unit`), it will print NULL.
so we say `invisible` to get it to not print out the value, that's all
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]