CONTAINS (Lakehouse v1)
Verifica se o array contém um elemento específico.
Sintaxe do Analyze
Seção intitulada “Sintaxe do Analyze”func.contains( <array>, <element> )Exemplos do Analyze
Seção intitulada “Exemplos do Analyze”func.contains([1, 2], 1)
┌───────────────────────────┐│ func.contains([1, 2], 1) │├───────────────────────────┤│ true │└───────────────────────────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”CONTAINS( <array>, <element> )Aliases
Seção intitulada “Aliases”Exemplos de SQL
Seção intitulada “Exemplos de SQL”SELECT ARRAY_CONTAINS([1, 2], 1), CONTAINS([1, 2], 1);
┌─────────────────────────────────────────────────┐│ array_contains([1, 2], 1) │ contains([1, 2], 1) │├───────────────────────────┼─────────────────────┤│ true │ true │└─────────────────────────────────────────────────┘