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

Docs for saving and using state artifacts #4917

Open
1 task done
dbeatty10 opened this issue Feb 14, 2024 · 0 comments
Open
1 task done

Docs for saving and using state artifacts #4917

dbeatty10 opened this issue Feb 14, 2024 · 0 comments
Labels
content Improvements or additions to content dbt Core The changes proposed in this issue relate to dbt Core improvement Use this when an area of the docs needs improvement as it's currently unclear

Comments

@dbeatty10
Copy link
Contributor

dbeatty10 commented Feb 14, 2024

Contributions

  • I have read the contribution docs, and understand what's expected of me.

Request

There should be documentation that describes how to:

  1. save state artifacts, and
  2. use state artifacts.

See below for more detail.

Link to the page on docs.getdbt.com requiring updates

It seems we'll want two things:

  • new page(s)
  • cross-linking to pre-existing pages

What part(s) of the page would you like to see updated?

Instigating context

From @graciegoheen here:

this seems to be the only docs for --state (the deferral docs) - should we have a separate page for the --state flag if it's used by retry and deferral?

Problem to solve

To save a state artifact, we have this (currently) non-global flag:

To use that state artifact, we have the these global flags:

  • --defer
  • --state
  • --defer-state
  • --favor-state

Proposed solution

There should be a page that describes how to:

  1. save state artifacts, and
  2. use state artifacts.

Since most of these are "global" flags this new page should be similar in style and content to these pages:

Example usage

Here's a fancy example of using those flags in combination to make an "n-layer burrito" using ingredients from multiple artifacts.

This is a more complex example than most people will need day-to-day. But it gives at least one example of the flags in combination with each other (including --target!)

Additional information

Related GitHub issues:

@dbeatty10 dbeatty10 added content Improvements or additions to content improvement Use this when an area of the docs needs improvement as it's currently unclear labels Feb 14, 2024
@dbeatty10 dbeatty10 added the dbt Core The changes proposed in this issue relate to dbt Core label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content dbt Core The changes proposed in this issue relate to dbt Core improvement Use this when an area of the docs needs improvement as it's currently unclear
Projects
None yet
Development

No branches or pull requests

1 participant