snowflake.snowpark.functions.unbase64¶
- snowflake.snowpark.functions.unbase64(e: Union[Column, str], alphabet: Optional[str] = None) Column [source]¶
Decodes a Base64-encoded string to a string.
Example
>>> df = session.create_dataframe(["U25vd2ZsYWtl", "SEVMTE8="], schema=["input"]) >>> df.select(base64_decode_string(col("input")).alias("decoded")).collect() [Row(DECODED='Snowflake'), Row(DECODED='HELLO')]