You are viewing documentation about an older version (1.29.0). View latest version

snowflake.snowpark.Column.cast

Column.cast(to: Union[str, DataType], rename_fields: bool = False, add_fields: bool = False) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.29.0/snowpark-python/src/snowflake/snowpark/column.py#L982-L999)

Casts the value of the Column to the specified data type. It raises an error when the conversion can not be performed.

语言: 中文