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

时间:2024-12-24 10:32:43

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-dws/dws_06_0327.html