Math Function width_bucket(x,bins)



Query

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

Result

 width 
------- 
  3

Here, the array maximum value is set as bucket width.

apache_presto_sql_functions.htm
Advertisements