Github user sun-rui commented on a diff in the pull request:
https://github.com/apache/spark/pull/10580#discussion_r48807173
--- Diff: R/pkg/R/DataFrame.R ---
@@ -2005,13 +2005,18 @@ setMethod("saveDF",
#' saveAsTable(df, "myfile")
#' }
setMethod("saveAsTable",
- signature(df = "DataFrame", tableName = "character", source =
"character",
- mode = "character"),
+ signature(df = "DataFrame", tableName = "character"),
function(df, tableName, source = NULL, mode="error", ...){
if (is.null(source)) {
- sqlContext <- get(".sparkRSQLsc", envir = .sparkREnv)
--- End diff --
I think the same problem exists in write.df()? Could you extract the
following logic into a util function, and update write.df() also to use it?
---
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]