你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
hash_combine()
Applies to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Combines hash values of two or more hashes.
Syntax
hash_combine(
h1 ,
h2 [,
h3 ...])
Learn more about syntax conventions.
Parameters
Name | Type | Required | Description |
---|---|---|---|
h1, h2, ... hN | long |
✔️ | The hash values to combine. |
Returns
The combined hash value of the given scalars.
Examples
print value1 = "Hello", value2 = "World"
| extend h1 = hash(value1), h2=hash(value2)
| extend combined = hash_combine(h1, h2)
Output
value1 | value2 | h1 | h2 | combined |
---|---|---|---|---|
Hello | World | 753694413698530628 | 1846988464401551951 | -1440138333540407281 |