An initial beta release for v1.0.0.
Breaking changes
- The two type of test definitions are now "singular" and "generic" (instead of "data" and "schema", respectively). The
test_type:selection method acceptstest_type:singularandtest_type:generic. (It will also accepttest_type:schemaandtest_type:datafor backwards compatibility) (#3234, #3880). Not backwards compatible: The--dataand--schemaflags todbt testare no longer supported, and tests no longer have the tags'data'and'schema'automatically applied. - Deprecated the use of the
packagesargadapter.dispatchin favor of themacro_namespacearg. (#3895)
Features
- Normalize global CLI arguments/flags (#2990, #3839)
- Turns on the static parser by default and adds the flag
--no-static-parserto disable it. (#3377, #3939) - Generic test FQNs have changed to include the relative path, resource, and column (if applicable) where they are defined. This makes it easier to configure them from the
testsblock indbt_project.yml(#3259, #3880 - Turn on partial parsing by default (#3867, #3989)
Fixes
- Add generic tests defined on sources to the manifest once, not twice (#3347, #3880)
- Skip partial parsing if certain macros have changed (#3810, #3982)
- Enable cataloging of unlogged Postgres tables (3961, #3993)
- Fix multiple disabled nodes (#4013, #4018)
- Fix multiple partial parsing errors (#3996, #4020)
- Return an error instead of a warning when runing with
--warn-errorand no models are selected (#4006, #4019)
Under the hood
- Enact deprecation for
materialization-returnand replace deprecation warning with an exception. (#3896) - Build catalog for only relational, non-ephemeral nodes in the graph (#3920)
- Enact deprecation to remove the
releasearg from theexecute_macromethod. (#3900) - Enact deprecation for default quoting to be True. Override for the
dbt-snowflakeadapter so it staysFalse. (#3898) - Enact deprecation for object used as dictionaries when they should be dataclasses. Replace deprecation warning with an exception for the dunder methods of
__iter__and__len__for all superclasses of FakeAPIObject. (#3897) - Enact deprecation for
adapter-macroand replace deprecation warning with an exception. (#3901) - Add warning when trying to put a node under the wrong key. ie. A seed under models in a
schema.ymlfile. (#3899) - Plugins for
redshift,snowflake, andbigqueryhave moved to separate repos:dbt-redshift,dbt-snowflake,dbt-bigquery - Change the default dbt packages installation directory to
dbt_packagesfromdbt_modules. Also renamemodule-pathtopackages-install-pathto allow default overrides of package install directory. Deprecation warning added for projects using the olddbt_modulesname without specifying apackages-install-path. (#3523) - Update the default project paths to be
analysis-paths = ['analyses']andtest-paths = ['tests]. Also have starter project setanalysis-paths: ['analyses']from now on. (#2659) - Define the data type of
sourcesas an array of arrays of string in the manifest artifacts. (#3966, #3967)
Contributors: