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

Align PK support with Datafold SaaS #446

Merged
merged 5 commits into from
Mar 22, 2023
Merged

Conversation

dlawin
Copy link
Contributor

@dlawin dlawin commented Mar 17, 2023

Resolves #439
Resolves #438

Allows PKs to be set via any of the options here: https://docs.datafold.com/integrations/orchestration/dbt_adv_config#primary-keys

The PK tag remains hardcoded to "primary-key". Not sure if it's useful to make that customizable.

The pk source is logged to debug (also noticed the logger was actually broken so I fixed that)

Moved more of the parser functionality to happen during init so it can be reused

@dlawin dlawin added enhancement New feature or request --dbt Issues/features related to the dbt integration labels Mar 17, 2023
@dlawin dlawin self-assigned this Mar 17, 2023
@dlawin dlawin changed the title WIP Add support for inferring PKs via tests WIP Align PK support with Datafold SaaS Mar 21, 2023
@dlawin dlawin marked this pull request as ready for review March 21, 2023 23:14
@dlawin dlawin changed the title WIP Align PK support with Datafold SaaS Align PK support with Datafold SaaS Mar 21, 2023
@williebsweet williebsweet merged commit c180cb1 into datafold:master Mar 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
--dbt Issues/features related to the dbt integration enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Infer PKs via uniqueness tests Unit test dbt.py _get_diff_vars()
3 participants