String Max Length Check¶
Check: string-max-length-check
Purpose: Validates that non-null string values in a column do not exceed a defined maximum length. Use this to detect overflow, incorrectly padded, or malformed string data.
Note
Null values are treated as valid and are not evaluated by this check.
Use the inclusive parameter to control boundary behavior:
inclusive: true(default) —len(value) <= max_lengthinclusive: false—len(value) < max_length
Typical Use Cases¶
- Detect padded or overlong string values produced by integration bugs or data entry errors.
- Enforce length constraints aligned with database schema column definitions or UI field limits.
- Identify legacy fields carrying excess content that exceeds the expected value format.