Apache Pinot Docs
Search…
latest
arrayDistinctString
This section contains reference documentation for the arrayDistinctString function.
Returns unique values in an array of strings.

Signature

arrayDistinctString('colName')

Usage Examples

These examples are based on the Hybrid Quick Start.
1
select DivTailNums,
2
arrayDistinctString(DivTailNums) AS unique
3
from airlineStats
4
WHERE arraylength(DivTailNums) >= 2
5
limit 5
Copied!
DivTailNums
unique
N7713A,N7713A
N7713A
N344AA,N344AA
N344AA
N344AA,N344AA
N344AA
N7713A,N7713A
N7713A
Copy link