hex() added to murmurHash3_128 example

This commit is contained in:
Alexey 2021-04-13 19:35:44 +00:00
parent 0ef827ded7
commit 0b39a64a6e
3 changed files with 13 additions and 13 deletions

View File

@ -437,13 +437,13 @@ A [FixedString(16)](../../sql-reference/data-types/fixedstring.md) data type has
**Example** **Example**
``` sql ``` sql
SELECT murmurHash3_128('example_string') AS MurmurHash3, toTypeName(MurmurHash3) AS type; SELECT hex(murmurHash3_128('example_string')) AS MurmurHash3, toTypeName(MurmurHash3) AS type;
``` ```
``` text ``` text
┌─MurmurHash3──────┬─type────────────┐ ┌─MurmurHash3──────────────────────┬─type───┐
6<EFBFBD>1<EFBFBD>4"S5KT<4B>~~q | FixedString(16) 368A1A311CB7342253354B548E7E7E71 │ String
└──────────────────┴─────────────────┘ └──────────────────────────────────┴────────┘
``` ```
## xxHash32, xxHash64 {#hash-functions-xxhash32} ## xxHash32, xxHash64 {#hash-functions-xxhash32}

View File

@ -434,13 +434,13 @@ A [FixedString(16)](../../sql-reference/data-types/fixedstring.md) データ型
**例** **例**
``` sql ``` sql
SELECT murmurHash3_128('example_string') AS MurmurHash3, toTypeName(MurmurHash3) AS type SELECT hex(murmurHash3_128('example_string')) AS MurmurHash3, toTypeName(MurmurHash3) AS type;
``` ```
``` text ``` text
┌─MurmurHash3──────┬─type────────────┐ ┌─MurmurHash3──────────────────────┬─type───┐
6<EFBFBD>1<EFBFBD>4"S5KT<4B>~~q │ FixedString(16) 368A1A311CB7342253354B548E7E7E71 │ String
└──────────────────┴─────────────────┘ └──────────────────────────────────┴────────┘
``` ```
## xxHash32,xxHash64 {#hash-functions-xxhash32} ## xxHash32,xxHash64 {#hash-functions-xxhash32}

View File

@ -430,7 +430,7 @@ murmurHash3_128( expr )
**Аргументы** **Аргументы**
- `expr` — [выражение](../syntax.md#syntax-expressions), возвращающее значение типа[String](../../sql-reference/functions/hash-functions.md). - `expr` — [выражение](../syntax.md#syntax-expressions), возвращающее значение типа [String](../../sql-reference/functions/hash-functions.md).
**Возвращаемое значение** **Возвращаемое значение**
@ -439,13 +439,13 @@ murmurHash3_128( expr )
**Пример** **Пример**
``` sql ``` sql
SELECT murmurHash3_128('example_string') AS MurmurHash3, toTypeName(MurmurHash3) AS type; SELECT hex(murmurHash3_128('example_string')) AS MurmurHash3, toTypeName(MurmurHash3) AS type;
``` ```
``` text ``` text
┌─MurmurHash3──────┬─type────────────┐ ┌─MurmurHash3──────────────────────┬─type───┐
6<EFBFBD>1<EFBFBD>4"S5KT<4B>~~q │ FixedString(16) 368A1A311CB7342253354B548E7E7E71 │ String
└──────────────────┴─────────────────┘ └──────────────────────────────────┴────────┘
``` ```
## xxHash32, xxHash64 {#hash-functions-xxhash32-xxhash64} ## xxHash32, xxHash64 {#hash-functions-xxhash32-xxhash64}