diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 615f09c9498..bfc93ed7dcf 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 1.8.0b1 +current_version = 1.8.0b2 parse = (?P[\d]+) # major version number \.(?P[\d]+) # minor version number \.(?P[\d]+) # patch version number diff --git a/.changes/1.8.0-b2.md b/.changes/1.8.0-b2.md new file mode 100644 index 00000000000..e69170a41de --- /dev/null +++ b/.changes/1.8.0-b2.md @@ -0,0 +1,53 @@ +## dbt-core 1.8.0-b2 - April 03, 2024 + +### Features + +- Global config for --target and --profile CLI flags and DBT_TARGET and DBT_PROFILE environment variables. ([#7798](https://github.com/dbt-labs/dbt-core/issues/7798)) +- Allow excluding resource types for build, list, and clone commands, and provide env vars ([#9237](https://github.com/dbt-labs/dbt-core/issues/9237)) +- SourceDefinition.meta represents source-level and table-level meta properties, instead of only table-level ([#9766](https://github.com/dbt-labs/dbt-core/issues/9766)) +- Allow metrics in semantic layer filters. ([#9804](https://github.com/dbt-labs/dbt-core/issues/9804)) + +### Fixes + +- fix lock-file bad indentation ([#9319](https://github.com/dbt-labs/dbt-core/issues/9319)) +- Tighten exception handling to avoid worker thread hangs. ([#9583](https://github.com/dbt-labs/dbt-core/issues/9583)) +- Do not add duplicate input_measures ([#9360](https://github.com/dbt-labs/dbt-core/issues/9360)) +- Throw a ParsingError if a primary key constraint is defined on multiple columns or at both the column and model level. ([#9581](https://github.com/dbt-labs/dbt-core/issues/9581)) +- Bug fix: don't parse Jinja in filters for input metrics or measures. ([#9582](https://github.com/dbt-labs/dbt-core/issues/9582)) +- Fix traceback parsing for exceptions raised due to csv fixtures moved into or out of fixture/subfolders. ([#9570](https://github.com/dbt-labs/dbt-core/issues/9570)) +- Fix partial parsing `KeyError` on deleted schema files ([#8860](https://github.com/dbt-labs/dbt-core/issues/8860)) +- Support saved queries in `dbt list` ([#9532](https://github.com/dbt-labs/dbt-core/issues/9532)) +- include sources in catalog.json when over 100 relations selected for catalog generation ([#9755](https://github.com/dbt-labs/dbt-core/issues/9755)) +- Support overriding macros in packages in unit testing ([#9624](https://github.com/dbt-labs/dbt-core/issues/9624)) +- Handle exceptions for failing on-run-* hooks in source freshness ([#9511](https://github.com/dbt-labs/dbt-core/issues/9511)) +- Validation of unit test parsing for incremental models ([#9593](https://github.com/dbt-labs/dbt-core/issues/9593)) +- Fix use of retry command on command using defer ([#9770](https://github.com/dbt-labs/dbt-core/issues/9770)) +- Make `args` variable to be un-modified by `dbt.invoke(args)` ([#8938](https://github.com/dbt-labs/dbt-core/issues/8938), [#9787](https://github.com/dbt-labs/dbt-core/issues/9787)) +- Unit test path outputs ([#9608](https://github.com/dbt-labs/dbt-core/issues/9608)) +- Fix assorted source freshness edgecases so check is run or actionable information is given ([#9078](https://github.com/dbt-labs/dbt-core/issues/9078)) +- "Fix Docker release process to account for both historical and current versions of `dbt-postgres` ([#9827](https://github.com/dbt-labs/dbt-core/issues/9827)) + +### Docs + +- Add analytics for dbt.com ([dbt-docs/#430](https://github.com/dbt-labs/dbt-docs/issues/430)) + +### Under the Hood + +- Remove unused key `wildcard` from MethodName enum ([#9641](https://github.com/dbt-labs/dbt-core/issues/9641)) +- Improve dbt CLI speed ([#4627](https://github.com/dbt-labs/dbt-core/issues/4627)) +- Include node_info in various Result events ([#9619](https://github.com/dbt-labs/dbt-core/issues/9619)) + +### Dependencies + +- Bump actions/upload-artifact from 3 to 4 ([#9470](https://github.com/dbt-labs/dbt-core/pull/9470)) +- Restrict protobuf to 4.* versions ([#9566](https://github.com/dbt-labs/dbt-core/pull/9566)) +- Bump codecov/codecov-action from 3 to 4 ([#9659](https://github.com/dbt-labs/dbt-core/pull/9659)) + +### Contributors +- [@asweet](https://github.com/asweet) ([#9641](https://github.com/dbt-labs/dbt-core/issues/9641)) +- [@b-per](https://github.com/b-per) ([#430](https://github.com/dbt-labs/dbt-core/issues/430)) +- [@barton996](https://github.com/barton996) ([#7798](https://github.com/dbt-labs/dbt-core/issues/7798)) +- [@courtneyholcomb](https://github.com/courtneyholcomb) ([#9804](https://github.com/dbt-labs/dbt-core/issues/9804), [#9582](https://github.com/dbt-labs/dbt-core/issues/9582)) +- [@dwreeves](https://github.com/dwreeves) ([#4627](https://github.com/dbt-labs/dbt-core/issues/4627)) +- [@jx2lee](https://github.com/jx2lee) ([#9319](https://github.com/dbt-labs/dbt-core/issues/9319)) +- [@slothkong](https://github.com/slothkong) ([#9570](https://github.com/dbt-labs/dbt-core/issues/9570)) diff --git a/.changes/unreleased/Dependencies-20240129-005734.yaml b/.changes/1.8.0/Dependencies-20240129-005734.yaml similarity index 100% rename from .changes/unreleased/Dependencies-20240129-005734.yaml rename to .changes/1.8.0/Dependencies-20240129-005734.yaml diff --git a/.changes/unreleased/Dependencies-20240222-102947.yaml b/.changes/1.8.0/Dependencies-20240222-102947.yaml similarity index 100% rename from .changes/unreleased/Dependencies-20240222-102947.yaml rename to .changes/1.8.0/Dependencies-20240222-102947.yaml diff --git a/.changes/unreleased/Dependencies-20240226-004412.yaml b/.changes/1.8.0/Dependencies-20240226-004412.yaml similarity index 100% rename from .changes/unreleased/Dependencies-20240226-004412.yaml rename to .changes/1.8.0/Dependencies-20240226-004412.yaml diff --git a/.changes/unreleased/Docs-20230615-105157.yaml b/.changes/1.8.0/Docs-20230615-105157.yaml similarity index 100% rename from .changes/unreleased/Docs-20230615-105157.yaml rename to .changes/1.8.0/Docs-20230615-105157.yaml diff --git a/.changes/unreleased/Features-20231115-092005.yaml b/.changes/1.8.0/Features-20231115-092005.yaml similarity index 100% rename from .changes/unreleased/Features-20231115-092005.yaml rename to .changes/1.8.0/Features-20231115-092005.yaml diff --git a/.changes/unreleased/Features-20240312-140407.yaml b/.changes/1.8.0/Features-20240312-140407.yaml similarity index 100% rename from .changes/unreleased/Features-20240312-140407.yaml rename to .changes/1.8.0/Features-20240312-140407.yaml diff --git a/.changes/unreleased/Features-20240315-161209.yaml b/.changes/1.8.0/Features-20240315-161209.yaml similarity index 100% rename from .changes/unreleased/Features-20240315-161209.yaml rename to .changes/1.8.0/Features-20240315-161209.yaml diff --git a/.changes/unreleased/Features-20240322-103124.yaml b/.changes/1.8.0/Features-20240322-103124.yaml similarity index 100% rename from .changes/unreleased/Features-20240322-103124.yaml rename to .changes/1.8.0/Features-20240322-103124.yaml diff --git a/.changes/unreleased/Fixes-20240106-003649.yaml b/.changes/1.8.0/Fixes-20240106-003649.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240106-003649.yaml rename to .changes/1.8.0/Fixes-20240106-003649.yaml diff --git a/.changes/unreleased/Fixes-20240216-145632.yaml b/.changes/1.8.0/Fixes-20240216-145632.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240216-145632.yaml rename to .changes/1.8.0/Fixes-20240216-145632.yaml diff --git a/.changes/unreleased/Fixes-20240226-173227.yaml b/.changes/1.8.0/Fixes-20240226-173227.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240226-173227.yaml rename to .changes/1.8.0/Fixes-20240226-173227.yaml diff --git a/.changes/unreleased/Fixes-20240228-135928.yaml b/.changes/1.8.0/Fixes-20240228-135928.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240228-135928.yaml rename to .changes/1.8.0/Fixes-20240228-135928.yaml diff --git a/.changes/unreleased/Fixes-20240229-114207.yaml b/.changes/1.8.0/Fixes-20240229-114207.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240229-114207.yaml rename to .changes/1.8.0/Fixes-20240229-114207.yaml diff --git a/.changes/unreleased/Fixes-20240301-000355.yaml b/.changes/1.8.0/Fixes-20240301-000355.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240301-000355.yaml rename to .changes/1.8.0/Fixes-20240301-000355.yaml diff --git a/.changes/unreleased/Fixes-20240301-135536.yaml b/.changes/1.8.0/Fixes-20240301-135536.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240301-135536.yaml rename to .changes/1.8.0/Fixes-20240301-135536.yaml diff --git a/.changes/unreleased/Fixes-20240307-142459.yaml b/.changes/1.8.0/Fixes-20240307-142459.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240307-142459.yaml rename to .changes/1.8.0/Fixes-20240307-142459.yaml diff --git a/.changes/unreleased/Fixes-20240312-165357.yaml b/.changes/1.8.0/Fixes-20240312-165357.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240312-165357.yaml rename to .changes/1.8.0/Fixes-20240312-165357.yaml diff --git a/.changes/unreleased/Fixes-20240315-145538.yaml b/.changes/1.8.0/Fixes-20240315-145538.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240315-145538.yaml rename to .changes/1.8.0/Fixes-20240315-145538.yaml diff --git a/.changes/unreleased/Fixes-20240316-231152.yaml b/.changes/1.8.0/Fixes-20240316-231152.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240316-231152.yaml rename to .changes/1.8.0/Fixes-20240316-231152.yaml diff --git a/.changes/unreleased/Fixes-20240317-005611.yaml b/.changes/1.8.0/Fixes-20240317-005611.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240317-005611.yaml rename to .changes/1.8.0/Fixes-20240317-005611.yaml diff --git a/.changes/unreleased/Fixes-20240318-153338.yaml b/.changes/1.8.0/Fixes-20240318-153338.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240318-153338.yaml rename to .changes/1.8.0/Fixes-20240318-153338.yaml diff --git a/.changes/unreleased/Fixes-20240323-122018.yaml b/.changes/1.8.0/Fixes-20240323-122018.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240323-122018.yaml rename to .changes/1.8.0/Fixes-20240323-122018.yaml diff --git a/.changes/unreleased/Fixes-20240326-003411.yaml b/.changes/1.8.0/Fixes-20240326-003411.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240326-003411.yaml rename to .changes/1.8.0/Fixes-20240326-003411.yaml diff --git a/.changes/unreleased/Fixes-20240326-162100.yaml b/.changes/1.8.0/Fixes-20240326-162100.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240326-162100.yaml rename to .changes/1.8.0/Fixes-20240326-162100.yaml diff --git a/.changes/unreleased/Fixes-20240327-150013.yaml b/.changes/1.8.0/Fixes-20240327-150013.yaml similarity index 100% rename from .changes/unreleased/Fixes-20240327-150013.yaml rename to .changes/1.8.0/Fixes-20240327-150013.yaml diff --git a/.changes/unreleased/Under the Hood-20240223-092330.yaml b/.changes/1.8.0/Under the Hood-20240223-092330.yaml similarity index 100% rename from .changes/unreleased/Under the Hood-20240223-092330.yaml rename to .changes/1.8.0/Under the Hood-20240223-092330.yaml diff --git a/.changes/unreleased/Under the Hood-20240309-141054.yaml b/.changes/1.8.0/Under the Hood-20240309-141054.yaml similarity index 100% rename from .changes/unreleased/Under the Hood-20240309-141054.yaml rename to .changes/1.8.0/Under the Hood-20240309-141054.yaml diff --git a/.changes/unreleased/Under the Hood-20240325-172059.yaml b/.changes/1.8.0/Under the Hood-20240325-172059.yaml similarity index 100% rename from .changes/unreleased/Under the Hood-20240325-172059.yaml rename to .changes/1.8.0/Under the Hood-20240325-172059.yaml diff --git a/CHANGELOG.md b/CHANGELOG.md index 6eb903c81d2..29682dc6640 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,61 @@ - "Breaking changes" listed under a version may require action from end users or external maintainers when upgrading to that version. - Do not edit this file directly. This file is auto-generated using [changie](https://github.com/miniscruff/changie). For details on how to document a change, see [the contributing guide](https://github.com/dbt-labs/dbt-core/blob/main/CONTRIBUTING.md#adding-changelog-entry) +## dbt-core 1.8.0-b2 - April 03, 2024 + +### Features + +- Global config for --target and --profile CLI flags and DBT_TARGET and DBT_PROFILE environment variables. ([#7798](https://github.com/dbt-labs/dbt-core/issues/7798)) +- Allow excluding resource types for build, list, and clone commands, and provide env vars ([#9237](https://github.com/dbt-labs/dbt-core/issues/9237)) +- SourceDefinition.meta represents source-level and table-level meta properties, instead of only table-level ([#9766](https://github.com/dbt-labs/dbt-core/issues/9766)) +- Allow metrics in semantic layer filters. ([#9804](https://github.com/dbt-labs/dbt-core/issues/9804)) + +### Fixes + +- fix lock-file bad indentation ([#9319](https://github.com/dbt-labs/dbt-core/issues/9319)) +- Tighten exception handling to avoid worker thread hangs. ([#9583](https://github.com/dbt-labs/dbt-core/issues/9583)) +- Do not add duplicate input_measures ([#9360](https://github.com/dbt-labs/dbt-core/issues/9360)) +- Throw a ParsingError if a primary key constraint is defined on multiple columns or at both the column and model level. ([#9581](https://github.com/dbt-labs/dbt-core/issues/9581)) +- Bug fix: don't parse Jinja in filters for input metrics or measures. ([#9582](https://github.com/dbt-labs/dbt-core/issues/9582)) +- Fix traceback parsing for exceptions raised due to csv fixtures moved into or out of fixture/subfolders. ([#9570](https://github.com/dbt-labs/dbt-core/issues/9570)) +- Fix partial parsing `KeyError` on deleted schema files ([#8860](https://github.com/dbt-labs/dbt-core/issues/8860)) +- Support saved queries in `dbt list` ([#9532](https://github.com/dbt-labs/dbt-core/issues/9532)) +- include sources in catalog.json when over 100 relations selected for catalog generation ([#9755](https://github.com/dbt-labs/dbt-core/issues/9755)) +- Support overriding macros in packages in unit testing ([#9624](https://github.com/dbt-labs/dbt-core/issues/9624)) +- Handle exceptions for failing on-run-* hooks in source freshness ([#9511](https://github.com/dbt-labs/dbt-core/issues/9511)) +- Validation of unit test parsing for incremental models ([#9593](https://github.com/dbt-labs/dbt-core/issues/9593)) +- Fix use of retry command on command using defer ([#9770](https://github.com/dbt-labs/dbt-core/issues/9770)) +- Make `args` variable to be un-modified by `dbt.invoke(args)` ([#8938](https://github.com/dbt-labs/dbt-core/issues/8938), [#9787](https://github.com/dbt-labs/dbt-core/issues/9787)) +- Unit test path outputs ([#9608](https://github.com/dbt-labs/dbt-core/issues/9608)) +- Fix assorted source freshness edgecases so check is run or actionable information is given ([#9078](https://github.com/dbt-labs/dbt-core/issues/9078)) +- "Fix Docker release process to account for both historical and current versions of `dbt-postgres` ([#9827](https://github.com/dbt-labs/dbt-core/issues/9827)) + +### Docs + +- Add analytics for dbt.com ([dbt-docs/#430](https://github.com/dbt-labs/dbt-docs/issues/430)) + +### Under the Hood + +- Remove unused key `wildcard` from MethodName enum ([#9641](https://github.com/dbt-labs/dbt-core/issues/9641)) +- Improve dbt CLI speed ([#4627](https://github.com/dbt-labs/dbt-core/issues/4627)) +- Include node_info in various Result events ([#9619](https://github.com/dbt-labs/dbt-core/issues/9619)) + +### Dependencies + +- Bump actions/upload-artifact from 3 to 4 ([#9470](https://github.com/dbt-labs/dbt-core/pull/9470)) +- Restrict protobuf to 4.* versions ([#9566](https://github.com/dbt-labs/dbt-core/pull/9566)) +- Bump codecov/codecov-action from 3 to 4 ([#9659](https://github.com/dbt-labs/dbt-core/pull/9659)) + +### Contributors +- [@asweet](https://github.com/asweet) ([#9641](https://github.com/dbt-labs/dbt-core/issues/9641)) +- [@b-per](https://github.com/b-per) ([#430](https://github.com/dbt-labs/dbt-core/issues/430)) +- [@barton996](https://github.com/barton996) ([#7798](https://github.com/dbt-labs/dbt-core/issues/7798)) +- [@courtneyholcomb](https://github.com/courtneyholcomb) ([#9804](https://github.com/dbt-labs/dbt-core/issues/9804), [#9582](https://github.com/dbt-labs/dbt-core/issues/9582)) +- [@dwreeves](https://github.com/dwreeves) ([#4627](https://github.com/dbt-labs/dbt-core/issues/4627)) +- [@jx2lee](https://github.com/jx2lee) ([#9319](https://github.com/dbt-labs/dbt-core/issues/9319)) +- [@slothkong](https://github.com/slothkong) ([#9570](https://github.com/dbt-labs/dbt-core/issues/9570)) + + ## dbt-core 1.8.0-b1 - February 28, 2024 ### Breaking Changes @@ -193,7 +248,6 @@ - [@tlento](https://github.com/tlento) ([#9012](https://github.com/dbt-labs/dbt-core/pull/9012), [#9671](https://github.com/dbt-labs/dbt-core/pull/9671)) - [@tonayya](https://github.com/tonayya) ([#9252](https://github.com/dbt-labs/dbt-core/issues/9252)) - ## Previous Releases For information on prior major and minor releases, see their changelogs: diff --git a/core/dbt/version.py b/core/dbt/version.py index 516cf78f3a0..13d31eaa632 100644 --- a/core/dbt/version.py +++ b/core/dbt/version.py @@ -229,5 +229,5 @@ def _get_adapter_plugin_names() -> Iterator[str]: yield plugin_name -__version__ = "1.8.0b1" +__version__ = "1.8.0b2" installed = get_installed_version() diff --git a/core/setup.py b/core/setup.py index eef7dae7fe4..f1e1856ca73 100644 --- a/core/setup.py +++ b/core/setup.py @@ -25,7 +25,7 @@ package_name = "dbt-core" -package_version = "1.8.0b1" +package_version = "1.8.0b2" description = """With dbt, data analysts and engineers can build analytics \ the way engineers build applications.""" diff --git a/docker/Dockerfile b/docker/Dockerfile index 3264eb8456e..0466c05aa93 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -14,12 +14,12 @@ ARG build_for=linux/amd64 FROM --platform=$build_for python:3.10.7-slim-bullseye as base # N.B. The refs updated automagically every release via bumpversion -ARG dbt_core_ref=dbt-core@v1.8.0b1 -ARG dbt_postgres_ref=dbt-postgres@v1.8.0b1 -ARG dbt_redshift_ref=dbt-redshift@v1.8.0b1 -ARG dbt_bigquery_ref=dbt-bigquery@v1.8.0b1 -ARG dbt_snowflake_ref=dbt-snowflake@v1.8.0b1 -ARG dbt_spark_ref=dbt-spark@v1.8.0b1 +ARG dbt_core_ref=dbt-core@v1.8.0b2 +ARG dbt_postgres_ref=dbt-postgres@v1.8.0b2 +ARG dbt_redshift_ref=dbt-redshift@v1.8.0b2 +ARG dbt_bigquery_ref=dbt-bigquery@v1.8.0b2 +ARG dbt_snowflake_ref=dbt-snowflake@v1.8.0b2 +ARG dbt_spark_ref=dbt-spark@v1.8.0b2 # special case args ARG dbt_spark_version=all ARG dbt_third_party