Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.
This repository was archived by the owner on May 17, 2024. It is now read-only.

Infer PKs via uniqueness tests #439

Closed
@dlawin

Description

@dlawin

Is your feature request related to a problem? Please describe.
Having to tag every PK column with "primary-key" is an annoying amount of setup, especially when it's easy to infer the model's PKs from dbt tests without additional configuration for data-diff

Describe the solution you'd like
Infer the PK column(s) from uniqueness tests when no "primary-key" tag is present

We should consider including the primary key(s) in the output so that an incorrect assumption is more obvious

Metadata

Metadata

Assignees

Labels

--dbtIssues/features related to the dbt integrationenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions