width_bucket(x,bound1,bound2,n)
查询
presto:default> select width_bucket(5,3,4,5) as width;
width ------- 6
根据上面的输入,3 和 4 是不同的边界,返回的桶宽度为 6。
apache_presto_sql_functions.html
presto:default> select width_bucket(5,3,4,5) as width;
width ------- 6
根据上面的输入,3 和 4 是不同的边界,返回的桶宽度为 6。
apache_presto_sql_functions.html
