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

account for target when connect ing via the source hack #10

Open
dave-connors-3 opened this issue Apr 19, 2023 · 0 comments
Open

account for target when connect ing via the source hack #10

dave-connors-3 opened this issue Apr 19, 2023 · 0 comments
Labels
enhancement New feature or request v0 must do

Comments

@dave-connors-3
Copy link
Collaborator

When users declare sources in a downstream project to refer to models in an upstream project, most often the sources are hard coded to the production environment outputs of the upstream project.

For example if fct_orders in project_a is built into the analytics schema when running in production, project_b might have a source that looks like this:

sources:
  - name: src_proj_a
    database: project_a_prod_db
    schema: analytics
    tables:
      - name: fct_orders

The current method of interacting with LocalDbtProjects will simply compile each project with it's default target. If both local projects default to dev, project_a.fct_orders may have metadata that is different than the hardcoded source metadata, causing us to miss the connection.

let's think about how to resolve this!

@dave-connors-3 dave-connors-3 added enhancement New feature or request v0 must do labels Apr 19, 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 v0 must do
Projects
None yet
Development

No branches or pull requests

1 participant