From 4ed34f5b82e8879ef6ca785638afa094f85cdd6a Mon Sep 17 00:00:00 2001 From: sachinthakur96 Date: Fri, 10 Nov 2023 16:43:28 +0530 Subject: [PATCH 1/9] Adding version changes version 1.4.0 to 1.6.0 --- website/docs/docs/core/connect-data-platform/vertica-setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/docs/core/connect-data-platform/vertica-setup.md b/website/docs/docs/core/connect-data-platform/vertica-setup.md index fbb8de6b301..45664a6442a 100644 --- a/website/docs/docs/core/connect-data-platform/vertica-setup.md +++ b/website/docs/docs/core/connect-data-platform/vertica-setup.md @@ -6,7 +6,7 @@ meta: authors: 'Vertica (Former authors: Matthew Carter, Andy Regan, Andrew Hedengren)' github_repo: 'vertica/dbt-vertica' pypi_package: 'dbt-vertica' - min_core_version: 'v1.4.0 and newer' + min_core_version: 'v1.6.0 and newer' cloud_support: 'Not Supported' min_supported_version: 'Vertica 12.0.0' slack_channel_name: 'n/a' From 0a3a31bf8053c351afb528d64ee093ff1a1b31e1 Mon Sep 17 00:00:00 2001 From: Anders Swanson Date: Fri, 10 Nov 2023 15:38:21 -0500 Subject: [PATCH 2/9] Glue is trusted --- website/snippets/_adapters-trusted.md | 5 +++++ website/static/img/icons/glue.svg | 28 +++++++++++++++++++++++++ website/static/img/icons/white/glue.svg | 28 +++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 website/static/img/icons/glue.svg create mode 100644 website/static/img/icons/white/glue.svg diff --git a/website/snippets/_adapters-trusted.md b/website/snippets/_adapters-trusted.md index 7747ce16dec..f87e8dc509a 100644 --- a/website/snippets/_adapters-trusted.md +++ b/website/snippets/_adapters-trusted.md @@ -5,6 +5,11 @@ body="Install with dbt Core

