v.25.8New Feature
Add Hash as a new output format
AddedHashas a new output format. It calculates a single hash value for all columns and rows of the result. This is useful for calculating a "fingerprint" of the result, for example, in use cases where data transfer is a bottleneck. Example:SELECT arrayJoin(['abc', 'def']), 42 FORMAT Hashreturnse5f9e676db098fdb9530d2059d8c23ef. #84607 (Robert Schulze).
Why it matters
TheHash output format provides a concise fingerprint of the query output, which is particularly valuable when data transfer is a bottleneck or when verifying result consistency without transferring the full dataset.How to use it
To use theHash output format, append FORMAT Hash at the end of your SELECT query. For example:SELECT arrayJoin(['abc', 'def']), 42 FORMAT HashThis returns a single hash string representing the entire result set.