Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 485 Bytes

cardinality_equality.md

File metadata and controls

16 lines (13 loc) · 485 Bytes

cardinality_equality (source)

Asserts that values in a given column have exactly the same cardinality as values from a different column in a different model.

Usage:

 models:
  - name: model_name
    columns:
      - name: from_column
        tests:
          - dbt_utils.cardinality_equality:
              field: other_column_name
              to: ref('other_model_name')