Fonction mathématique width_bucket (x, bins)

Requete

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

Résultat

width 
------- 
  3

Ici, la valeur maximale du tableau est définie comme la largeur du compartiment.