-
Notifications
You must be signed in to change notification settings - Fork 950
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
The --empty
flag
#4966
The --empty
flag
#4966
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
||
### The `--empty` flag | ||
|
||
The [`run`](/reference/commands/run#the-`--empty`-flag) and [`build`](/reference/commands/run#the-`--empty`-flag) commands now support the `--empty` flag for building schema-only dry runs. The `--empty` flag limits the refs and sources to zero rows. dbt will build the project and models, parse the files to identify changes, but won't actually execute the SQL against the target data warehouse. This ensures your models will build properly and validates dependencies. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dbt will build the project and models, parse the files to identify changes, but won't actually execute the SQL against the target data warehouse.
I don't think this is technically correct. Perhaps:
"dbt will still execute the model SQL against the target data warehouse, but will avoid expensive reads of input data. This ensures your models will build properly and validates dependencies."
website/docs/docs/dbt-versions/core-upgrade/01-upgrading-to-v1.8.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm and since it's approved already, only non blocker that i think will be helpful for users is adding a 'why is this useful or important in the 'build' and 'run' pages:
This validates dependencies and ensures your models will build properly. Using the
--empty
flag enhances performance and helps with warehouse costs (not sure if that's right?)
website/docs/docs/dbt-versions/core-upgrade/01-upgrading-to-v1.8.md
Outdated
Show resolved
Hide resolved
….8.md Co-authored-by: Mirna Wong <[email protected]>
What are you changing in this pull request and why?
Updates the
run
andbuild
command references to include the--empty
flag.Checklist
Uncomment when publishing docs for a prerelease version of dbt:
Add versioning components, as described in Versioning Docs
Add a note to the prerelease version Migration Guide
Review the Content style guide so my content adheres to these guidelines.
For docs versioning, review how to version a whole page and version a block of content.