数据仓库服务 GAUSSDB(DWS)-哈希函数:hll_hash_any(anytype)

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

hll_hash_any(anytype)

描述:对任意类型数据计算哈希值。

返回值类型:hll_hashval

示例:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
SELECT hll_hash_any(1);
     hll_hash_any     
----------------------
 -8604791237420463362
(1 row)

SELECT hll_hash_any('08:00:2b:01:02:03'::macaddr);
     hll_hash_any     
----------------------
 -4883882473551067169
(1 row)
support.huaweicloud.com/sqlreference-dws/dws_06_0327.html