Apache-presto-math-width-bucket-function

提供:Dev Guides
2020年6月22日 (月) 22:41時点におけるMaintenance script (トーク | 投稿記録)による版 (Imported from text file)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

数学関数width_bucket(x、bins)

問い合わせ

presto:default> select width_bucket(6,array[1,2,3]) as width;

結果

 width
-------
  3

ここでは、配列の最大値がバケット幅として設定されます。