数据仓库服务 GAUSSDB(DWS)-功能函数:hll_empty(int32 log2m, int32 regwidth, int64 expthresh)

时间:2024-01-26 16:15:21

hll_empty(int32 log2m, int32 regwidth, int64 expthresh)

描述:创建空的hll并依次指定参数log2m、regwidth、expthresh。expthresh取值范围是-1到7之间的整数。该参数可以用来设置从Explicit模式到Sparse模式的阈值大小。-1表示自动模式,0表示跳过Explicit模式,取1-7表示在基数到达2expthresh时切换模式。

返回值类型:hll

示例:

1
2
3
4
5
SELECT hll_empty(10, 4, 7);
 hll_empty 
-----------
 \x116a48
(1 row)
support.huaweicloud.com/sqlreference-820-dws/dws_06_0330.html