TO_BINARY (Lakehouse v2)
Converts a VARCHAR string to a binary value based on the specified binary format.
Analyze Syntax
Section titled “Analyze Syntax”func.to_binary(<str>, <format>)Analyze Examples
Section titled “Analyze Examples”func.to_binary('Hello', 'utf8')
┌──────────┐│ b'Hello' │└──────────┘SQL Syntax
Section titled “SQL Syntax”TO_BINARY(<str>, <format>)SQL Examples
Section titled “SQL Examples”SELECT TO_BINARY('Hello', 'utf8');
┌────────────┐│ 48656C6C6F │└────────────┘