REGEXP_SPLIT (Lakehouse v2)
Découpe une chaîne selon un motif d’expression régulière et renvoie un tableau de sous-chaînes.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.regexp_split('one1two2three', '[0-9]')Exemples Analyze
Section intitulée « Exemples Analyze »func.regexp_split('one1two2three', '[0-9]')
┌───────────────────────┐│ ["one","two","three"] │└───────────────────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »REGEXP_SPLIT(<str>, <pattern>)Exemples SQL
Section intitulée « Exemples SQL »SELECT REGEXP_SPLIT('one1two2three', '[0-9]');
┌───────────────────────┐│ ["one","two","three"] │└───────────────────────┘