Apache Pinot Docs
Search…
latest
arraySortInt
This section contains reference documentation for the arraySortInt function.
Sorts array of ints.

Signature

arraySortInt('colName')

Usage Examples

These examples are based on the Hybrid Quick Start.
1
select DivAirportIDs,
2
arraySortInt(DivAirportIDs) AS sortedIds
3
from airlineStats
4
WHERE arraylength(DivAirportIDs) >= 2
5
limit 5
Copied!
DivAirportIDs
sortedIds
13891,12892
12892,13891
14683,14683
14683,14683
12339,12339
12339,12339
13198,10721
10721,13198
10721,12478
10721,12478
Copy link