Functions.SchemaOfJson 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
SchemaOfJson(Column) |
剖析 JSON 字串,並以 DDL 格式推斷其架構。 |
SchemaOfJson(String) |
剖析 JSON 字串,並以 DDL 格式推斷其架構。 |
SchemaOfJson(Column, Dictionary<String,String>) |
剖析 JSON 字串,並以 DDL 格式推斷其架構。 |
SchemaOfJson(Column)
剖析 JSON 字串,並以 DDL 格式推斷其架構。
[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
參數
- json
- Column
包含 JSON 字串的字串常值。
傳回
Column 物件
- 屬性
適用於
SchemaOfJson(String)
剖析 JSON 字串,並以 DDL 格式推斷其架構。
[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
參數
- json
- String
JSON 字串
傳回
Column 物件
- 屬性
適用於
SchemaOfJson(Column, Dictionary<String,String>)
剖析 JSON 字串,並以 DDL 格式推斷其架構。
[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
參數
- json
- Column
包含 JSON 字串的字串常值。
- options
- Dictionary<String,String>
控制 json 剖析方式的選項。
傳回
Column 物件
- 屬性
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應