REGEXP_SPLIT (Lakehouse v2)
按正则表达式模式拆分字符串,并返回子字符串数组。
Analyze 语法
Section titled “Analyze 语法”func.regexp_split('one1two2three', '[0-9]')Analyze 示例
Section titled “Analyze 示例”func.regexp_split('one1two2three', '[0-9]')
┌───────────────────────┐│ ["one","two","three"] │└───────────────────────┘SQL 语法
Section titled “SQL 语法”REGEXP_SPLIT(<str>, <pattern>)SQL 示例
Section titled “SQL 示例”SELECT REGEXP_SPLIT('one1two2three', '[0-9]');
┌───────────────────────┐│ ["one","two","three"] │└───────────────────────┘