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

Issue with caching when views outside of dbt schemas select from dbt-managed schemas #1119

Closed
drewbanin opened this issue Nov 13, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@drewbanin
Copy link
Contributor

Issue

Issue description

dbt's caching will fail hard on PG/Redshift if there exists a view outside of a dbt-controlled schema that depends on a relation inside of a dbt controlled schema.

Results

InternalException: Cache inconsistency detected: in add_link, dependent link key _ReferenceKey(schema=u'dbt_airflow_events', identifier=u'tracking_l30d') not in cache!

System information

The output of dbt --version:

0.12.0

Steps to reproduce

  1. Create and run an example model
-- models/test_it.sql

select 1 as id
  1. Run the model
dbt run
  1. Create an external dependency on this model
create schema debug;
create view debug.debug as (
  select * from analytics.test_it -- the model created above
)
  1. Run dbt again
# this will fail
dbt run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant