Apache-presto-math-function-width-bucket

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

width_bucket(x、bound1、bound2、n)

問い合わせ

presto:default> select width_bucket(5,3,4,5) as width;

結果

 width
-------
   6

上記の入力から、3と4は異なる境界であり、バケット幅を6として返します。