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

Allow dbt selectors #511

Merged
merged 10 commits into from
May 5, 2023
Merged

Conversation

dave-connors-3
Copy link
Contributor

@dave-connors-3 dave-connors-3 commented Apr 19, 2023

closes: #444

Here's some early thinking on how we might support dbt selection syntax as an arg to data-diff!

In dbt 1.5+ there's a new interface to call out to dbt -- using a dbt ls command under the hood, we can take the argument passed to the new flag --select or -s and return the models that match that selector.

This is absolutely going to fail some tests, so would love a little bit of guidance on which tests to update, and how they might need to change!

@williebsweet williebsweet requested a review from dlawin April 20, 2023 12:26
@dlawin dlawin self-assigned this Apr 28, 2023
@dlawin
Copy link
Contributor

dlawin commented Apr 28, 2023

This is absolutely going to fail some tests, so would love a little bit of guidance on which tests to update, and how they might need to change!

I went ahead and handled the test changes, outside of that I mostly made some stylistic changes and handled a couple exception scenarios.

Really appreciate the contribution @dave-connors-3 , I'm going to tag some team members to review, but I think this is in good shape!

@dlawin dlawin requested review from nolar and pik94 April 28, 2023 23:43
@dlawin dlawin added enhancement New feature or request --dbt Issues/features related to the dbt integration labels Apr 28, 2023
@dlawin dlawin marked this pull request as ready for review April 28, 2023 23:48
Co-authored-by: Sergey Vasilyev <[email protected]>
@dlawin dlawin merged commit ce52e8b into datafold:master May 5, 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.

--dbt --select
3 participants