ARRAY_DIFFERENCE (Lakehouse v2)
Returns an array of differences between consecutive elements.
Analyze Syntax
Section titled “Analyze Syntax”func.array_difference([1, 3, 6, 10])Analyze Examples
Section titled “Analyze Examples”func.array_difference([1, 3, 6, 10])
┌───────────┐│ [0,2,3,4] │└───────────┘SQL Syntax
Section titled “SQL Syntax”ARRAY_DIFFERENCE([1, 3, 6, 10])SQL Examples
Section titled “SQL Examples”SELECT ARRAY_DIFFERENCE([1, 3, 6, 10]);
┌───────────┐│ [0,2,3,4] │└───────────┘