ARRAY_POSITION (Lakehouse v2)
Retorna a posição da primeira ocorrência de um elemento (índice a partir de 1).
Sintaxe do Analyze
Seção intitulada “Sintaxe do Analyze”func.array_position([10, 20, 30], 20)Exemplos do Analyze
Seção intitulada “Exemplos do Analyze”func.array_position([10, 20, 30], 20)
┌───┐│ 2 │└───┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”ARRAY_POSITION([10, 20, 30], 20)Exemplos SQL
Seção intitulada “Exemplos SQL”SELECT ARRAY_POSITION([10, 20, 30], 20);
┌───┐│ 2 │└───┘