No truncation (max length)¶
string_truncation - Column-level - String
Validates that no value is at or beyond the column's maximum length, catching possible truncation.
Parameters¶
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
max_length |
int | none | No | Maximum length before a value is considered truncated. Resolved from the column's own metadata when not set. |
threshold_percent |
float | 0.0 |
No | Fail if the percentage of values at or beyond the maximum length exceeds this. |
YAML example¶
checks:
- name: example_string_truncation
check_type: string_truncation
table_name: schema.table
column_name: example_column
parameters:
threshold_percent: 0.0
See YAML check format for the full field reference.