Add documentation for xxh3

This commit is contained in:
Ilya Yatsishin 2023-01-06 18:05:27 +01:00 committed by GitHub
parent b25f875674
commit b6b9be7a3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -581,6 +581,41 @@ Result:
└───────────────────────────────────────────┘
```
## xxh3
Produces a 64-bit [xxh3](https://github.com/Cyan4973/xxHash) hash value.
**Syntax**
```sql
xxh3(expr)
```
**Arguments**
- `expr` — A list of [expressions](../../sql-reference/syntax.md#syntax-expressions) of any data type.
**Returned value**
A 64-bit `xxh3` hash value.
Type: [UInt64](../../sql-reference/data-types/int-uint.md).
**Example**
Query:
```sql
SELECT xxh3('Hello', 'world')```
Result:
```response
┌─xxh3('Hello', 'world')─┐
│ 5607458076371731292 │
└────────────────────────┘
```
## xxHash32, xxHash64
Calculates `xxHash` from a string. It is proposed in two flavors, 32 and 64 bits.