mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Add documentation for xxh3
This commit is contained in:
parent
b25f875674
commit
b6b9be7a3e
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user