Github user felixcheung commented on a diff in the pull request:
https://github.com/apache/spark/pull/18458#discussion_r124706681
--- Diff: R/pkg/R/functions.R ---
@@ -2156,28 +2178,23 @@ setMethod("date_format", signature(y = "Column", x
= "character"),
column(jc)
})
-#' from_json
-#'
-#' Parses a column containing a JSON string into a Column of
\code{structType} with the specified
-#' \code{schema} or array of \code{structType} if \code{as.json.array} is
set to \code{TRUE}.
-#' If the string is unparseable, the Column will contains the value NA.
+#' @details
+#' \code{from_json}: Parses a column containing a JSON string into a
Column of \code{structType}
+#' with the specified \code{schema} or array of \code{structType} if
\code{as.json.array} is set
+#' to \code{TRUE}. If the string is unparseable, the Column will contains
the value NA.
--- End diff --
btw, `will contains the value NA.` is very consistently documented. in this
case this is right, but there are many other that says the value is `null`
(note lower case) which isn't quite correct on the R side.
another project? :)
---
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]