hash

Description

Accepts a variable number of arguments of arbitrary types and returns a signed 64-bit hash. Never returns null. 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 ... )

Argument

Type

Required

Multiple

Constant

args

variant

Required

Can be multiple

Variable

Examples

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

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