ARRAY_FILTER (Lakehouse v1)
Construit un tableau à partir des éléments du tableau d’entrée pour lesquels la fonction lambda renvoie true.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.array_filter( <array>, <lambda> )Exemples Analyze
Section intitulée « Exemples Analyze »func.array_filter([1, 2, 3], x -> (x > 1))
┌─────────────────────────────────────────────┐│ func.array_filter([1, 2, 3], x -> (x > 1)) │├─────────────────────────────────────────────┤│ [2,3] │└─────────────────────────────────────────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »ARRAY_FILTER( <array>, <lambda> )Exemples SQL
Section intitulée « Exemples SQL »SELECT ARRAY_FILTER([1, 2, 3], x -> x > 1);
┌───────────────────────────────────────┐│ array_filter([1, 2, 3], x -> (x > 1)) │├───────────────────────────────────────┤│ [2,3] │└───────────────────────────────────────┘