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

snowflake.snowpark.Column.try_castΒΆ

Column.try_cast(to: Union[str, DataType]) β†’ Column[source]ΒΆ

Tries to cast the value of the Column to the specified data type. It returns a NULL value instead of raising an error when the conversion can not be performed.