Column.Cast(String) 方法

定義

使用 型別的標準字串表示,將資料行轉換成不同的資料類型。

public Microsoft.Spark.Sql.Column Cast(string to);
member this.Cast : string -> Microsoft.Spark.Sql.Column
Public Function Cast (to As String) As Column

參數

to
String

資料類型的字串版本

傳回

Column 物件

備註

支援的類型包括:'string'、'boolean'、'byte'、'short'、'int'、'long'、'float'、'double'、'decimal'、'date'、'timestamp'。

適用於