Skip to content

Removes duplicate elements from an array.

func.array_distinct([1, 2, 2, 3, 3])
func.array_distinct([1, 2, 2, 3, 3])
┌─────────┐
[1,2,3]
└─────────┘
ARRAY_DISTINCT([1, 2, 2, 3, 3])
SELECT ARRAY_DISTINCT([1, 2, 2, 3, 3]);
┌─────────┐
│ [1,2,3] │
└─────────┘