Skip to main content

partition_hash

Function partition_hash 

Source
pub fn partition_hash(values: &[(u32, Value)]) -> Result<u64>
Expand description

compute_partition_hash_value: the hash of the key of a row of a table that PARTITION BY HASH partitions. Each value that is not null gets the extended hash of its type with the seed HASH_PARTITION_SEED, and hash_combine64 adds it to the hash. A row goes in the partition whose remainder is this hash modulo its modulus.

ยงErrors

42883 for a type with no hash function.