" icon="athena"/> + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/website/static/img/icons/white/glue.svg b/website/static/img/icons/white/glue.svg new file mode 100644 index 00000000000..70150f9a54a --- /dev/null +++ b/website/static/img/icons/white/glue.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From 14267df83b0c7dd0459c42488b797ccdf8a4ff57 Mon Sep 17 00:00:00 2001 From: Anders Swanson Date: Wed, 15 Nov 2023 15:11:48 -0800 Subject: [PATCH 3/9] purple is correct logo --- website/static/img/icons/glue.svg | 52 ++++++++++++------------- website/static/img/icons/white/glue.svg | 52 ++++++++++++------------- 2 files changed, 50 insertions(+), 54 deletions(-) diff --git a/website/static/img/icons/glue.svg b/website/static/img/icons/glue.svg index 70150f9a54a..a120fc03b3b 100644 --- a/website/static/img/icons/glue.svg +++ b/website/static/img/icons/glue.svg @@ -1,28 +1,26 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + -icon-color + + + + + + + + \ No newline at end of file diff --git a/website/static/img/icons/white/glue.svg b/website/static/img/icons/white/glue.svg index 70150f9a54a..a120fc03b3b 100644 --- a/website/static/img/icons/white/glue.svg +++ b/website/static/img/icons/white/glue.svg @@ -1,28 +1,26 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + -icon-color + + + + + + + + \ No newline at end of file From dc4ede217806b3153d10b676567d7f97209b58ba Mon Sep 17 00:00:00 2001 From: Anders Date: Wed, 15 Nov 2023 15:15:22 -0800 Subject: [PATCH 4/9] Apply suggestions from code review Co-authored-by: mirnawong1 <89008547+mirnawong1@users.noreply.github.com> --- website/snippets/_adapters-trusted.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/snippets/_adapters-trusted.md b/website/snippets/_adapters-trusted.md index f87e8dc509a..d2d1beb8d6a 100644 --- a/website/snippets/_adapters-trusted.md +++ b/website/snippets/_adapters-trusted.md @@ -7,7 +7,7 @@ Date: Thu, 16 Nov 2023 09:48:06 +0000 Subject: [PATCH 5/9] Update _adapters-trusted.md remove asterisks --- website/snippets/_adapters-trusted.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/snippets/_adapters-trusted.md b/website/snippets/_adapters-trusted.md index d2d1beb8d6a..20984253c32 100644 --- a/website/snippets/_adapters-trusted.md +++ b/website/snippets/_adapters-trusted.md @@ -1,23 +1,23 @@
From deeb20614d2a2b28aa0a4036a830bf998c4e0c23 Mon Sep 17 00:00:00 2001 From: mirnawong1 Date: Thu, 16 Nov 2023 09:59:23 +0000 Subject: [PATCH 6/9] remove asterisks --- website/docs/docs/supported-data-platforms.md | 3 --- website/docs/docs/trusted-adapters.md | 4 ++-- website/snippets/_adapters-verified.md | 6 +++--- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/website/docs/docs/supported-data-platforms.md b/website/docs/docs/supported-data-platforms.md index c0c9a30db36..079e2018982 100644 --- a/website/docs/docs/supported-data-platforms.md +++ b/website/docs/docs/supported-data-platforms.md @@ -41,6 +41,3 @@ The following are **Trusted adapters** ✓ you can connect to in dbt Core: import AdaptersTrusted from '/snippets/_adapters-trusted.md'; - -
* Install these adapters using dbt Core as they're not currently supported in dbt Cloud.
- diff --git a/website/docs/docs/trusted-adapters.md b/website/docs/docs/trusted-adapters.md index 20d61f69575..7b7af7d0790 100644 --- a/website/docs/docs/trusted-adapters.md +++ b/website/docs/docs/trusted-adapters.md @@ -25,12 +25,12 @@ Refer to the [Build, test, document, and promote adapters](/guides/adapter-creat ### Trusted vs Verified -The Verification program exists to highlight adapters that meets both of the following criteria: +The Verification program exists to highlight adapters that meet both of the following criteria: - the guidelines given in the Trusted program, - formal agreements required for integration with dbt Cloud -For more information on the Verified Adapter program, reach out the [dbt Labs partnerships team](mailto:partnerships@dbtlabs.com) +For more information on the Verified Adapter program, reach out to the [dbt Labs partnerships team](mailto:partnerships@dbtlabs.com) ### Trusted adapters diff --git a/website/snippets/_adapters-verified.md b/website/snippets/_adapters-verified.md index ebb91cb4544..b9a71c67c36 100644 --- a/website/snippets/_adapters-verified.md +++ b/website/snippets/_adapters-verified.md @@ -15,7 +15,7 @@ icon="databricks"/> @@ -49,11 +49,11 @@ body="Set up in dbt Cloud
Install with dbt Core

" icon="fabric"/> From 65ec48281e4863c5c0535318525e674398590369 Mon Sep 17 00:00:00 2001 From: mirnawong1 Date: Fri, 17 Nov 2023 11:03:53 +0000 Subject: [PATCH 7/9] explicitly add commands --- .../docs/collaborate/govern/model-versions.md | 26 +++++++++++++++++++ .../resource-properties/latest_version.md | 2 ++ .../reference/resource-properties/versions.md | 3 +++ 3 files changed, 31 insertions(+) diff --git a/website/docs/docs/collaborate/govern/model-versions.md b/website/docs/docs/collaborate/govern/model-versions.md index 49ed65f9a36..a8083d4c551 100644 --- a/website/docs/docs/collaborate/govern/model-versions.md +++ b/website/docs/docs/collaborate/govern/model-versions.md @@ -393,6 +393,32 @@ dbt.exceptions.AmbiguousAliasError: Compilation Error We opted to use `generate_alias_name` for this functionality so that the logic remains accessible to end users, and could be reimplemented with custom logic. ::: +### Run a model with multiple versions + +To run a model with multiple versions, you can use the [`--select` flag](/reference/node-selection/syntax). For example: + +- Run all versions of `dim_customers`: + + ```bash + dbt run -s dim_customers # Run all versions of the model + ``` +- Run only version 2 of `dim_customers`: + + You can use either of the following commands (both achieve the same result): + + ```bash + dbt run -s dim_customers.v2 # Run a specific version of the model + dbt run -s dim_customers_v2 # Alternative syntax for the specific version + ``` + +- Run the latest version of `dim_customers`: + + ```bash + dbt run -s dim_customers version:latest # Run the latest version of the model + ``` + +These commands provide flexibility in managing and executing different versions of a dbt model. + ### Optimizing model versions How you define each model version is completely up to you. While it's easy to start by copy-pasting from one model's SQL definition into another, you should think about _what actually is changing_ from one version to another. diff --git a/website/docs/reference/resource-properties/latest_version.md b/website/docs/reference/resource-properties/latest_version.md index 4c531879598..567ea5e7e1f 100644 --- a/website/docs/reference/resource-properties/latest_version.md +++ b/website/docs/reference/resource-properties/latest_version.md @@ -25,6 +25,8 @@ The latest version of this model. The "latest" version is relevant for: This value can be a string or a numeric (integer or float) value. It must be one of the [version identifiers](/reference/resource-properties/versions#v) specified in this model's list of `versions`. +To run the latest version of a model, you can use the [`--select` flag](/reference/node-selection/syntax). Refer to [Model versions](/docs/collaborate/govern/model-versions#run-a-model-with-multiple-versions) for more information and syntax. + ## Default If not specified for a versioned model, `latest_version` defaults to the largest [version identifier](/reference/resource-properties/versions#v): numerically greatest (if all version identifiers are numeric), otherwise the alphabetically last (if they are strings). diff --git a/website/docs/reference/resource-properties/versions.md b/website/docs/reference/resource-properties/versions.md index 86e9abf34a8..5dba70c6e6e 100644 --- a/website/docs/reference/resource-properties/versions.md +++ b/website/docs/reference/resource-properties/versions.md @@ -43,6 +43,9 @@ The value of the version identifier is used to order versions of a model relativ In general, we recommend that you use a simple "major versioning" scheme for your models: `1`, `2`, `3`, and so on, where each version reflects a breaking change from previous versions. You are able to use other versioning schemes. dbt will sort your version identifiers alphabetically if the values are not all numeric. You should **not** include the letter `v` in the version identifier, as dbt will do that for you. +To run a model with multiple versions, you can use the [`--select` flag](/reference/node-selection/syntax). Refer to [Model versions](/docs/collaborate/govern/model-versions#run-a-model-with-multiple-version) for more information and syntax. + + ### `defined_in` The name of the model file (excluding the file extension, e.g. `.sql` or `.py`) where the model version is defined. From 53a48933d4b1cf8f23aa4a2bc939b25de86b9486 Mon Sep 17 00:00:00 2001 From: mirnawong1 Date: Fri, 17 Nov 2023 11:06:15 +0000 Subject: [PATCH 8/9] full flag --- website/docs/docs/collaborate/govern/model-versions.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/docs/docs/collaborate/govern/model-versions.md b/website/docs/docs/collaborate/govern/model-versions.md index a8083d4c551..2a79e2f46e7 100644 --- a/website/docs/docs/collaborate/govern/model-versions.md +++ b/website/docs/docs/collaborate/govern/model-versions.md @@ -400,18 +400,18 @@ To run a model with multiple versions, you can use the [`--select` flag](/refere - Run all versions of `dim_customers`: ```bash - dbt run -s dim_customers # Run all versions of the model + dbt run --select dim_customers # Run all versions of the model ``` - Run only version 2 of `dim_customers`: You can use either of the following commands (both achieve the same result): ```bash - dbt run -s dim_customers.v2 # Run a specific version of the model - dbt run -s dim_customers_v2 # Alternative syntax for the specific version + dbt run --select dim_customers.v2 # Run a specific version of the model + dbt run --select dim_customers_v2 # Alternative syntax for the specific version ``` -- Run the latest version of `dim_customers`: +- Run the latest version of `dim_customers` using the `--select` flag shorthand: ```bash dbt run -s dim_customers version:latest # Run the latest version of the model From 4b8e6b6dda33480598a1a821d3dbb70ae7a36371 Mon Sep 17 00:00:00 2001 From: sachinthakur96 Date: Fri, 17 Nov 2023 18:17:17 +0530 Subject: [PATCH 9/9] Adding --- website/docs/docs/core/connect-data-platform/vertica-setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/docs/core/connect-data-platform/vertica-setup.md b/website/docs/docs/core/connect-data-platform/vertica-setup.md index 45664a6442a..9274c22ebbe 100644 --- a/website/docs/docs/core/connect-data-platform/vertica-setup.md +++ b/website/docs/docs/core/connect-data-platform/vertica-setup.md @@ -8,7 +8,7 @@ meta: pypi_package: 'dbt-vertica' min_core_version: 'v1.6.0 and newer' cloud_support: 'Not Supported' - min_supported_version: 'Vertica 12.0.0' + min_supported_version: 'Vertica 23.4.0' slack_channel_name: 'n/a' slack_channel_link: 'https://www.getdbt.com/community/' platform_name: 'Vertica'