Functions.SchemaOfJson Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SchemaOfJson(Column) |
Parses a JSON string and infers its schema in DDL format. |
SchemaOfJson(String) |
Parses a JSON string and infers its schema in DDL format. |
SchemaOfJson(Column, Dictionary<String,String>) |
Parses a JSON string and infers its schema in DDL format. |
SchemaOfJson(Column)
Parses a JSON string and infers its schema in DDL format.
[Microsoft.Spark.Since("2.4.0")]
public static Microsoft.Spark.Sql.Column SchemaOfJson(Microsoft.Spark.Sql.Column json);
[<Microsoft.Spark.Since("2.4.0")>]
static member SchemaOfJson : Microsoft.Spark.Sql.Column -> Microsoft.Spark.Sql.Column
Public Shared Function SchemaOfJson (json As Column) As Column
Parameters
- json
- Column
String literal containing a JSON string.
Returns
Column object
- Attributes
Applies to
SchemaOfJson(String)
Parses a JSON string and infers its schema in DDL format.
[Microsoft.Spark.Since("2.4.0")]
public static Microsoft.Spark.Sql.Column SchemaOfJson(string json);
[<Microsoft.Spark.Since("2.4.0")>]
static member SchemaOfJson : string -> Microsoft.Spark.Sql.Column
Public Shared Function SchemaOfJson (json As String) As Column
Parameters
- json
- String
JSON string
Returns
Column object
- Attributes
Applies to
SchemaOfJson(Column, Dictionary<String,String>)
Parses a JSON string and infers its schema in DDL format.
[Microsoft.Spark.Since("3.0.0")]
public static Microsoft.Spark.Sql.Column SchemaOfJson(Microsoft.Spark.Sql.Column json, System.Collections.Generic.Dictionary<string,string> options);
[<Microsoft.Spark.Since("3.0.0")>]
static member SchemaOfJson : Microsoft.Spark.Sql.Column * System.Collections.Generic.Dictionary<string, string> -> Microsoft.Spark.Sql.Column
Public Shared Function SchemaOfJson (json As Column, options As Dictionary(Of String, String)) As Column
Parameters
- json
- Column
String literal containing a JSON string.
- options
- Dictionary<String,String>
Options to control how the json is parsed.
Returns
Column object
- Attributes