Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/16609#discussion_r96399989
--- Diff: R/pkg/R/DataFrame.R ---
@@ -78,6 +78,49 @@ dataFrame <- function(sdf, isCached = FALSE) {
############################ SparkDataFrame Methods
##############################################
+#' Return an SparkDataFrame's name.
+#'
+#' @param x The SparkDataFrame whose name is returned.
+#' @rdname name
+#' @examples
+#'\dontrun{
+#' sparkR.session()
+#' path <- "path/to/file.json"
+#' df <- read.json(path)
+#' df.name()
+#'}
+#' @aliases name,SparkDataFrame-method
+#' @noRd
+#' @note explain since 2.1.0
+setMethod("name",
+ signature(x = "SparkDataFrame"),
+ function(x) {
+ callJMethod(x@sdf, "name")
+ })
+
+#' Set an SparkDataFrame's name.
+#'
+#' @param x The SparkDataFrame whose name is to be set.
+#' @param name The SparkDataFrame name to be set.
+#' @return a new SparkDataFrame renamed.
+#' @rdname setName
+#' @examples
+#'\dontrun{
+#' sparkR.session()
+#' path <- "path/to/file.json"
+#' df <- read.json(path)
+#' df.setName("foo")
+#'}
+#' @aliases setName,SparkDataFrame-method
+#' @noRd
+#' @note explain since 2.1.0
--- End diff --
All of the "2.1.0" needs to be "2.2.0" at least
---
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]