From ace35159ea6664e78ac9977803d6390dc87ef0ed Mon Sep 17 00:00:00 2001 From: k-ebu <106501664+k-ebu@users.noreply.github.com> Date: Tue, 6 Feb 2024 15:32:45 +0900 Subject: [PATCH 01/11] docs: fix param --- website/docs/reference/resource-properties/freshness.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/reference/resource-properties/freshness.md b/website/docs/reference/resource-properties/freshness.md index 0b017991d68..513544d61c7 100644 --- a/website/docs/reference/resource-properties/freshness.md +++ b/website/docs/reference/resource-properties/freshness.md @@ -95,7 +95,7 @@ loaded_at_field: "CAST(completed_date AS TIMESTAMP)" If using a non-UTC timestamp, cast it to UTC first: ```yml -loaded_at_field: "convert_timezone('UTC', 'Australia/Sydney', created_at_local)" +loaded_at_field: "convert_timezone('Australia/Sydney', 'UTC', created_at_local)" ``` ## count From d89a6b8c04f2b91811e83ca2c7781bc83a6f3811 Mon Sep 17 00:00:00 2001 From: BobClaerhoutTropos <159907492+BobClaerhoutTropos@users.noreply.github.com> Date: Wed, 21 Feb 2024 12:10:13 +0100 Subject: [PATCH 02/11] Update change-way-model-materialized.md --- website/snippets/quickstarts/change-way-model-materialized.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/snippets/quickstarts/change-way-model-materialized.md b/website/snippets/quickstarts/change-way-model-materialized.md index a3933171b9c..7c04c632302 100644 --- a/website/snippets/quickstarts/change-way-model-materialized.md +++ b/website/snippets/quickstarts/change-way-model-materialized.md @@ -19,8 +19,8 @@ By default, everything gets created as a view. You can override that at the dire models: jaffle_shop: +materialized: table - example: - +materialized: view + example: + +materialized: view ``` From 93f5229222087a1780de697daa7272409cf02bfc Mon Sep 17 00:00:00 2001 From: Ernesto Ongaro Date: Wed, 21 Feb 2024 16:01:26 +0000 Subject: [PATCH 03/11] Update Github Actions Versions Was getting this message: Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/ --- website/docs/guides/custom-cicd-pipelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/guides/custom-cicd-pipelines.md b/website/docs/guides/custom-cicd-pipelines.md index 1778098f752..acf751deda1 100644 --- a/website/docs/guides/custom-cicd-pipelines.md +++ b/website/docs/guides/custom-cicd-pipelines.md @@ -261,8 +261,8 @@ jobs: DBT_JOB_BRANCH: ${{ github.ref_name }} steps: - - uses: "actions/checkout@v3" - - uses: "actions/setup-python@v4" + - uses: "actions/checkout@v4" + - uses: "actions/setup-python@v5" with: python-version: "3.9" - name: Run dbt Cloud job From ede1db6bc70fa269c8f8b7bee75a8bce8d9bcd09 Mon Sep 17 00:00:00 2001 From: Tom Molitor <47835001+tmolitor002@users.noreply.github.com> Date: Tue, 5 Mar 2024 23:02:06 -0600 Subject: [PATCH 04/11] Update sqlite-setup.md Added a closed parentheses ")" to the end of the link on line 88 so markdown link would work properly --- website/docs/docs/core/connect-data-platform/sqlite-setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/docs/core/connect-data-platform/sqlite-setup.md b/website/docs/docs/core/connect-data-platform/sqlite-setup.md index 20897ea90d7..c99791db53d 100644 --- a/website/docs/docs/core/connect-data-platform/sqlite-setup.md +++ b/website/docs/docs/core/connect-data-platform/sqlite-setup.md @@ -85,7 +85,7 @@ your_profile_name: - SQLite does not allow views in one schema (i.e. database file) to reference objects in another schema. You'll get this error from SQLite: "view [someview] cannot reference objects in database [somedatabase]". You must set `materialized='table'` in models that reference other schemas. -- Materializations are simplified: they drop and re-create the model, instead of doing the backup-and-swap-in new model that the other dbt database adapters support. This choice was made because SQLite doesn't support `DROP ... CASCADE` or `ALTER VIEW` or provide information about relation dependencies in something information_schema-like. These limitations make it really difficult to make the backup-and-swap-in functionality work properly. Given how SQLite aggressively [locks](https://sqlite.org/lockingv3.html the database anyway, it's probably not worth the effort. +- Materializations are simplified: they drop and re-create the model, instead of doing the backup-and-swap-in new model that the other dbt database adapters support. This choice was made because SQLite doesn't support `DROP ... CASCADE` or `ALTER VIEW` or provide information about relation dependencies in something information_schema-like. These limitations make it really difficult to make the backup-and-swap-in functionality work properly. Given how SQLite aggressively [locks](https://sqlite.org/lockingv3.html) the database anyway, it's probably not worth the effort. ## SQLite Extensions From 64d3d4b55de026e50943561a2953799e714041cf Mon Sep 17 00:00:00 2001 From: Mirna Wong <89008547+mirnawong1@users.noreply.github.com> Date: Thu, 7 Mar 2024 10:43:41 -0500 Subject: [PATCH 05/11] update db from dbt-tutorial to raw this pr updates the quickstarts database example to `raw` and not `dbt-tutorial`, which is the legacy db. this was raised by CS as a user was experiencing errors. https://dbt-labs.slack.com/archives/C02NCQ9483C/p1709805810303419 --- website/snippets/quickstarts/_build-your-first-model.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/snippets/quickstarts/_build-your-first-model.md b/website/snippets/quickstarts/_build-your-first-model.md index c09d16b0b1f..4e447c743cc 100644 --- a/website/snippets/quickstarts/_build-your-first-model.md +++ b/website/snippets/quickstarts/_build-your-first-model.md @@ -18,7 +18,7 @@ with customers as ( first_name, last_name - from `dbt-tutorial`.jaffle_shop.customers + from raw.jaffle_shop.customers ), @@ -30,7 +30,7 @@ orders as ( order_date, status - from `dbt-tutorial`.jaffle_shop.orders + from raw.jaffle_shop.orders ), From f3123920e67bf8532210946c92e4bc9afc24c5de Mon Sep 17 00:00:00 2001 From: Alexander RW <150796684+alexanderrw-lib@users.noreply.github.com> Date: Fri, 8 Mar 2024 16:47:02 +0000 Subject: [PATCH 06/11] Update supported-data-platforms.md There was a mistyped section on the page supported data platforms page. I've added what I _assume_ is the intended sentence, but open to suggestions (or just removing point 6 entirely). --- website/docs/docs/supported-data-platforms.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/docs/docs/supported-data-platforms.md b/website/docs/docs/supported-data-platforms.md index 30afb2e5346..9e80b66dd3d 100644 --- a/website/docs/docs/supported-data-platforms.md +++ b/website/docs/docs/supported-data-platforms.md @@ -30,8 +30,8 @@ There are two types of adapters available today: 1. Does it work? 2. Does anyone "own" the code, or is anyone liable for ensuring it works? 3. Do bugs get fixed quickly? -4. Does it stay up-to-date with new Core features? +4. Does it stay up-to-date with new dbt Core features? 5. Is the usage substantial enough to self-sustain? -pendency on this library? +6. Do you already have a dependency on this library? - \ No newline at end of file + From 5f65223443c84e8168513157239f462e240d0bc0 Mon Sep 17 00:00:00 2001 From: Ly Nguyen Date: Fri, 8 Mar 2024 09:09:52 -0800 Subject: [PATCH 07/11] Fix logos --- website/snippets/_adapters-trusted.md | 24 +++++++++++------------ website/static/img/icons/apache-spark.svg | 1 + website/static/img/icons/postgres.svg | 1 + 3 files changed, 14 insertions(+), 12 deletions(-) create mode 100644 website/static/img/icons/apache-spark.svg create mode 100644 website/static/img/icons/postgres.svg diff --git a/website/snippets/_adapters-trusted.md b/website/snippets/_adapters-trusted.md index ccb98e0138c..fed6cd1d3b9 100644 --- a/website/snippets/_adapters-trusted.md +++ b/website/snippets/_adapters-trusted.md @@ -11,6 +11,17 @@ padding: 0rem 0.75rem; display:inline-block'>dbt Core" icon="alloydb"/> + + + icon="postgres"/> dbt Core" icon="snowflake"/> - - \ No newline at end of file diff --git a/website/static/img/icons/postgres.svg b/website/static/img/icons/postgres.svg new file mode 100644 index 00000000000..9fa5c4d5d22 --- /dev/null +++ b/website/static/img/icons/postgres.svg @@ -0,0 +1 @@ + \ No newline at end of file From aa2e47aead55a2f50006226b644ba1a13c67aa20 Mon Sep 17 00:00:00 2001 From: Alexander RW <150796684+alexanderrw-lib@users.noreply.github.com> Date: Fri, 8 Mar 2024 17:30:51 +0000 Subject: [PATCH 08/11] Update website/docs/docs/supported-data-platforms.md Co-authored-by: Anders --- website/docs/docs/supported-data-platforms.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/docs/supported-data-platforms.md b/website/docs/docs/supported-data-platforms.md index 9e80b66dd3d..cc2f661eb6d 100644 --- a/website/docs/docs/supported-data-platforms.md +++ b/website/docs/docs/supported-data-platforms.md @@ -32,6 +32,6 @@ There are two types of adapters available today: 3. Do bugs get fixed quickly? 4. Does it stay up-to-date with new dbt Core features? 5. Is the usage substantial enough to self-sustain? -6. Do you already have a dependency on this library? +6. Do other well-known well-adopted projects already depend on this library? From b393d920bc0fde926125624bed404c6420b75e92 Mon Sep 17 00:00:00 2001 From: Mirna Wong <89008547+mirnawong1@users.noreply.github.com> Date: Fri, 8 Mar 2024 13:03:33 -0500 Subject: [PATCH 09/11] Update website/docs/docs/supported-data-platforms.md --- website/docs/docs/supported-data-platforms.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/docs/supported-data-platforms.md b/website/docs/docs/supported-data-platforms.md index cc2f661eb6d..2d9bbefc2f4 100644 --- a/website/docs/docs/supported-data-platforms.md +++ b/website/docs/docs/supported-data-platforms.md @@ -32,6 +32,6 @@ There are two types of adapters available today: 3. Do bugs get fixed quickly? 4. Does it stay up-to-date with new dbt Core features? 5. Is the usage substantial enough to self-sustain? -6. Do other well-known well-adopted projects already depend on this library? +6. Do other known projects depend on this library? From 4baa2e2c827b98ec9d1b2646bfba91e672c8bc97 Mon Sep 17 00:00:00 2001 From: Ly Nguyen Date: Fri, 8 Mar 2024 10:06:59 -0800 Subject: [PATCH 10/11] Add for dark mode --- website/static/img/icons/white/apache-spark.svg | 1 + website/static/img/icons/white/postgres.svg | 1 + 2 files changed, 2 insertions(+) create mode 100644 website/static/img/icons/white/apache-spark.svg create mode 100644 website/static/img/icons/white/postgres.svg diff --git a/website/static/img/icons/white/apache-spark.svg b/website/static/img/icons/white/apache-spark.svg new file mode 100644 index 00000000000..30ba2b1823b --- /dev/null +++ b/website/static/img/icons/white/apache-spark.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/website/static/img/icons/white/postgres.svg b/website/static/img/icons/white/postgres.svg new file mode 100644 index 00000000000..9fa5c4d5d22 --- /dev/null +++ b/website/static/img/icons/white/postgres.svg @@ -0,0 +1 @@ + \ No newline at end of file From 225be9c2339d461f6bb13f3c798fea6fdb43dd68 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Fri, 8 Mar 2024 18:25:57 -0500 Subject: [PATCH 11/11] Handle `v` keyword argument for model versions --- website/docs/reference/dbt-jinja-functions/builtins.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/reference/dbt-jinja-functions/builtins.md b/website/docs/reference/dbt-jinja-functions/builtins.md index 7d970b9d5e1..a5538b27ac8 100644 --- a/website/docs/reference/dbt-jinja-functions/builtins.md +++ b/website/docs/reference/dbt-jinja-functions/builtins.md @@ -31,7 +31,7 @@ From dbt v1.5 and higher, use the following macro to extract user-provided argum ``` {% macro ref() %} -- extract user-provided positional and keyword arguments - {% set version = kwargs.get('version') %} + {% set version = kwargs.get('version') or kwargs.get('v') %} {% set packagename = none %} {%- if (varargs | length) == 1 -%} {% set modelname = varargs[0] %}