diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 5b9d96b2e81..14d2db26b64 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 1.3.0b2 +current_version = 1.3.0rc1 parse = (?P\d+) \.(?P\d+) \.(?P\d+) diff --git a/.changes/1.3.0-rc1.md b/.changes/1.3.0-rc1.md new file mode 100644 index 00000000000..a9ee9817345 --- /dev/null +++ b/.changes/1.3.0-rc1.md @@ -0,0 +1,75 @@ +## dbt-core 1.3.0-rc1 - September 28, 2022 + +### Breaking Changes + +- Renaming Metric Spec Attributes ([#5774](https://github.com/dbt-labs/dbt-core/issues/5774), [#5775](https://github.com/dbt-labs/dbt-core/pull/5775)) + +### Features + +- merge_exclude_columns for incremental materialization ([#5260](https://github.com/dbt-labs/dbt-core/issues/5260), [#5457](https://github.com/dbt-labs/dbt-core/pull/5457)) +- Search current working directory for `profiles.yml` ([#5411](https://github.com/dbt-labs/dbt-core/issues/5411), [#5717](https://github.com/dbt-labs/dbt-core/pull/5717)) +- Adding the `window` parameter to the metric spec. ([#5721](https://github.com/dbt-labs/dbt-core/issues/5721), [#5722](https://github.com/dbt-labs/dbt-core/pull/5722)) +- Add invocation args dict to ProviderContext class ([#5524](https://github.com/dbt-labs/dbt-core/issues/5524), [#5782](https://github.com/dbt-labs/dbt-core/pull/5782)) +- Adds new cli framework ([#5526](https://github.com/dbt-labs/dbt-core/issues/5526), [#5647](https://github.com/dbt-labs/dbt-core/pull/5647)) +- Flags work with new Click CLI ([#5529](https://github.com/dbt-labs/dbt-core/issues/5529), [#5790](https://github.com/dbt-labs/dbt-core/pull/5790)) +- Add metadata env method to ProviderContext class ([#5522](https://github.com/dbt-labs/dbt-core/issues/5522), [#5794](https://github.com/dbt-labs/dbt-core/pull/5794)) +- Array macros ([#5520](https://github.com/dbt-labs/dbt-core/issues/5520), [#5823](https://github.com/dbt-labs/dbt-core/pull/5823)) +- Add enabled config to exposures and metrics ([#5422](https://github.com/dbt-labs/dbt-core/issues/5422), [#5815](https://github.com/dbt-labs/dbt-core/pull/5815)) +- add -fr flag shorthand ([#5878](https://github.com/dbt-labs/dbt-core/issues/5878), [#5879](https://github.com/dbt-labs/dbt-core/pull/5879)) +- add type_boolean as a data type macro ([#5739](https://github.com/dbt-labs/dbt-core/issues/5739), [#5875](https://github.com/dbt-labs/dbt-core/pull/5875)) +- Support .dbtignore in project root to ignore certain files being read by dbt ([#5733](https://github.com/dbt-labs/dbt-core/issues/5733), [#5897](https://github.com/dbt-labs/dbt-core/pull/5897)) +- This conditionally no-ops warehouse connection at compile depending on an env var, disabling introspection/queries during compilation only. This is a temporary solution to more complex permissions requirements for the semantic layer. ([#5936](https://github.com/dbt-labs/dbt-core/issues/5936), [#5926](https://github.com/dbt-labs/dbt-core/pull/5926)) + +### Fixes + +- Fix typos of comments in core/dbt/adapters/ ([#5690](https://github.com/dbt-labs/dbt-core/issues/5690), [#5693](https://github.com/dbt-labs/dbt-core/pull/5693)) +- Include py.typed in MANIFEST.in. This enables packages that install dbt-core from pypi to use mypy. ([#5703](https://github.com/dbt-labs/dbt-core/issues/5703), [#5703](https://github.com/dbt-labs/dbt-core/pull/5703)) +- Removal of all .coverage files when using make clean command ([#5633](https://github.com/dbt-labs/dbt-core/issues/5633), [#5759](https://github.com/dbt-labs/dbt-core/pull/5759)) +- Remove temp files generated by unit tests ([#5631](https://github.com/dbt-labs/dbt-core/issues/5631), [#5749](https://github.com/dbt-labs/dbt-core/pull/5749)) +- Fix warnings as errors during tests ([#5424](https://github.com/dbt-labs/dbt-core/issues/5424), [#5800](https://github.com/dbt-labs/dbt-core/pull/5800)) +- Prevent event_history from holding references ([#5848](https://github.com/dbt-labs/dbt-core/issues/5848), [#5858](https://github.com/dbt-labs/dbt-core/pull/5858)) +- ConfigSelectorMethod should check for bools ([#5890](https://github.com/dbt-labs/dbt-core/issues/5890), [#5889](https://github.com/dbt-labs/dbt-core/pull/5889)) +- shorthand for full refresh should be one character ([#5878](https://github.com/dbt-labs/dbt-core/issues/5878), [#5908](https://github.com/dbt-labs/dbt-core/pull/5908)) +- Fix macro resolution order during static analysis for custom generic tests ([#5720](https://github.com/dbt-labs/dbt-core/issues/5720), [#5907](https://github.com/dbt-labs/dbt-core/pull/5907)) +- Fix race condition when invoking dbt via lib.py concurrently ([#5919](https://github.com/dbt-labs/dbt-core/issues/5919), [#5921](https://github.com/dbt-labs/dbt-core/pull/5921)) + +### Docs + +- Refer to exposures by their label by default. ([dbt-docs/#306](https://github.com/dbt-labs/dbt-docs/issues/306), [dbt-docs/#307](https://github.com/dbt-labs/dbt-docs/pull/307)) + +### Under the Hood + +- Migrate integration test 014 but also fix the snapshot hard delete test's timezone logic and force all integration tests to run flags.set_from_args to force environment variables are accessible to all integration test threads. ([#5760](https://github.com/dbt-labs/dbt-core/issues/5760), [#5760](https://github.com/dbt-labs/dbt-core/pull/5760)) +- Support dbt-metrics compilation by rebuilding flat_graph ([#5525](https://github.com/dbt-labs/dbt-core/issues/5525), [#5786](https://github.com/dbt-labs/dbt-core/pull/5786)) +- Reworking the way we define the window attribute of metrics to match freshness tests ([#5722](https://github.com/dbt-labs/dbt-core/issues/5722), [#5793](https://github.com/dbt-labs/dbt-core/pull/5793)) +- Add PythonJobHelper base class in core and add more type checking ([#5802](https://github.com/dbt-labs/dbt-core/issues/5802), [#5802](https://github.com/dbt-labs/dbt-core/pull/5802)) +- The link did not go to the anchor directly, now it does ([#5813](https://github.com/dbt-labs/dbt-core/issues/5813), [#5814](https://github.com/dbt-labs/dbt-core/pull/5814)) +- remove key as reserved keyword from test_bool_or ([#5817](https://github.com/dbt-labs/dbt-core/issues/5817), [#5818](https://github.com/dbt-labs/dbt-core/pull/5818)) +- Convert default selector tests to pytest ([#5728](https://github.com/dbt-labs/dbt-core/issues/5728), [#5820](https://github.com/dbt-labs/dbt-core/pull/5820)) +- Compatibiltiy for metric attribute renaming ([#5807](https://github.com/dbt-labs/dbt-core/issues/5807), [#5825](https://github.com/dbt-labs/dbt-core/pull/5825)) +- remove source quoting setting in adapter tests ([#5836](https://github.com/dbt-labs/dbt-core/issues/5836), [#5839](https://github.com/dbt-labs/dbt-core/pull/5839)) +- Add name validation for metrics ([#5456](https://github.com/dbt-labs/dbt-core/issues/5456), [#5841](https://github.com/dbt-labs/dbt-core/pull/5841)) +- Validate exposure name and add label ([#5606](https://github.com/dbt-labs/dbt-core/issues/5606), [#5844](https://github.com/dbt-labs/dbt-core/pull/5844)) +- Adding validation for metric expression attribute ([#5871](https://github.com/dbt-labs/dbt-core/issues/5871), [#5873](https://github.com/dbt-labs/dbt-core/pull/5873)) +- Profiling and Adapter Management work with Click CLI ([#5531](https://github.com/dbt-labs/dbt-core/issues/5531), [#5892](https://github.com/dbt-labs/dbt-core/pull/5892)) +- Reparse references to deleted metric ([#5444](https://github.com/dbt-labs/dbt-core/issues/5444), [#5920](https://github.com/dbt-labs/dbt-core/pull/5920)) + +### Dependency + +- Bump black from 22.6.0 to 22.8.0 ([#4904](https://github.com/dbt-labs/dbt-core/issues/4904), [#5750](https://github.com/dbt-labs/dbt-core/pull/5750)) +- Bump python from 3.10.6-slim-bullseye to 3.10.7-slim-bullseye in /docker ([#4904](https://github.com/dbt-labs/dbt-core/issues/4904), [#5805](https://github.com/dbt-labs/dbt-core/pull/5805)) + +### Contributors +- [@bbroeksema](https://github.com/bbroeksema) ([#5749](https://github.com/dbt-labs/dbt-core/pull/5749)) +- [@callum-mcdata](https://github.com/callum-mcdata) ([#5775](https://github.com/dbt-labs/dbt-core/pull/5775), [#5722](https://github.com/dbt-labs/dbt-core/pull/5722), [#5793](https://github.com/dbt-labs/dbt-core/pull/5793), [#5825](https://github.com/dbt-labs/dbt-core/pull/5825), [#5873](https://github.com/dbt-labs/dbt-core/pull/5873)) +- [@danielcmessias](https://github.com/danielcmessias) ([#5889](https://github.com/dbt-labs/dbt-core/pull/5889)) +- [@dave-connors-3](https://github.com/dave-connors-3) ([#5457](https://github.com/dbt-labs/dbt-core/pull/5457), [#5879](https://github.com/dbt-labs/dbt-core/pull/5879), [#5908](https://github.com/dbt-labs/dbt-core/pull/5908)) +- [@dbeatty10](https://github.com/dbeatty10) ([#5717](https://github.com/dbt-labs/dbt-core/pull/5717), [#5823](https://github.com/dbt-labs/dbt-core/pull/5823)) +- [@drewbanin](https://github.com/drewbanin) ([#5921](https://github.com/dbt-labs/dbt-core/pull/5921)) +- [@graciegoheen](https://github.com/graciegoheen) ([#5823](https://github.com/dbt-labs/dbt-core/pull/5823)) +- [@jared-rimmer](https://github.com/jared-rimmer) ([#5782](https://github.com/dbt-labs/dbt-core/pull/5782), [#5794](https://github.com/dbt-labs/dbt-core/pull/5794), [#5759](https://github.com/dbt-labs/dbt-core/pull/5759)) +- [@jpmmcneill](https://github.com/jpmmcneill) ([#5875](https://github.com/dbt-labs/dbt-core/pull/5875)) +- [@panasenco](https://github.com/panasenco) ([#5703](https://github.com/dbt-labs/dbt-core/pull/5703)) +- [@racheldaniel](https://github.com/racheldaniel) ([#5926](https://github.com/dbt-labs/dbt-core/pull/5926)) +- [@sdebruyn](https://github.com/sdebruyn) ([#5814](https://github.com/dbt-labs/dbt-core/pull/5814), [#5818](https://github.com/dbt-labs/dbt-core/pull/5818), [#5839](https://github.com/dbt-labs/dbt-core/pull/5839)) +- [@yoiki](https://github.com/yoiki) ([#5693](https://github.com/dbt-labs/dbt-core/pull/5693)) diff --git a/.changes/unreleased/Breaking Changes-20220906-154521.yaml b/.changes/1.3.0/Breaking Changes-20220906-154521.yaml similarity index 100% rename from .changes/unreleased/Breaking Changes-20220906-154521.yaml rename to .changes/1.3.0/Breaking Changes-20220906-154521.yaml diff --git a/.changes/unreleased/Dependency-20220906-134858.yaml b/.changes/1.3.0/Dependency-20220906-134858.yaml similarity index 100% rename from .changes/unreleased/Dependency-20220906-134858.yaml rename to .changes/1.3.0/Dependency-20220906-134858.yaml diff --git a/.changes/unreleased/Dependency-20220912-002253.yaml b/.changes/1.3.0/Dependency-20220912-002253.yaml similarity index 100% rename from .changes/unreleased/Dependency-20220912-002253.yaml rename to .changes/1.3.0/Dependency-20220912-002253.yaml diff --git a/.changes/unreleased/Docs-20220920-152040.yaml b/.changes/1.3.0/Docs-20220920-152040.yaml similarity index 100% rename from .changes/unreleased/Docs-20220920-152040.yaml rename to .changes/1.3.0/Docs-20220920-152040.yaml diff --git a/.changes/unreleased/Features-20220716-142116.yaml b/.changes/1.3.0/Features-20220716-142116.yaml similarity index 100% rename from .changes/unreleased/Features-20220716-142116.yaml rename to .changes/1.3.0/Features-20220716-142116.yaml diff --git a/.changes/unreleased/Features-20220825-195023.yaml b/.changes/1.3.0/Features-20220825-195023.yaml similarity index 100% rename from .changes/unreleased/Features-20220825-195023.yaml rename to .changes/1.3.0/Features-20220825-195023.yaml diff --git a/.changes/unreleased/Features-20220831-121319.yaml b/.changes/1.3.0/Features-20220831-121319.yaml similarity index 100% rename from .changes/unreleased/Features-20220831-121319.yaml rename to .changes/1.3.0/Features-20220831-121319.yaml diff --git a/.changes/unreleased/Features-20220908-081315.yaml b/.changes/1.3.0/Features-20220908-081315.yaml similarity index 100% rename from .changes/unreleased/Features-20220908-081315.yaml rename to .changes/1.3.0/Features-20220908-081315.yaml diff --git a/.changes/unreleased/Features-20220908-104149.yaml b/.changes/1.3.0/Features-20220908-104149.yaml similarity index 100% rename from .changes/unreleased/Features-20220908-104149.yaml rename to .changes/1.3.0/Features-20220908-104149.yaml diff --git a/.changes/unreleased/Features-20220908-123650.yaml b/.changes/1.3.0/Features-20220908-123650.yaml similarity index 100% rename from .changes/unreleased/Features-20220908-123650.yaml rename to .changes/1.3.0/Features-20220908-123650.yaml diff --git a/.changes/unreleased/Features-20220909-204643.yaml b/.changes/1.3.0/Features-20220909-204643.yaml similarity index 100% rename from .changes/unreleased/Features-20220909-204643.yaml rename to .changes/1.3.0/Features-20220909-204643.yaml diff --git a/.changes/unreleased/Features-20220912-222227.yaml b/.changes/1.3.0/Features-20220912-222227.yaml similarity index 100% rename from .changes/unreleased/Features-20220912-222227.yaml rename to .changes/1.3.0/Features-20220912-222227.yaml diff --git a/.changes/unreleased/Features-20220913-095924.yaml b/.changes/1.3.0/Features-20220913-095924.yaml similarity index 100% rename from .changes/unreleased/Features-20220913-095924.yaml rename to .changes/1.3.0/Features-20220913-095924.yaml diff --git a/.changes/unreleased/Features-20220919-112903.yaml b/.changes/1.3.0/Features-20220919-112903.yaml similarity index 100% rename from .changes/unreleased/Features-20220919-112903.yaml rename to .changes/1.3.0/Features-20220919-112903.yaml diff --git a/.changes/unreleased/Features-20220919-231414.yaml b/.changes/1.3.0/Features-20220919-231414.yaml similarity index 100% rename from .changes/unreleased/Features-20220919-231414.yaml rename to .changes/1.3.0/Features-20220919-231414.yaml diff --git a/.changes/unreleased/Features-20220921-145222.yaml b/.changes/1.3.0/Features-20220921-145222.yaml similarity index 100% rename from .changes/unreleased/Features-20220921-145222.yaml rename to .changes/1.3.0/Features-20220921-145222.yaml diff --git a/.changes/unreleased/Features-20220926-130627.yaml b/.changes/1.3.0/Features-20220926-130627.yaml similarity index 100% rename from .changes/unreleased/Features-20220926-130627.yaml rename to .changes/1.3.0/Features-20220926-130627.yaml diff --git a/.changes/unreleased/Fixes-20220822-194238.yaml b/.changes/1.3.0/Fixes-20220822-194238.yaml similarity index 100% rename from .changes/unreleased/Fixes-20220822-194238.yaml rename to .changes/1.3.0/Fixes-20220822-194238.yaml diff --git a/.changes/unreleased/Fixes-20220823-112633.yaml b/.changes/1.3.0/Fixes-20220823-112633.yaml similarity index 100% rename from .changes/unreleased/Fixes-20220823-112633.yaml rename to .changes/1.3.0/Fixes-20220823-112633.yaml diff --git a/.changes/unreleased/Fixes-20220903-155409.yaml b/.changes/1.3.0/Fixes-20220903-155409.yaml similarity index 100% rename from .changes/unreleased/Fixes-20220903-155409.yaml rename to .changes/1.3.0/Fixes-20220903-155409.yaml diff --git a/.changes/unreleased/Fixes-20220909-092832.yaml b/.changes/1.3.0/Fixes-20220909-092832.yaml similarity index 100% rename from .changes/unreleased/Fixes-20220909-092832.yaml rename to .changes/1.3.0/Fixes-20220909-092832.yaml diff --git a/.changes/unreleased/Fixes-20220909-095627.yaml b/.changes/1.3.0/Fixes-20220909-095627.yaml similarity index 100% rename from .changes/unreleased/Fixes-20220909-095627.yaml rename to .changes/1.3.0/Fixes-20220909-095627.yaml diff --git a/.changes/unreleased/Fixes-20220916-091723.yaml b/.changes/1.3.0/Fixes-20220916-091723.yaml similarity index 100% rename from .changes/unreleased/Fixes-20220916-091723.yaml rename to .changes/1.3.0/Fixes-20220916-091723.yaml diff --git a/.changes/unreleased/Fixes-20220920-181856.yaml b/.changes/1.3.0/Fixes-20220920-181856.yaml similarity index 100% rename from .changes/unreleased/Fixes-20220920-181856.yaml rename to .changes/1.3.0/Fixes-20220920-181856.yaml diff --git a/.changes/unreleased/Fixes-20220922-083926.yaml b/.changes/1.3.0/Fixes-20220922-083926.yaml similarity index 100% rename from .changes/unreleased/Fixes-20220922-083926.yaml rename to .changes/1.3.0/Fixes-20220922-083926.yaml diff --git a/.changes/unreleased/Fixes-20220923-143226.yaml b/.changes/1.3.0/Fixes-20220923-143226.yaml similarity index 100% rename from .changes/unreleased/Fixes-20220923-143226.yaml rename to .changes/1.3.0/Fixes-20220923-143226.yaml diff --git a/.changes/unreleased/Fixes-20220923-174504.yaml b/.changes/1.3.0/Fixes-20220923-174504.yaml similarity index 100% rename from .changes/unreleased/Fixes-20220923-174504.yaml rename to .changes/1.3.0/Fixes-20220923-174504.yaml diff --git a/.changes/unreleased/Under the Hood-20220905-001749.yaml b/.changes/1.3.0/Under the Hood-20220905-001749.yaml similarity index 100% rename from .changes/unreleased/Under the Hood-20220905-001749.yaml rename to .changes/1.3.0/Under the Hood-20220905-001749.yaml diff --git a/.changes/unreleased/Under the Hood-20220908-145644.yaml b/.changes/1.3.0/Under the Hood-20220908-145644.yaml similarity index 100% rename from .changes/unreleased/Under the Hood-20220908-145644.yaml rename to .changes/1.3.0/Under the Hood-20220908-145644.yaml diff --git a/.changes/unreleased/Under the Hood-20220908-180731.yaml b/.changes/1.3.0/Under the Hood-20220908-180731.yaml similarity index 100% rename from .changes/unreleased/Under the Hood-20220908-180731.yaml rename to .changes/1.3.0/Under the Hood-20220908-180731.yaml diff --git a/.changes/unreleased/Under the Hood-20220909-115220.yaml b/.changes/1.3.0/Under the Hood-20220909-115220.yaml similarity index 100% rename from .changes/unreleased/Under the Hood-20220909-115220.yaml rename to .changes/1.3.0/Under the Hood-20220909-115220.yaml diff --git a/.changes/unreleased/Under the Hood-20220912-134000.yaml b/.changes/1.3.0/Under the Hood-20220912-134000.yaml similarity index 100% rename from .changes/unreleased/Under the Hood-20220912-134000.yaml rename to .changes/1.3.0/Under the Hood-20220912-134000.yaml diff --git a/.changes/unreleased/Under the Hood-20220912-140035.yaml b/.changes/1.3.0/Under the Hood-20220912-140035.yaml similarity index 100% rename from .changes/unreleased/Under the Hood-20220912-140035.yaml rename to .changes/1.3.0/Under the Hood-20220912-140035.yaml diff --git a/.changes/unreleased/Under the Hood-20220912-190341.yaml b/.changes/1.3.0/Under the Hood-20220912-190341.yaml similarity index 100% rename from .changes/unreleased/Under the Hood-20220912-190341.yaml rename to .changes/1.3.0/Under the Hood-20220912-190341.yaml diff --git a/.changes/unreleased/Under the Hood-20220913-111744.yaml b/.changes/1.3.0/Under the Hood-20220913-111744.yaml similarity index 100% rename from .changes/unreleased/Under the Hood-20220913-111744.yaml rename to .changes/1.3.0/Under the Hood-20220913-111744.yaml diff --git a/.changes/unreleased/Under the Hood-20220914-132632.yaml b/.changes/1.3.0/Under the Hood-20220914-132632.yaml similarity index 100% rename from .changes/unreleased/Under the Hood-20220914-132632.yaml rename to .changes/1.3.0/Under the Hood-20220914-132632.yaml diff --git a/.changes/unreleased/Under the Hood-20220914-150058.yaml b/.changes/1.3.0/Under the Hood-20220914-150058.yaml similarity index 100% rename from .changes/unreleased/Under the Hood-20220914-150058.yaml rename to .changes/1.3.0/Under the Hood-20220914-150058.yaml diff --git a/.changes/unreleased/Under the Hood-20220914-193933.yaml b/.changes/1.3.0/Under the Hood-20220914-193933.yaml similarity index 100% rename from .changes/unreleased/Under the Hood-20220914-193933.yaml rename to .changes/1.3.0/Under the Hood-20220914-193933.yaml diff --git a/.changes/unreleased/Under the Hood-20220916-154712.yaml b/.changes/1.3.0/Under the Hood-20220916-154712.yaml similarity index 100% rename from .changes/unreleased/Under the Hood-20220916-154712.yaml rename to .changes/1.3.0/Under the Hood-20220916-154712.yaml diff --git a/.changes/unreleased/Under the Hood-20220920-144842.yaml b/.changes/1.3.0/Under the Hood-20220920-144842.yaml similarity index 100% rename from .changes/unreleased/Under the Hood-20220920-144842.yaml rename to .changes/1.3.0/Under the Hood-20220920-144842.yaml diff --git a/.changes/unreleased/Under the Hood-20220923-133525.yaml b/.changes/1.3.0/Under the Hood-20220923-133525.yaml similarity index 100% rename from .changes/unreleased/Under the Hood-20220923-133525.yaml rename to .changes/1.3.0/Under the Hood-20220923-133525.yaml diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml index 065e6009080..9dddc037db9 100644 --- a/.github/workflows/version-bump.yml +++ b/.github/workflows/version-bump.yml @@ -46,6 +46,10 @@ jobs: source env/bin/activate pip install --upgrade pip + - name: Add Homebrew to PATH + run: | + echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH + - name: Audit Version and Parse Into Parts id: semver uses: dbt-labs/actions/parse-semver@v1 @@ -70,14 +74,6 @@ jobs: env/bin/bumpversion --allow-dirty --new-version ${{ github.event.inputs.version_number }} major git status - # this step will fail on whitespace errors but also correct them - - name: Format bumpversion file - continue-on-error: true - run: | - brew install pre-commit - pre-commit run trailing-whitespace --files .bumpversion.cfg - git status - - name: Run changie run: | brew tap miniscruff/changie https://github.com/miniscruff/changie @@ -91,6 +87,21 @@ jobs: changie merge git status + # this step will fail on whitespace errors but also correct them + - name: Remove trailing whitespace + continue-on-error: true + run: | + brew install pre-commit + pre-commit run trailing-whitespace --files .bumpversion.cfg CHANGELOG.md .changes/* + git status + + # this step will fail on whitespace errors but also correct them + - name: Removing extra newlines + continue-on-error: true + run: | + pre-commit run end-of-file-fixer --files .bumpversion.cfg CHANGELOG.md .changes/* + git status + - name: Commit version bump to branch uses: EndBug/add-and-commit@v7 with: diff --git a/CHANGELOG.md b/CHANGELOG.md index 929651953fa..b5502735498 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,83 @@ - "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.3.0-rc1 - September 28, 2022 + +### Breaking Changes + +- Renaming Metric Spec Attributes ([#5774](https://github.com/dbt-labs/dbt-core/issues/5774), [#5775](https://github.com/dbt-labs/dbt-core/pull/5775)) + +### Features + +- merge_exclude_columns for incremental materialization ([#5260](https://github.com/dbt-labs/dbt-core/issues/5260), [#5457](https://github.com/dbt-labs/dbt-core/pull/5457)) +- Search current working directory for `profiles.yml` ([#5411](https://github.com/dbt-labs/dbt-core/issues/5411), [#5717](https://github.com/dbt-labs/dbt-core/pull/5717)) +- Adding the `window` parameter to the metric spec. ([#5721](https://github.com/dbt-labs/dbt-core/issues/5721), [#5722](https://github.com/dbt-labs/dbt-core/pull/5722)) +- Add invocation args dict to ProviderContext class ([#5524](https://github.com/dbt-labs/dbt-core/issues/5524), [#5782](https://github.com/dbt-labs/dbt-core/pull/5782)) +- Adds new cli framework ([#5526](https://github.com/dbt-labs/dbt-core/issues/5526), [#5647](https://github.com/dbt-labs/dbt-core/pull/5647)) +- Flags work with new Click CLI ([#5529](https://github.com/dbt-labs/dbt-core/issues/5529), [#5790](https://github.com/dbt-labs/dbt-core/pull/5790)) +- Add metadata env method to ProviderContext class ([#5522](https://github.com/dbt-labs/dbt-core/issues/5522), [#5794](https://github.com/dbt-labs/dbt-core/pull/5794)) +- Array macros ([#5520](https://github.com/dbt-labs/dbt-core/issues/5520), [#5823](https://github.com/dbt-labs/dbt-core/pull/5823)) +- Add enabled config to exposures and metrics ([#5422](https://github.com/dbt-labs/dbt-core/issues/5422), [#5815](https://github.com/dbt-labs/dbt-core/pull/5815)) +- add -fr flag shorthand ([#5878](https://github.com/dbt-labs/dbt-core/issues/5878), [#5879](https://github.com/dbt-labs/dbt-core/pull/5879)) +- add type_boolean as a data type macro ([#5739](https://github.com/dbt-labs/dbt-core/issues/5739), [#5875](https://github.com/dbt-labs/dbt-core/pull/5875)) +- Support .dbtignore in project root to ignore certain files being read by dbt ([#5733](https://github.com/dbt-labs/dbt-core/issues/5733), [#5897](https://github.com/dbt-labs/dbt-core/pull/5897)) +- This conditionally no-ops warehouse connection at compile depending on an env var, disabling introspection/queries during compilation only. This is a temporary solution to more complex permissions requirements for the semantic layer. ([#5936](https://github.com/dbt-labs/dbt-core/issues/5936), [#5926](https://github.com/dbt-labs/dbt-core/pull/5926)) + +### Fixes + +- Fix typos of comments in core/dbt/adapters/ ([#5690](https://github.com/dbt-labs/dbt-core/issues/5690), [#5693](https://github.com/dbt-labs/dbt-core/pull/5693)) +- Include py.typed in MANIFEST.in. This enables packages that install dbt-core from pypi to use mypy. ([#5703](https://github.com/dbt-labs/dbt-core/issues/5703), [#5703](https://github.com/dbt-labs/dbt-core/pull/5703)) +- Removal of all .coverage files when using make clean command ([#5633](https://github.com/dbt-labs/dbt-core/issues/5633), [#5759](https://github.com/dbt-labs/dbt-core/pull/5759)) +- Remove temp files generated by unit tests ([#5631](https://github.com/dbt-labs/dbt-core/issues/5631), [#5749](https://github.com/dbt-labs/dbt-core/pull/5749)) +- Fix warnings as errors during tests ([#5424](https://github.com/dbt-labs/dbt-core/issues/5424), [#5800](https://github.com/dbt-labs/dbt-core/pull/5800)) +- Prevent event_history from holding references ([#5848](https://github.com/dbt-labs/dbt-core/issues/5848), [#5858](https://github.com/dbt-labs/dbt-core/pull/5858)) +- ConfigSelectorMethod should check for bools ([#5890](https://github.com/dbt-labs/dbt-core/issues/5890), [#5889](https://github.com/dbt-labs/dbt-core/pull/5889)) +- shorthand for full refresh should be one character ([#5878](https://github.com/dbt-labs/dbt-core/issues/5878), [#5908](https://github.com/dbt-labs/dbt-core/pull/5908)) +- Fix macro resolution order during static analysis for custom generic tests ([#5720](https://github.com/dbt-labs/dbt-core/issues/5720), [#5907](https://github.com/dbt-labs/dbt-core/pull/5907)) +- Fix race condition when invoking dbt via lib.py concurrently ([#5919](https://github.com/dbt-labs/dbt-core/issues/5919), [#5921](https://github.com/dbt-labs/dbt-core/pull/5921)) + +### Docs + +- Refer to exposures by their label by default. ([dbt-docs/#306](https://github.com/dbt-labs/dbt-docs/issues/306), [dbt-docs/#307](https://github.com/dbt-labs/dbt-docs/pull/307)) + +### Under the Hood + +- Migrate integration test 014 but also fix the snapshot hard delete test's timezone logic and force all integration tests to run flags.set_from_args to force environment variables are accessible to all integration test threads. ([#5760](https://github.com/dbt-labs/dbt-core/issues/5760), [#5760](https://github.com/dbt-labs/dbt-core/pull/5760)) +- Support dbt-metrics compilation by rebuilding flat_graph ([#5525](https://github.com/dbt-labs/dbt-core/issues/5525), [#5786](https://github.com/dbt-labs/dbt-core/pull/5786)) +- Reworking the way we define the window attribute of metrics to match freshness tests ([#5722](https://github.com/dbt-labs/dbt-core/issues/5722), [#5793](https://github.com/dbt-labs/dbt-core/pull/5793)) +- Add PythonJobHelper base class in core and add more type checking ([#5802](https://github.com/dbt-labs/dbt-core/issues/5802), [#5802](https://github.com/dbt-labs/dbt-core/pull/5802)) +- The link did not go to the anchor directly, now it does ([#5813](https://github.com/dbt-labs/dbt-core/issues/5813), [#5814](https://github.com/dbt-labs/dbt-core/pull/5814)) +- remove key as reserved keyword from test_bool_or ([#5817](https://github.com/dbt-labs/dbt-core/issues/5817), [#5818](https://github.com/dbt-labs/dbt-core/pull/5818)) +- Convert default selector tests to pytest ([#5728](https://github.com/dbt-labs/dbt-core/issues/5728), [#5820](https://github.com/dbt-labs/dbt-core/pull/5820)) +- Compatibiltiy for metric attribute renaming ([#5807](https://github.com/dbt-labs/dbt-core/issues/5807), [#5825](https://github.com/dbt-labs/dbt-core/pull/5825)) +- remove source quoting setting in adapter tests ([#5836](https://github.com/dbt-labs/dbt-core/issues/5836), [#5839](https://github.com/dbt-labs/dbt-core/pull/5839)) +- Add name validation for metrics ([#5456](https://github.com/dbt-labs/dbt-core/issues/5456), [#5841](https://github.com/dbt-labs/dbt-core/pull/5841)) +- Validate exposure name and add label ([#5606](https://github.com/dbt-labs/dbt-core/issues/5606), [#5844](https://github.com/dbt-labs/dbt-core/pull/5844)) +- Adding validation for metric expression attribute ([#5871](https://github.com/dbt-labs/dbt-core/issues/5871), [#5873](https://github.com/dbt-labs/dbt-core/pull/5873)) +- Profiling and Adapter Management work with Click CLI ([#5531](https://github.com/dbt-labs/dbt-core/issues/5531), [#5892](https://github.com/dbt-labs/dbt-core/pull/5892)) +- Reparse references to deleted metric ([#5444](https://github.com/dbt-labs/dbt-core/issues/5444), [#5920](https://github.com/dbt-labs/dbt-core/pull/5920)) + +### Dependency + +- Bump black from 22.6.0 to 22.8.0 ([#4904](https://github.com/dbt-labs/dbt-core/issues/4904), [#5750](https://github.com/dbt-labs/dbt-core/pull/5750)) +- Bump python from 3.10.6-slim-bullseye to 3.10.7-slim-bullseye in /docker ([#4904](https://github.com/dbt-labs/dbt-core/issues/4904), [#5805](https://github.com/dbt-labs/dbt-core/pull/5805)) + +### Contributors +- [@bbroeksema](https://github.com/bbroeksema) ([#5749](https://github.com/dbt-labs/dbt-core/pull/5749)) +- [@callum-mcdata](https://github.com/callum-mcdata) ([#5775](https://github.com/dbt-labs/dbt-core/pull/5775), [#5722](https://github.com/dbt-labs/dbt-core/pull/5722), [#5793](https://github.com/dbt-labs/dbt-core/pull/5793), [#5825](https://github.com/dbt-labs/dbt-core/pull/5825), [#5873](https://github.com/dbt-labs/dbt-core/pull/5873)) +- [@danielcmessias](https://github.com/danielcmessias) ([#5889](https://github.com/dbt-labs/dbt-core/pull/5889)) +- [@dave-connors-3](https://github.com/dave-connors-3) ([#5457](https://github.com/dbt-labs/dbt-core/pull/5457), [#5879](https://github.com/dbt-labs/dbt-core/pull/5879), [#5908](https://github.com/dbt-labs/dbt-core/pull/5908)) +- [@dbeatty10](https://github.com/dbeatty10) ([#5717](https://github.com/dbt-labs/dbt-core/pull/5717), [#5823](https://github.com/dbt-labs/dbt-core/pull/5823)) +- [@drewbanin](https://github.com/drewbanin) ([#5921](https://github.com/dbt-labs/dbt-core/pull/5921)) +- [@graciegoheen](https://github.com/graciegoheen) ([#5823](https://github.com/dbt-labs/dbt-core/pull/5823)) +- [@jared-rimmer](https://github.com/jared-rimmer) ([#5782](https://github.com/dbt-labs/dbt-core/pull/5782), [#5794](https://github.com/dbt-labs/dbt-core/pull/5794), [#5759](https://github.com/dbt-labs/dbt-core/pull/5759)) +- [@jpmmcneill](https://github.com/jpmmcneill) ([#5875](https://github.com/dbt-labs/dbt-core/pull/5875)) +- [@panasenco](https://github.com/panasenco) ([#5703](https://github.com/dbt-labs/dbt-core/pull/5703)) +- [@racheldaniel](https://github.com/racheldaniel) ([#5926](https://github.com/dbt-labs/dbt-core/pull/5926)) +- [@sdebruyn](https://github.com/sdebruyn) ([#5814](https://github.com/dbt-labs/dbt-core/pull/5814), [#5818](https://github.com/dbt-labs/dbt-core/pull/5818), [#5839](https://github.com/dbt-labs/dbt-core/pull/5839)) +- [@yoiki](https://github.com/yoiki) ([#5693](https://github.com/dbt-labs/dbt-core/pull/5693)) + + ## dbt-core 1.3.0-b2 - August 29, 2022 ### Features @@ -55,7 +132,6 @@ - [@sungchun12](https://github.com/sungchun12) ([#5397](https://github.com/dbt-labs/dbt-core/pull/5397), [dbt-docs/#281](https://github.com/dbt-labs/dbt-docs/pull/281)) - [@varun-dc](https://github.com/varun-dc) ([#5627](https://github.com/dbt-labs/dbt-core/pull/5627)) - ## dbt-core 1.3.0-b1 - July 29, 2022 ### Features - Python model inital version ([#5261](https://github.com/dbt-labs/dbt-core/issues/5261), [#5421](https://github.com/dbt-labs/dbt-core/pull/5421)) diff --git a/core/dbt/version.py b/core/dbt/version.py index 8eca3ddedb9..2a5fdbbfcb9 100644 --- a/core/dbt/version.py +++ b/core/dbt/version.py @@ -235,5 +235,5 @@ def _get_adapter_plugin_names() -> Iterator[str]: yield plugin_name -__version__ = "1.3.0b2" +__version__ = "1.3.0rc1" installed = get_installed_version() diff --git a/core/setup.py b/core/setup.py index 573252d0c93..b64a5a33056 100644 --- a/core/setup.py +++ b/core/setup.py @@ -25,7 +25,7 @@ package_name = "dbt-core" -package_version = "1.3.0b2" +package_version = "1.3.0rc1" description = """With dbt, data analysts and engineers can build analytics \ the way engineers build applications.""" diff --git a/docker/Dockerfile b/docker/Dockerfile index b29443a79c5..16d67f44699 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -14,12 +14,12 @@ FROM --platform=$build_for python:3.10.7-slim-bullseye as base # N.B. The refs updated automagically every release via bumpversion # N.B. dbt-postgres is currently found in the core codebase so a value of dbt-core@ is correct -ARG dbt_core_ref=dbt-core@v1.3.0b2 -ARG dbt_postgres_ref=dbt-core@v1.3.0b2 -ARG dbt_redshift_ref=dbt-redshift@v1.3.0b2 -ARG dbt_bigquery_ref=dbt-bigquery@v1.3.0b2 -ARG dbt_snowflake_ref=dbt-snowflake@v1.3.0b2 -ARG dbt_spark_ref=dbt-spark@v1.3.0b2 +ARG dbt_core_ref=dbt-core@v1.3.0rc1 +ARG dbt_postgres_ref=dbt-core@v1.3.0rc1 +ARG dbt_redshift_ref=dbt-redshift@v1.3.0rc1 +ARG dbt_bigquery_ref=dbt-bigquery@v1.3.0rc1 +ARG dbt_snowflake_ref=dbt-snowflake@v1.3.0rc1 +ARG dbt_spark_ref=dbt-spark@v1.3.0rc1 # special case args ARG dbt_spark_version=all ARG dbt_third_party diff --git a/plugins/postgres/dbt/adapters/postgres/__version__.py b/plugins/postgres/dbt/adapters/postgres/__version__.py index e2c1a233c0c..8a13e6fd0d1 100644 --- a/plugins/postgres/dbt/adapters/postgres/__version__.py +++ b/plugins/postgres/dbt/adapters/postgres/__version__.py @@ -1 +1 @@ -version = "1.3.0b2" +version = "1.3.0rc1" diff --git a/plugins/postgres/setup.py b/plugins/postgres/setup.py index a5585c01e0e..1a0e5ecc79d 100644 --- a/plugins/postgres/setup.py +++ b/plugins/postgres/setup.py @@ -41,7 +41,7 @@ def _dbt_psycopg2_name(): package_name = "dbt-postgres" -package_version = "1.3.0b2" +package_version = "1.3.0rc1" description = """The postgres adapter plugin for dbt (data build tool)""" this_directory = os.path.abspath(os.path.dirname(__file__)) diff --git a/tests/adapter/dbt/tests/adapter/__version__.py b/tests/adapter/dbt/tests/adapter/__version__.py index e2c1a233c0c..8a13e6fd0d1 100644 --- a/tests/adapter/dbt/tests/adapter/__version__.py +++ b/tests/adapter/dbt/tests/adapter/__version__.py @@ -1 +1 @@ -version = "1.3.0b2" +version = "1.3.0rc1" diff --git a/tests/adapter/setup.py b/tests/adapter/setup.py index b5b5c71b8f2..2d149693fbb 100644 --- a/tests/adapter/setup.py +++ b/tests/adapter/setup.py @@ -20,7 +20,7 @@ package_name = "dbt-tests-adapter" -package_version = "1.3.0b2" +package_version = "1.3.0rc1" description = """The dbt adapter tests for adapter plugins""" this_directory = os.path.abspath(os.path.dirname(__file__))