FROM_BASE64 (Lakehouse v1)
Takes a string encoded with the base-64 encoded rules nd returns the decoded result as a binary. The result is NULL if the argument is NULL or not a valid base-64 string.
Analyze Syntax
Section titled “Analyze Syntax”func.from_base64(<expr>)Analyze Examples
Section titled “Analyze Examples”func.from_base64('YWJj')┌──────────────────────────┐│ func.from_base64('YWJj') │├──────────────────────────┤│ abc │└──────────────────────────┘SQL Syntax
Section titled “SQL Syntax”FROM_BASE64(<expr>)Arguments
Section titled “Arguments”| Arguments | Description |
|---|---|
<expr> | The string value. |
Return Type
Section titled “Return Type”BINARY
SQL Examples
Section titled “SQL Examples”SELECT TO_BASE64('abc'), FROM_BASE64(TO_BASE64('abc')) as b, b::String;┌───────────────────────────────────────┐│ to_base64('abc') │ b │ b::string ││ String │ Binary │ String │├──────────────────┼────────┼───────────┤│ YWJj │ 616263 │ abc │└───────────────────────────────────────┘