TO_BINARY (Lakehouse v2)
根据指定的二进制格式,将 VARCHAR 字符串转换为二进制值。
Analyze 语法
Section titled “Analyze 语法”func.to_binary(<str>, <format>)Analyze 示例
Section titled “Analyze 示例”func.to_binary('Hello', 'utf8')
┌──────────┐│ b'Hello' │└──────────┘SQL 语法
Section titled “SQL 语法”TO_BINARY(<str>, <format>)SQL 示例
Section titled “SQL 示例”SELECT TO_BINARY('Hello', 'utf8');
┌────────────┐│ 48656C6C6F │└────────────┘