Skip to content

Commit

Permalink
Update tutorial-document-your-models.md (#4121)
Browse files Browse the repository at this point in the history
Add customers.customer_id from the previous step

## What are you changing in this pull request and why?
<!---
Describe your changes and why you're making them. If linked to an open
issue or a pull request on dbt Core, then link to them here! 

To learn more about the writing conventions used in the dbt Labs docs,
see the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md).
-->

Quickstart for dbt Cloud and BigQuery
Step 12 Add tests to your models
https://docs.getdbt.com/quickstarts/bigquery?step=12
Step 13 Document your models
https://docs.getdbt.com/quickstarts/bigquery?step=13

I found that the schema.yml in step 13 is not consistent with step 12.

There is column:customer_id in step 12 but not step 13. I would like it
to be added to step 13 as well.

```
      - name: customer_id
        tests:
          - not_null
          - relationships:
              to: ref('stg_customers')
              field: customer_id
``` 


## Checklist
<!--
Uncomment if you're publishing docs for a prerelease version of dbt
(delete if not applicable):
- [ ] Add versioning components, as described in [Versioning
Docs](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#versioning-entire-pages)
- [ ] Add a note to the prerelease version [Migration
Guide](https://github.com/dbt-labs/docs.getdbt.com/tree/current/website/docs/guides/migration/versions)
-->
- [x] Review the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md)
and [About
versioning](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#adding-a-new-version)
so my content adheres to these guidelines.
- [ ] Add a checklist item for anything that needs to happen before this
PR is merged, such as "needs technical review" or "change base branch."

Co-authored-by: Leona B. Campbell <[email protected]>
  • Loading branch information
olycats and runleonarun authored Sep 27, 2023
1 parent 6e6cc02 commit d25adae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion website/snippets/tutorial-document-your-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ Adding [documentation](/docs/collaborate/documentation) to your project allows y
tests:
- accepted_values:
values: ['placed', 'shipped', 'completed', 'return_pending', 'returned']

- name: customer_id
tests:
- not_null
- relationships:
to: ref('stg_customers')
field: customer_id
```
</File>
Expand Down

0 comments on commit d25adae

Please sign in to comment.