@@ -2438,12 +2438,12 @@ setMethod("date_format", signature(y = "Column", x = "character"),
24382438# ' from_json
24392439# '
24402440# ' Parses a column containing a JSON string into a Column of \code{structType} with the specified
2441- # ' \code{schema} or array of \code{structType} if \code{asJsonArray } is set to \code{TRUE}.
2441+ # ' \code{schema} or array of \code{structType} if \code{as.json.array } is set to \code{TRUE}.
24422442# ' If the string is unparseable, the Column will contains the value NA.
24432443# '
24442444# ' @param x Column containing the JSON string.
24452445# ' @param schema a structType object to use as the schema to use when parsing the JSON string.
2446- # ' @param asJsonArray indicating if input string is JSON array of objects or a single object.
2446+ # ' @param as.json.array indicating if input string is JSON array of objects or a single object.
24472447# ' @param ... additional named properties to control how the json is parsed, accepts the same
24482448# ' options as the JSON data source.
24492449# '
@@ -2459,8 +2459,8 @@ setMethod("date_format", signature(y = "Column", x = "character"),
24592459# '}
24602460# ' @note from_json since 2.2.0
24612461setMethod ("from_json ", signature(x = "Column", schema = "structType"),
2462- function (x , schema , asJsonArray = FALSE , ... ) {
2463- if (asJsonArray ) {
2462+ function (x , schema , as.json.array = FALSE , ... ) {
2463+ if (as.json.array ) {
24642464 jschema <- callJStatic(" org.apache.spark.sql.types.DataTypes" ,
24652465 " createArrayType" ,
24662466 schema $ jobj )
0 commit comments