data-diff icon indicating copy to clipboard operation
data-diff copied to clipboard

concat pks not being detected

Open dlawin opened this issue 2 years ago • 0 comments

Describe the bug

models:
- name: [..]
  description: [...] 
  Columns:
[...]
  tests:
    - unique:
        column_name: "id || another_id"

User reports these types of tests are not being detected as keys and they see this message: Skipped due to unknown primary key. Add uniqueness tests, meta, or tags.

Likely a bug in this method: https://github.com/datafold/data-diff/blob/f80dc586b4a4f4844ae99cf0d2c93b831aa33890/data_diff/dbt_parser.py#L428

dlawin avatar Aug 01 '23 22:08 dlawin