Github user MaxGekk commented on a diff in the pull request:
https://github.com/apache/spark/pull/22939#discussion_r230584990
--- Diff: R/pkg/R/functions.R ---
@@ -202,14 +202,18 @@ NULL
#' \itemize{
#' \item \code{from_json}: a structType object to use as the
schema to use
#' when parsing the JSON string. Since Spark 2.3, the
DDL-formatted string is
-#' also supported for the schema.
-#' \item \code{from_csv}: a DDL-formatted string
+#' also supported for the schema. Since Spark 3.0,
\code{schema_of_json} or
+#' a DDL-formatted string literal can also be accepted.
+#' \item \code{from_csv}: a structType object, DDL-formatted
string, \code{schema_of_csv}
+#' or DDL-formatted string literal
#' }
-#' @param ... additional argument(s). In \code{to_json}, \code{to_csv} and
\code{from_json},
-#' this contains additional named properties to control how it
is converted, accepts
-#' the same options as the JSON/CSV data source. Additionally
\code{to_json} supports
-#' the "pretty" option which enables pretty JSON generation. In
\code{arrays_zip},
-#' this contains additional Columns of arrays to be merged.
+#' @param ... additional argument(s). In \code{to_json}, \code{from_json}
and
--- End diff --
Would it be better to make a list of items here like for the `schema`
parameter?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]