VeloDB Cloud
SQL Manual
Functions
hash-functions
murmur_hash3_64

murmur_hash3_64

Description

Syntax:

BIGINT MURMUR_HASH3_64(VARCHAR input, ...)

This function returns the 64-bit murmur3 hash value of the input string.

Example

mysql> select murmur_hash3_64(null);
+-----------------------+
| murmur_hash3_64(NULL) |
+-----------------------+
|                  NULL |
+-----------------------+

mysql> select murmur_hash3_64("hello");
+--------------------------+
| murmur_hash3_64('hello') |
+--------------------------+
|     -3215607508166160593 |
+--------------------------+

mysql> select murmur_hash3_64("hello", "world");
+-----------------------------------+
| murmur_hash3_64('hello', 'world') |
+-----------------------------------+
|               3583109472027628045 |
+-----------------------------------+

Keywords

MURMUR_HASH3_64,HASH