FunctionsArray
array_distinct
Removes duplicate elements from each input array and keeps only the first appearance of every distinct value.
array_distinct(…) → StringKind · scalar · aggregate
scalar — Removes duplicate elements from each input array and keeps only the first appearance of every distinct value.
aggregate — Collects distinct input values across the group and returns them as an array.
Part of the Array family.