Skip to content

cast

function cast(column, targetType): Column;

Defined in: functions/conditional.ts:63

Cast a column to the given data type string (e.g. “string”, “int”, “double”).

Parameter Type
column ColOrName
targetType string

Column

cast(col("id"), "string")