Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 690 Bytes

not_empty_string.md

File metadata and controls

26 lines (22 loc) · 690 Bytes

not_empty_string (source)

Asserts that a column does not have any values equal to ''.

Usage:

 models:
  - name: model_name
    columns:
      - name: column_name
        tests:
          - dbt_utils.not_empty_string

The macro accepts an optional argument trim_whitespace that controls whether whitespace should be trimmed from the column when evaluating. The default is true.

Usage:

 models:
  - name: model_name
    columns:
      - name: column_name
        tests:
          - dbt_utils.not_empty_string:
              trim_whitespace: false