VeloDB Cloud
SQL Manual
Functions
hash-functions
murmur_hash3_32

murmur_hash3_32

Description

Syntax:

INT MURMUR_HASH3_32(VARCHAR input, ...)

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

Example

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

mysql> select murmur_hash3_32("hello");
+--------------------------+
| murmur_hash3_32('hello') |
+--------------------------+
|               1321743225 |
+--------------------------+

mysql> select murmur_hash3_32("hello", "world");
+-----------------------------------+
| murmur_hash3_32('hello', 'world') |
+-----------------------------------+
|                         984713481 |
+-----------------------------------+

Keywords

MURMUR_HASH3_32,HASH