REGEXP (Lakehouse v1)
Devolve true se a cadeia de caracteres <expr> corresponder à expressão regular especificada por <pattern>, e false caso contrário.
Sintaxe do Analyze
Seção intitulada “Sintaxe do Analyze”<column>.regexp_match(<pattern>)Exemplos do Analyze
Seção intitulada “Exemplos do Analyze”With an input table of:┌─────────────────┐│ my_clothes │├─────────────────┤│ plaid pants ││ plaid hat ││ plaid shirt ││ shoes │└─────────────────┘
my_clothes.regexp_match('p*')┌───────────────────────────────┐│ my_clothes.regexp_match('p*') │├───────────────────────────────┤│ true ││ true ││ true ││ false │└───────────────────────────────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”<expr> REGEXP <pattern>Aliases
Seção intitulada “Aliases”Exemplos SQL
Seção intitulada “Exemplos SQL”SELECT 'databend' REGEXP 'd*', 'databend' RLIKE 'd*';
┌────────────────────────────────────────────────────┐│ ('databend' regexp 'd*') │ ('databend' rlike 'd*') │├──────────────────────────┼─────────────────────────┤│ true │ true │└────────────────────────────────────────────────────┘