返回类型
|
|
|
|
count(*) , count(expr), count(DISTINCT expr[, expr_., expr_.])
|
|
|
sum(col), sum(DISTINCT col)
|
|
|
avg(col), avg(DISTINCT col)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
返回数值区域的百分比数值点。0<=P<=1,否则返回NULL,不支持浮点型数值。
|
|
percentile(col, array(p~1,,\ [, p,,2,,]…))
|
返回数值区域的一组百分比值分别对应的数值点。0<=P<=1,否则返回NULL,不支持浮点型数值。
|
|
percentile_approx(col, p[, B])
|
Returns an approximate p^th^ percentile of a numeric column (including floating point types) in the group. The B parameter controls approximation accuracy at the cost of memory. Higher values yield better approximations,
and the default is 10,000. When the number of distinct values in col is smaller than B, this gives an exact percentile value.
|
|
percentile_approx(col, array(p~1,, [, p,,2_]…) [, B])
|
Same as above, but accepts and returns an array of percentile values instead of a single one.
|
|
histogram_numeric(col, b)
|
Computes a histogram of a numeric column in the group using b non-uniformly spaced bins. The output is an array of size b of double-valued (x,y) coordinates that represent the bin centers and heights
|
|
|
|
|