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

--empty run option doesn't work when upstream_prod_enable is TRUE #39

Open
amwidi77 opened this issue Jun 13, 2024 · 0 comments
Open

--empty run option doesn't work when upstream_prod_enable is TRUE #39

amwidi77 opened this issue Jun 13, 2024 · 0 comments

Comments

@amwidi77
Copy link

When running a dbt model with the --empty flag and upstream_prod_enabled: False, dbt generates the sql from the ref() to include where false limit 0 which is what we would expect. However, when running with upstream_prod_enabled: True, the additional where condition is not included.

Ideally, the where condition is still included so we can take advantage of both the upstream_prod and --empty optimizations.

See https://docs.getdbt.com/reference/commands/run#the---empty-flag

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