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

时间:2025-02-12 15:05:10

hll_hash_smallint(smallint, int32)

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

返回值类型:hll_hashval

示例:

12345
SELECT hll_hash_smallint(100::smallint, 10);  hll_hash_smallint  --------------------- 8349353095166695771(1 row)
support.huaweicloud.com/sqlreference-dws/dws_06_0327.html