ARRAY_FILTER (Lakehouse v1)
Constructs an array from those elements of the input array for which the lambda function returns true.
Analyze Syntax
Section titled “Analyze Syntax”func.array_filter( <array>, <lambda> )Analyze Examples
Section titled “Analyze Examples”func.array_filter([1, 2, 3], x -> (x > 1))
┌─────────────────────────────────────────────┐│ func.array_filter([1, 2, 3], x -> (x > 1)) │├─────────────────────────────────────────────┤│ [2,3] │└─────────────────────────────────────────────┘SQL Syntax
Section titled “SQL Syntax”ARRAY_FILTER( <array>, <lambda> )SQL Examples
Section titled “SQL Examples”SELECT ARRAY_FILTER([1, 2, 3], x -> x > 1);
┌───────────────────────────────────────┐│ array_filter([1, 2, 3], x -> (x > 1)) │├───────────────────────────────────────┤│ [2,3] │└───────────────────────────────────────┘