I want to filter out the values from an array that are occurring consecutively.
I tried using the "array_distinct" & "transform" function in presto, but couldn't progress. As array_distinct only gives distinct values not what i expect
Input : [1,2,2,3,4,4,4,2]
Expected Output : [1,2,3,4,2]