snowflake.snowpark.functions.try_hex_decode_binary¶
- snowflake.snowpark.functions.try_hex_decode_binary(input_expr: Union[snowflake.snowpark.column.Column, str]) Column[source]¶
Decodes a hex-encoded string to binary data. Returns None if the input is not a valid hex string.
- Parameters:
input_expr (ColumnOrName) – A hex-encoded string to decode to binary data.
- Returns:
The decoded binary data as bytearray, or None if input is invalid.
- Return type:
- Examples::