snowflake.snowpark.functions.try_base64_decode_string¶
- snowflake.snowpark.functions.try_base64_decode_string(input_expr: Union[snowflake.snowpark.column.Column, str], alphabet: Union[snowflake.snowpark.column.Column, str] = None) Column[source]¶
Decodes a base64-encoded string and returns the result. If the input is not a valid base64-encoded string, returns NULL instead of raising an error.
- Parameters:
input_expr (ColumnOrName) – A base64-encoded string to decode.
alphabet (ColumnOrName, optional) – The base64 alphabet to use for decoding. If not specified, uses the standard base64 alphabet.
- Returns:
The decoded string, or NULL if the input is not valid base64.
- Return type:
- Examples::