hash

Description

Accepts a variable number of arguments of arbitrary types and returns a signed 64-bit hash of the values.

hash never returns null. hash is not a cryptographic hash function and should not be used as such.

Return type

int64

Domain

This is a scalar function (calculates a single output value for a single input row.)

Categories

Usage

hash(args_1, args_2, ...)

Argument

Type

Optional

Repeatable

Restrictions

args

storable

no

yes

none

Examples

make_col h:hash(@.x, @.y)

Create a column ‘h’ with the result of hashing the columns ‘x’ and ‘y’