数据仓库服务 GAUSSDB(DWS)-精度函数:hll_expthresh(hll)

时间:2024-04-18 16:25:13

hll_expthresh(hll)

描述:得到当前hll中expthresh大小,hll通常会由Explicit模式到Sparse模式再到Full模式,这个过程称为promotion hierarchy策略。可以通过调整expthresh值的大小改变策略,比如expthresh为0的时候就会跳过Explicit模式而直接进入Sparse模式。当显式指定expthresh的取值为1-7之间时,该函数得到的是 2expthresh

返回值类型:record

示例:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
SELECT hll_expthresh(hll_empty());
 hll_expthresh 
---------------
 (-1,160)
(1 row)

SELECT hll_expthresh(hll_empty(11,5,3));
 hll_expthresh 
---------------
 (8,8)
(1 row)
support.huaweicloud.com/sqlreference-830-dws/dws_06_0328.html