Quantcast
Channel: How to sort an array in BigQuery standard SQL? - Stack Overflow
Viewing all articles
Browse latest Browse all 3

How to sort an array in BigQuery standard SQL?

$
0
0

I am wondering if it is possible to order (apply order by) for individual array values in Google BigQuery?

I am able to achieve this by applying order by on the whole transactonal base table first, then aggregating array; but when table is too large, resource errors appear for ordering by a large table..

So i am wondering if each individual array value can be ordered by using SQL or UDF.

This was asked once Order of data in bigquery repeated records but it was 4,5 years ago.


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images