Skip to content

Size (min/max, no zero-byte)

binary_size - Column-level - Binary

Validates binary column size against optional minimum and maximum byte bounds.

Parameters

Parameter Type Default Required Description
min_bytes int none No Optional minimum byte length.
max_bytes int none No Optional maximum byte length.
fail_zero_byte bool True No If true, fail when any non-null value has a length of zero.
threshold_percent float 0.0 No Fail if the percentage of violations exceeds this.

YAML example

checks:
  - name: example_binary_size
    check_type: binary_size
    table_name: schema.table
    column_name: example_column
    parameters:
      fail_zero_byte: true
      threshold_percent: 0.0

See YAML check format for the full field reference.