TO_BASE64 (Lakehouse v1)
Converts the string argument to base-64 encoded form and returns the result as a character string. If the argument is not a string, it is converted to a string before conversion takes place. The result is NULL if the argument is NULL.
Analyze Syntax
Section titled “Analyze Syntax”func.to_base64(<v>)Analyze Examples
Section titled “Analyze Examples”func.to_base64('abc')┌───────────────────────┐│ func.to_base64('abc') │├───────────────────────┤│ YWJj │└───────────────────────┘SQL Syntax
Section titled “SQL Syntax”TO_BASE64(<v>)Arguments
Section titled “Arguments”| Arguments | Description |
|---|---|
<v> | The value. |
Return Type
Section titled “Return Type”VARCHAR
SQL Examples
Section titled “SQL Examples”SELECT TO_BASE64('abc');┌──────────────────┐│ TO_BASE64('abc') │├──────────────────┤│ YWJj │└──────────────────┘