CONTAINS (Lakehouse v1)
Verifica se a matriz 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> )Exemplos SQL
Seção intitulada “Exemplos SQL”SELECT ARRAY_CONTAINS([1, 2], 1), CONTAINS([1, 2], 1);
┌─────────────────────────────────────────────────┐│ array_contains([1, 2], 1) │ contains([1, 2], 1) │├───────────────────────────┼─────────────────────┤│ true │ true │└─────────────────────────────────────────────────┘