REGEXP (Lakehouse v1)
Retorna true se a string <expr> corresponder à expressão regular especificada por <pattern>; caso contrário, retorna false.
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 de SQL
Seção intitulada “Exemplos de SQL”SELECT 'databend' REGEXP 'd*', 'databend' RLIKE 'd*';
┌────────────────────────────────────────────────────┐│ ('databend' regexp 'd*') │ ('databend' rlike 'd*') │├──────────────────────────┼─────────────────────────┤│ true │ true │└────────────────────────────────────────────────────┘