bigqueryでは配列をGROUP BYしようとすると、以下のようなエラーになります。
SELECT status, count(1) as COUNT FROM dataset.table GROUP BY 1 ORDER BY 1 > Grouping by expressions of type ARRAY is not allowed at [6:10]
↓対策コードはこちら
SELECT ANY_VALUE(status) AS status , count(1) as COUNT FROM dataset.table GROUP BY FORMAT('%T', status) ORDER BY FORMAT('%T', status)