Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CT-3038] Support input sources, create test cases #8507

Closed
Tracked by #8283
gshank opened this issue Aug 28, 2023 · 0 comments
Closed
Tracked by #8283

[CT-3038] Support input sources, create test cases #8507

gshank opened this issue Aug 28, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@gshank
Copy link
Contributor

gshank commented Aug 28, 2023

Description

Currently unit tests can take inputs from models: ref('my_model'). We also want to allow sources as inputs: source('source_dataset', 'source_name'). The big difference between these two things is that dbt builds the relations for models, whereas sources already exist as relations, outside of dbt.

Do we want to use the source as-is? This is probably simplest. It might also be possible to construct an ephemeral model which only contains the columns to be tests.

It's possible that this will require different jinja implementation than the current ephemeral model implementation of input models.

Acceptance Criteria

A unit test can reference a source node and "just work".

Impact to other teams

None

Will backports be required?

No

Context

@github-actions github-actions bot changed the title Support input sources, create test cases [CT-3038] Support input sources, create test cases Aug 28, 2023
@graciegoheen graciegoheen added the enhancement New feature or request label Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants