Skip to main content
Takes one or more input parameters of any data type and returns a 64-bit non-cryptographic hash value. HASH uses the CityHash algorithm for string data types, implementation-specific algorithms for other data types, and the CityHash combinator to produce the resulting hash value. NULL values of any type get the same fixed value. See CITY_HASH if NULL values should produce NULL.

Syntax

Parameters

Return type

BIGINT

Examples

Rows: 1Execution time: 4.85ms

Rows: 1Execution time: 7.10ms