数据仓库服务 GAUSSDB(DWS)-哈希函数:hll_hash_smallint(smallint, int32)

时间:2024-10-21 16:50:41

hll_hash_smallint(smallint, int32)

描述:设置hash seed(即改变哈希策略)同时对smallint类型数据计算哈希值。

返回值类型:hll_hashval

示例:

1
2
3
4
5
SELECT hll_hash_smallint(100::smallint, 10);
  hll_hash_smallint  
---------------------
 8349353095166695771
(1 row)
support.huaweicloud.com/sqlreference-830-dws/dws_06_0327.html