ARRAY_FILTER (Lakehouse v2)
Filtre les éléments d’un tableau à l’aide d’une expression lambda.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.array_filter(get_column(table, 'arr'), lambda x: x > 2)Exemples Analyze
Section intitulée « Exemples Analyze »func.array_filter([1, 2, 3, 4, 5], lambda x: x > 2)
┌─────────┐│ [3,4,5] │└─────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »ARRAY_FILTER(<arr>, lambda x: x > 2)Exemples SQL
Section intitulée « Exemples SQL »SELECT ARRAY_FILTER([1, 2, 3, 4, 5], x -> x > 2);
┌─────────┐│ [3,4,5] │└─────────┘