Skip to main content
Calculates a hash value over all rows on a list of arguments. When * is specified as an argument - calculates a hash aggregation over all columns in the input. Performing a hash aggregation operation is useful for warming up table data or to check if the same values exist in two different tables. Alias: CHECKSUM

Syntax

Parameters

Return Type

BIGINT

Examples

The following examples use a tournament_information table:

Rows: 3Execution time: 43.36ms

The following example calculates a hash aggregation over all columns of a tournament table:

Rows: 1Execution time: 6.94ms

The following example calculates a hash aggregation over prizedollars and tournamentid only:

Rows: 1Execution time: 6.64ms