ARRAY_INDEXOF (Lakehouse v1)
Renvoie l’indice (base 1) d’un élément si le tableau contient cet élément.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.array_indexof( <array>, <element> )Exemples Analyze
Section intitulée « Exemples Analyze »func.array_indexof([1, 2, 9], 9)
┌───────────────────────────────────┐│ func.array_indexof([1, 2, 9], 9) │├───────────────────────────────────┤│ 3 │└───────────────────────────────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »ARRAY_INDEXOF( <array>, <element> )Exemples SQL
Section intitulée « Exemples SQL »SELECT ARRAY_INDEXOF([1, 2, 9], 9);
┌─────────────────────────────┐│ array_indexof([1, 2, 9], 9) │├─────────────────────────────┤│ 3 │└─────────────────────────────┘