cast
function cast(column, targetType): Column;Defined in: functions/conditional.ts:61
Cast a column to the given data type string (e.g. “string”, “int”, “double”).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
column | ColOrName |
targetType | string |
Returns
Section titled “Returns”Example
Section titled “Example”cast(col("id"), "string")