ARRAY_INDEXOF (Lakehouse v1)
Retorna o índice (base 1) de um elemento se o array contiver esse elemento.
Sintaxe do Analyze
Seção intitulada “Sintaxe do Analyze”func.array_indexof( <array>, <element> )Exemplos do Analyze
Seção intitulada “Exemplos do Analyze”func.array_indexof([1, 2, 9], 9)
┌───────────────────────────────────┐│ func.array_indexof([1, 2, 9], 9) │├───────────────────────────────────┤│ 3 │└───────────────────────────────────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”ARRAY_INDEXOF( <array>, <element> )Exemplos de SQL
Seção intitulada “Exemplos de SQL”SELECT ARRAY_INDEXOF([1, 2, 9], 9);
┌─────────────────────────────┐│ array_indexof([1, 2, 9], 9) │├─────────────────────────────┤│ 3 │└─────────────────────────────┘