MEMO USAGE用のSQLの作成 - yuokada/presto-sample-udf GitHub Wiki
- 辞書となるCREATE TABLE文とINSERT文を用意する。
- SELECTの結果を
array_agg
して辞書を作成する。array_agg(x ORDER BY y DESC) array_agg(x ORDER BY x, y, z)
- https://prestodb.io/docs/current/functions/aggregate.html
- https://prestodb.io/docs/current/functions/array.html
最後にkumoji UDFを使ったクエリを実行してOK