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

ref works incorrectly with views #33

Open
gliter opened this issue Nov 28, 2022 · 0 comments
Open

ref works incorrectly with views #33

gliter opened this issue Nov 28, 2022 · 0 comments

Comments

@gliter
Copy link
Collaborator

gliter commented Nov 28, 2022

Views are named with __dbt_tmp suffix

create view joined_data__dbt_tmp /** mode('streaming')*/ as (
    select cs.event_timestamp, cs.user_id, cs.event, trx.source, trx.target, trx.amount, trx.deposit_balance_after_trx, trx.credit_balance_after_trx
from clickstream as cs
join trx as trx
on cs.user_id = trx.user_id
and cs.event_timestamp = trx.event_timestamp
  );"

But {{ ref('joined_data') }} returns just joined_data.

As temporary I will make view do not use __dbt_tmp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant