From d25adaef1a1b255bb9f3db18b6a54dd367287cdd Mon Sep 17 00:00:00 2001 From: Stacy Lo Date: Thu, 28 Sep 2023 06:00:31 +0800 Subject: [PATCH] Update tutorial-document-your-models.md (#4121) Add customers.customer_id from the previous step ## What are you changing in this pull request and why? 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 - [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 <3880403+runleonarun@users.noreply.github.com> --- website/snippets/tutorial-document-your-models.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/website/snippets/tutorial-document-your-models.md b/website/snippets/tutorial-document-your-models.md index dd9e1592145..9913dbcd1d7 100644 --- a/website/snippets/tutorial-document-your-models.md +++ b/website/snippets/tutorial-document-your-models.md @@ -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 ```