Checksum/hash validation¶
binary_checksum - Column-level - Binary
Validates that a stored checksum or hash matches the value computed from the binary data.
Parameters¶
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
algorithm |
str | 'sha256' |
No | Hash algorithm to use, e.g. sha256 or md5. |
expected_hex_column |
str | none | No | Optional column holding the expected hash, as hex. |
threshold_percent |
float | 0.0 |
No | Fail if the percentage of mismatches exceeds this. |
YAML example¶
checks:
- name: example_binary_checksum
check_type: binary_checksum
table_name: schema.table
column_name: example_column
parameters:
algorithm: sha256
threshold_percent: 0.0
See YAML check format for the full field reference.