Megosztás a következőn keresztül:


Column.Cast(String) Method

Definition

Casts the column to a different data type, using the canonical string representation of the type.

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

Parameters

to
String

String version of datatype

Returns

Column object

Remarks

The supported types are: `string`, `boolean`, `byte`, `short`, `int`, `long`, `float`, `double`, `decimal`, `date`, `timestamp`.

Applies to