Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 5, 2021

Bumps dbt from 0.17.2 to 0.21.0.

Release notes

Sourced from dbt's releases.

dbt 0.21.0

dbt Core 0.21.0 - Louis Kahn (October 4, 2021)

Breaking changes

  • Rename source freshness command, add full node selection, and align selection syntax with other tasks (#2987, #3554)
    • dbt source snapshot-freshness -> dbt source freshness (backwards compatible)
    • dbt source freshness --select source_name --> dbt source freshness --select source:source_name (not backwards compatible)
  • dbt-snowflake: Disable most transactional logic. See note below for details.

Features

  • Add dbt build command to run models, tests, seeds, and snapshots in DAG order. (#2743, #3490, #3608)
    • Skip downstream nodes during the build task when a test fails. (#3597, #3792)
    • Update cli and rpc flags for the build task to align with other commands (--resource-type, --store-failures) (#3596, #3884)
  • Introduce on_schema_change config to detect and handle schema changes on incremental models (#1132, #3387)
  • Capture changes to macros in state:modified. Introduce new state: sub-selectors: modified.body, modified.configs, modified.persisted_descriptions, modified.relation, modified.macros (#2704, #3278, #3559)
  • Enable setting configs in schema files for models, seeds, snapshots, analyses, tests (#2401, #3616)
  • Make --models and --select synonyms, except for ls (to preserve existing behavior) (#3210, #3791)
  • Customize ls task JSON output by adding new flag --output-keys (#3778, #3395)
  • Added default field in the selectors.yml to allow user to define default selector (#3448, #3875, #3892)
  • Log tests that are not indirectly selected. Add --greedy flag to test, list, build and greedy property in yaml selectors (#3723, #3833)
  • Scrub environment secrets prefixed with DBT_ENV_SECRET_ from logs and console output (#3440, #3617)

Artifacts

  • Added timing and thread information to sources.json artifact (#3804, #3894)
  • Bump artifact schema versions for 0.21.0 (#3945)

Fixes

  • Fix type coercion issues when fetching query result sets (#2984, #3499)
  • Handle whitespace after a plus sign on the project config (#3526)
  • Fix table and view materialization issue when switching from one to the other (#2161), #3547)
  • Avoid caching schemas for tests when store_failures is not enabled (#3715, #3716)
  • dbt debug shows a summary of whether all checks passed or not (#3831, #3832)
  • Fix bug with initializing a dataclass that inherits from typing.Protocol, specifically for dbt.config.profile.Profile (#3843, #3855)
  • Introduce a macro, get_where_subquery, for tests that use where config. Alias filtering subquery as dbt_subquery instead of resource identifier (#3857, #3859)
  • Use group by column_name in accepted_values test for compatibility with most database engines (#3905, #3906)
  • Avoid infinite recursion in state:modified.macros check (#3904, #3957)
  • Cast log messages to strings before scrubbing of prefixed env vars (#3971, #3972)

Under the hood

  • Improve default view and table materialization performance by checking relational cache before attempting to drop temp relations (#3112, #3468)
  • Move the example project used by dbt init into dbt repository, to avoid cloning an external repo (#3005, #3474, #3536)
  • Better interaction between dbt init and adapters. Avoid raising errors while initializing a project (#2814, #3483)
  • Update create_adapter_plugins script to include latest accessories, and stay up to date with latest dbt-core version (#3002, #3509)

... (truncated)

Changelog

Sourced from dbt's changelog.

dbt 0.21.0 (Release TBD)

Fixes

  • Fix batching for large seeds on Snowflake (#3941, #3942)
  • Avoid infinite recursion in state:modified.macros check (#3904, #3957)
  • Cast log messages to strings before scrubbing of prefixed env vars (#3971, #3972)

Under the hood

  • Bump artifact schema versions for 0.21.0 (#3945)

dbt 0.21.0rc1 (September 20, 2021)

Features

  • Experimental parser now detects macro overrides of ref, source, and config builtins. (#3581, #3582)
  • Add connect_timeout profile configuration for Postgres and Redshift adapters. (#3581, #3582)
  • Enhance BigQuery copy materialization (#3570, #3606):
    • to simplify config (default usage of copy_materialization='table' if is is not found in global or local config)
    • to let copy several source tables into single target table at a time. (Google doc reference)
  • Customize ls task JSON output by adding new flag --output-keys (#3778, #3395)
  • Add support for execution project on BigQuery through profile configuration (#3707, #3708)
  • Skip downstream nodes during the build task when a test fails. (#3597, #3792)
  • Added default field in the selectors.yml to allow user to define default selector (#3448, #3875, #3892)
  • Added timing and thread information to sources.json artifact (#3804, #3894)
  • Update cli and rpc flags for the build task to align with other commands (--resource-type, --store-failures) (#3596, #3884)
  • Log tests that are not indirectly selected. Add --greedy flag to test, list, build and greedy property in yaml selectors (#3723, #3833)

Fixes

  • Support BigQuery-specific aliases target_dataset and target_project in snapshot configs (#3694, #3834)
  • dbt debug shows a summary of whether all checks passed or not (#3831, #3832)
  • Fix issue when running the deps task after the list task in the RPC server (#3846, #3848, #3850)
  • Fix bug with initializing a dataclass that inherits from typing.Protocol, specifically for dbt.config.profile.Profile (#3843, #3855)
  • Introduce a macro, get_where_subquery, for tests that use where config. Alias filtering subquery as dbt_subquery instead of resource identifier (#3857, #3859)
  • Use group by column_name in accepted_values test for compatibility with most database engines (#3905, #3906)
  • Separated table vs view configuration for BigQuery since some configuration is not possible to set for tables vs views. (#3682, #3691)

Under the hood

  • Use GitHub Actions for CI (#3688, #3669)
  • Better dbt hub registry packages version logging that prompts the user for upgrades to relevant packages (#3560, #3763, #3759)
  • Allow the default seed macro's SQL parameter, %s, to be replaced by dispatching a new macro, get_binding_char(). This enables adapters with parameter marker characters such as ? to not have to override basic_load_csv_rows. (#3622, #3623)
  • Alert users on package rename (hub.getdbt.com#180, #3825)
  • Add adapter_unique_id to invocation context in anonymous usage tracking, to better understand dbt adoption (#3713, #3796)
  • Specify macro_namespace = 'dbt' for all dispatched macros in the global project, making it possible to dispatch to macro implementations defined in packages. Dispatch generate_schema_name and generate_alias_name (#3456, #3851)
  • Retry transient GitHub failures during download (#3729)

Contributors:

... (truncated)

Commits
  • c009485 Merge remote-tracking branch 'origin/releases/0.21.0' into 0.21.latest
  • 9cdc451 Release dbt v0.21.0
  • 4718dd3 Add missing changelog entries (#3995)
  • 49796d6 Scrub strings, not AttributeErrors (#3972) (#3978)
  • ece3d2c Merge remote-tracking branch 'origin/releases/0.21.0rc2' into 0.21.latest
  • 52bedba Release dbt v0.21.0rc2
  • eb079dd Avoid infinite recursion in macro state check (#3957) (#3958)
  • 2a99431 Bumping artifact versions for 0.21 (#3945) (#3949)
  • df5953a Fix batching for Snowflake seeds >10k rows (#3942) (#3944)
  • 641b0fa Merge remote-tracking branch 'origin/releases/0.21.0rc1' into 0.21.latest
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [dbt](https://github.com/dbt-labs/dbt) from 0.17.2 to 0.21.0.
- [Release notes](https://github.com/dbt-labs/dbt/releases)
- [Changelog](https://github.com/dbt-labs/dbt/blob/develop/CHANGELOG.md)
- [Commits](dbt-labs/dbt-core@v0.17.2...v0.21.0)

---
updated-dependencies:
- dependency-name: dbt
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Oct 5, 2021
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Nov 30, 2021

Superseded by #104.

@dependabot dependabot bot closed this Nov 30, 2021
@dependabot dependabot bot deleted the dependabot/pip/dbt-0.21.0 branch November 30, 2021 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant