diff --git a/.bumpversion.cfg b/.bumpversion.cfg index b9422be0685..cb713915504 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 1.8.0b3 +current_version = 1.9.0a1 parse = (?P[\d]+) # major version number \.(?P[\d]+) # minor version number \.(?P[\d]+) # patch version number diff --git a/.changes/1.8.0-b1.md b/.changes/1.8.0-b1.md deleted file mode 100644 index 069ae318427..00000000000 --- a/.changes/1.8.0-b1.md +++ /dev/null @@ -1,187 +0,0 @@ -## dbt-core 1.8.0-b1 - February 28, 2024 - -### Breaking Changes - -- Remove adapter.get_compiler interface ([#9148](https://github.com/dbt-labs/dbt-core/issues/9148)) -- Move AdapterLogger to adapters folder ([#9151](https://github.com/dbt-labs/dbt-core/issues/9151)) -- Rm --dry-run flag from 'dbt deps --add-package', in favor of just 'dbt deps --lock' ([#9100](https://github.com/dbt-labs/dbt-core/issues/9100)) -- move event manager setup back to core, remove ref to global EVENT_MANAGER and clean up event manager functions ([#9150](https://github.com/dbt-labs/dbt-core/issues/9150)) -- Remove dbt-tests-adapter and dbt-postgres packages from dbt-core ([#9455](https://github.com/dbt-labs/dbt-core/issues/9455)) - -### Features - -- Initial implementation of unit testing ([#8287](https://github.com/dbt-labs/dbt-core/issues/8287)) -- Unit test manifest artifacts and selection ([#8295](https://github.com/dbt-labs/dbt-core/issues/8295)) -- Support config with tags & meta for unit tests ([#8294](https://github.com/dbt-labs/dbt-core/issues/8294)) -- Allow adapters to include package logs in dbt standard logging ([#7859](https://github.com/dbt-labs/dbt-core/issues/7859)) -- Enable inline csv fixtures in unit tests ([#8626](https://github.com/dbt-labs/dbt-core/issues/8626)) -- Add drop_schema_named macro ([#8025](https://github.com/dbt-labs/dbt-core/issues/8025)) -- migrate utils to common and adapters folders ([#8924](https://github.com/dbt-labs/dbt-core/issues/8924)) -- Move Agate helper client into common ([#8926](https://github.com/dbt-labs/dbt-core/issues/8926)) -- remove usage of dbt.config.PartialProject from dbt/adapters ([#8928](https://github.com/dbt-labs/dbt-core/issues/8928)) -- Add exports to SavedQuery spec ([#8892](https://github.com/dbt-labs/dbt-core/issues/8892)) -- Support unit testing incremental models ([#8422](https://github.com/dbt-labs/dbt-core/issues/8422)) -- Add support of csv file fixtures to unit testing ([#8290](https://github.com/dbt-labs/dbt-core/issues/8290)) -- Remove legacy logger ([#8027](https://github.com/dbt-labs/dbt-core/issues/8027)) -- Unit tests support --defer and state:modified ([#8517](https://github.com/dbt-labs/dbt-core/issues/8517)) -- Support setting export configs hierarchically via saved query and project configs ([#8956](https://github.com/dbt-labs/dbt-core/issues/8956)) -- Support source inputs in unit tests ([#8507](https://github.com/dbt-labs/dbt-core/issues/8507)) -- Use daff to render diff displayed in stdout when unit test fails ([#8558](https://github.com/dbt-labs/dbt-core/issues/8558)) -- Move unit testing to test command ([#8979](https://github.com/dbt-labs/dbt-core/issues/8979)) -- Support --empty flag for schema-only dry runs ([#8971](https://github.com/dbt-labs/dbt-core/issues/8971)) -- Support unit tests in non-root packages ([#8285](https://github.com/dbt-labs/dbt-core/issues/8285)) -- Convert the `tests` config to `data_tests` in both dbt_project.yml and schema files. in schema files. ([#8699](https://github.com/dbt-labs/dbt-core/issues/8699)) -- Make fixture files full-fledged parts of the manifest and enable partial parsing ([#9067](https://github.com/dbt-labs/dbt-core/issues/9067)) -- Adds support for parsing conversion metric related properties for the semantic layer. ([#9203](https://github.com/dbt-labs/dbt-core/issues/9203)) -- In build command run unit tests before models ([#9128](https://github.com/dbt-labs/dbt-core/issues/9128)) -- Move flags from UserConfig in profiles.yml to flags in dbt_project.yml ([#9183](https://github.com/dbt-labs/dbt-core/issues/9183)) -- Added hook support for `dbt source freshness` ([#5609](https://github.com/dbt-labs/dbt-core/issues/5609)) -- Align with order of unit test output when `actual` differs from `expected` ([#9370](https://github.com/dbt-labs/dbt-core/issues/9370)) -- Added support for external nodes in unit test nodes ([#8944](https://github.com/dbt-labs/dbt-core/issues/8944)) -- Enable unit testing versioned models ([#9344](https://github.com/dbt-labs/dbt-core/issues/9344)) -- Enable list command for unit tests ([#8508](https://github.com/dbt-labs/dbt-core/issues/8508)) -- Integration Test Optimizations ([#9498](https://github.com/dbt-labs/dbt-core/issues/9498)) -- Accelerate integration tests with caching. ([#9498](https://github.com/dbt-labs/dbt-core/issues/9498)) -- Cache environment variables ([#9489](https://github.com/dbt-labs/dbt-core/issues/9489)) -- Support meta at the config level for Metric nodes ([#9441](https://github.com/dbt-labs/dbt-core/issues/9441)) -- Add cache to SavedQuery config ([#9540](https://github.com/dbt-labs/dbt-core/issues/9540)) - -### Fixes - -- For packages installed with tarball method, fetch metadata to resolve nested dependencies ([#8621](https://github.com/dbt-labs/dbt-core/issues/8621)) -- Fix partial parsing not working for semantic model change ([#8859](https://github.com/dbt-labs/dbt-core/issues/8859)) -- Handle unknown `type_code` for model contracts ([#8877](https://github.com/dbt-labs/dbt-core/issues/8877), [#8353](https://github.com/dbt-labs/dbt-core/issues/8353)) -- Rework get_catalog implementation to retain previous adapter interface semantics ([#8846](https://github.com/dbt-labs/dbt-core/issues/8846)) -- Add back contract enforcement for temporary tables on postgres ([#8857](https://github.com/dbt-labs/dbt-core/issues/8857)) -- Add version to fqn when version==0 ([#8836](https://github.com/dbt-labs/dbt-core/issues/8836)) -- Fix cased comparison in catalog-retrieval function. ([#8939](https://github.com/dbt-labs/dbt-core/issues/8939)) -- Catalog queries now assign the correct type to materialized views ([#8864](https://github.com/dbt-labs/dbt-core/issues/8864)) -- Fix compilation exception running empty seed file and support new Integer agate data_type ([#8895](https://github.com/dbt-labs/dbt-core/issues/8895)) -- Make relation filtering None-tolerant for maximal flexibility across adapters. ([#8974](https://github.com/dbt-labs/dbt-core/issues/8974)) -- Update run_results.json from previous versions of dbt to support deferral and rerun from failure ([#9010](https://github.com/dbt-labs/dbt-core/issues/9010)) -- Use MANIFEST.in to recursively include all jinja templates; fixes issue where some templates were not included in the distribution ([#9016](https://github.com/dbt-labs/dbt-core/issues/9016)) -- Fix git repository with subdirectory for Deps ([#9000](https://github.com/dbt-labs/dbt-core/issues/9000)) -- Use seed file from disk for unit testing if rows not specified in YAML config ([#8652](https://github.com/dbt-labs/dbt-core/issues/8652)) -- Fix formatting of tarball information in packages-lock.yml ([#9062](https://github.com/dbt-labs/dbt-core/issues/9062)) -- deps: Lock git packages to commit SHA during resolution ([#9050](https://github.com/dbt-labs/dbt-core/issues/9050)) -- deps: Use PackageRenderer to read package-lock.json ([#9127](https://github.com/dbt-labs/dbt-core/issues/9127)) -- Ensure we produce valid jsonschema schemas for manifest, catalog, run-results, and sources ([#8991](https://github.com/dbt-labs/dbt-core/issues/8991)) -- Get sources working again in dbt docs generate ([#9119](https://github.com/dbt-labs/dbt-core/issues/9119)) -- Fix parsing f-strings in python models ([#6976](https://github.com/dbt-labs/dbt-core/issues/6976)) -- Preserve the value of vars and the --full-refresh flags when using retry. ([#9112](https://github.com/dbt-labs/dbt-core/issues/9112)) -- Support reasonably long unit test names ([#9015](https://github.com/dbt-labs/dbt-core/issues/9015)) -- Fix back-compat parsing for model-level 'tests', source table-level 'tests', and 'tests' defined on model versions ([#9411](https://github.com/dbt-labs/dbt-core/issues/9411)) -- Fix retry command run from CLI ([#9444](https://github.com/dbt-labs/dbt-core/issues/9444)) -- Fix seed and source selection in `dbt docs generate` ([#9161](https://github.com/dbt-labs/dbt-core/issues/9161)) -- Add TestGenerateCatalogWithExternalNodes, include empty nodes in node selection during docs generate ([#9456](https://github.com/dbt-labs/dbt-core/issues/9456)) -- Fix node type plurals in FoundStats log message ([#9464](https://github.com/dbt-labs/dbt-core/issues/9464)) -- Run manifest upgrade preprocessing on any older manifest version, including v11 ([#9487](https://github.com/dbt-labs/dbt-core/issues/9487)) -- Update 'compiled_code' context member logic to route based on command ('clone' or not). Reimplement 'sql' context member as wrapper of 'compiled_code'. ([#9502](https://github.com/dbt-labs/dbt-core/issues/9502)) -- Fix bug where Semantic Layer filter strings are parsed into lists. ([#9507](https://github.com/dbt-labs/dbt-core/issues/9507)) -- Initialize invocation context before test fixtures are built. ([##9489](https://github.com/dbt-labs/dbt-core/issues/#9489)) -- When patching versioned models, set constraints after config ([#9364](https://github.com/dbt-labs/dbt-core/issues/9364)) -- only include unmodified semantic mdodels in state:modified selection ([#9548](https://github.com/dbt-labs/dbt-core/issues/9548)) -- Set query headers when manifest is passed in to dbtRunner ([#9546](https://github.com/dbt-labs/dbt-core/issues/9546)) -- Store node_info in node associated logging events ([#9557](https://github.com/dbt-labs/dbt-core/issues/9557)) -- Fix Semantic Model Compare node relations ([#9548](https://github.com/dbt-labs/dbt-core/issues/9548)) -- Clearer no-op logging in stubbed SavedQueryRunner ([#9533](https://github.com/dbt-labs/dbt-core/issues/9533)) -- Fix node_info contextvar handling so incorrect node_info doesn't persist ([#8866](https://github.com/dbt-labs/dbt-core/issues/8866)) -- Add target-path to retry ([#8948](https://github.com/dbt-labs/dbt-core/issues/8948)) - -### Docs - -- fix get_custom_database docstring ([dbt-docs/#9003](https://github.com/dbt-labs/dbt-docs/issues/9003)) - -### Under the Hood - -- Added more type annotations. ([#8537](https://github.com/dbt-labs/dbt-core/issues/8537)) -- Add unit testing functional tests ([#8512](https://github.com/dbt-labs/dbt-core/issues/8512)) -- Remove usage of dbt.include.global_project in dbt/adapters ([#8925](https://github.com/dbt-labs/dbt-core/issues/8925)) -- Add a no-op runner for Saved Qeury ([#8893](https://github.com/dbt-labs/dbt-core/issues/8893)) -- remove dbt.flags.MP_CONTEXT usage in dbt/adapters ([#8967](https://github.com/dbt-labs/dbt-core/issues/8967)) -- Remove usage of dbt.flags.LOG_CACHE_EVENTS in dbt/adapters ([#8969](https://github.com/dbt-labs/dbt-core/issues/8969)) -- Move CatalogRelationTypes test case to the shared test suite to be reused by adapter maintainers ([#8952](https://github.com/dbt-labs/dbt-core/issues/8952)) -- Treat SystemExit as an interrupt if raised during node execution. ([#n/a](https://github.com/dbt-labs/dbt-core/issues/n/a)) -- Removing unused 'documentable' ([#8871](https://github.com/dbt-labs/dbt-core/issues/8871)) -- Remove use of dbt/core exceptions in dbt/adapter ([#8920](https://github.com/dbt-labs/dbt-core/issues/8920)) -- Cache dbt plugin modules to improve integration test performance ([#9029](https://github.com/dbt-labs/dbt-core/issues/9029)) -- Consolidate deferral methods & flags ([#7965](https://github.com/dbt-labs/dbt-core/issues/7965), [#8715](https://github.com/dbt-labs/dbt-core/issues/8715)) -- Fix test_current_timestamp_matches_utc test; allow for MacOS runner system clock variance ([#9057](https://github.com/dbt-labs/dbt-core/issues/9057)) -- Remove usage of dbt.deprecations in dbt/adapters, enable core & adapter-specific event types and protos ([#8927](https://github.com/dbt-labs/dbt-core/issues/8927), [#8918](https://github.com/dbt-labs/dbt-core/issues/8918)) -- Clean up unused adaptor folders ([#9123](https://github.com/dbt-labs/dbt-core/issues/9123)) -- Move column constraints into common/contracts, removing another dependency of adapters on core. ([#9024](https://github.com/dbt-labs/dbt-core/issues/9024)) -- Move dbt.semver to dbt.common.semver and update references. ([#9039](https://github.com/dbt-labs/dbt-core/issues/9039)) -- Move lowercase utils method to common ([#9180](https://github.com/dbt-labs/dbt-core/issues/9180)) -- Remove usages of dbt.clients.jinja in dbt/adapters ([#9205](https://github.com/dbt-labs/dbt-core/issues/9205)) -- Remove usage of dbt.contracts in dbt/adapters ([#9208](https://github.com/dbt-labs/dbt-core/issues/9208)) -- Remove usage of dbt.contracts.graph.nodes.ResultNode in dbt/adapters ([#9214](https://github.com/dbt-labs/dbt-core/issues/9214)) -- Introduce RelationConfig Protocol, consolidate Relation.create_from ([#9215](https://github.com/dbt-labs/dbt-core/issues/9215)) -- remove manifest from adapter.set_relations_cache signature ([#9217](https://github.com/dbt-labs/dbt-core/issues/9217)) -- remove manifest from adapter catalog method signatures ([#9218](https://github.com/dbt-labs/dbt-core/issues/9218)) -- Move BaseConfig, Metadata and various other contract classes from model_config to common/contracts/config ([#8919](https://github.com/dbt-labs/dbt-core/issues/8919)) -- Add MacroResolverProtocol, remove lazy loading of manifest in adapter.execute_macro ([#9244](https://github.com/dbt-labs/dbt-core/issues/9244)) -- pass query header context to MacroQueryStringSetter ([#9249](https://github.com/dbt-labs/dbt-core/issues/9249), [#9250](https://github.com/dbt-labs/dbt-core/issues/9250)) -- add macro_context_generator on adapter ([#9247](https://github.com/dbt-labs/dbt-core/issues/9247)) -- pass mp_context to adapter factory as argument instead of import ([#9025](https://github.com/dbt-labs/dbt-core/issues/9025)) -- have dbt-postgres use RelationConfig protocol for materialized views' ([#9292](https://github.com/dbt-labs/dbt-core/issues/9292)) -- move system.py to common as dbt-bigquery relies on it to call gcloud ([#9293](https://github.com/dbt-labs/dbt-core/issues/9293)) -- Reorganizing event definitions to define core events in dbt/events rather than dbt/common ([#9152](https://github.com/dbt-labs/dbt-core/issues/9152)) -- move exceptions used only in dbt/common to dbt/common/exceptions ([#9332](https://github.com/dbt-labs/dbt-core/issues/9332)) -- Remove usage of dbt.adapters.factory in dbt/common ([#9334](https://github.com/dbt-labs/dbt-core/issues/9334)) -- Accept valid_error_names in WarnErrorOptions constructor, remove global usage of event modules ([#9337](https://github.com/dbt-labs/dbt-core/issues/9337)) -- Move result objects to dbt.artifacts ([#9193](https://github.com/dbt-labs/dbt-core/issues/9193)) -- dbt Labs OSS standardization of docs and templates. ([#9252](https://github.com/dbt-labs/dbt-core/issues/9252)) -- Add dbt-common as a dependency and remove dbt/common ([#9357](https://github.com/dbt-labs/dbt-core/issues/9357)) -- move cache exceptions to dbt/adapters ([#9362](https://github.com/dbt-labs/dbt-core/issues/9362)) -- Clean up macro contexts. ([#9422](https://github.com/dbt-labs/dbt-core/issues/9422)) -- Add the @requires.manifest decorator to the retry command. ([#9426](https://github.com/dbt-labs/dbt-core/issues/9426)) -- Move WritableManifest + Documentation to dbt/artifacts ([#9378](https://github.com/dbt-labs/dbt-core/issues/9378), [#9379](https://github.com/dbt-labs/dbt-core/issues/9379)) -- Define Macro and Group resources in dbt/artifacts ([#9381](https://github.com/dbt-labs/dbt-core/issues/9381), [#9382](https://github.com/dbt-labs/dbt-core/issues/9382)) -- Move `SavedQuery` data definition to `dbt/artifacts` ([#9386](https://github.com/dbt-labs/dbt-core/issues/9386)) -- Migrate data parts of `Metric` node to dbt/artifacts ([#9383](https://github.com/dbt-labs/dbt-core/issues/9383)) -- Move data portion of `SemanticModel` to dbt/artifacts ([#9387](https://github.com/dbt-labs/dbt-core/issues/9387)) -- Move data parts of `Exposure` class to dbt/artifacts ([#9380](https://github.com/dbt-labs/dbt-core/issues/9380)) -- Start using `Mergeable` from dbt-common ([#9505](https://github.com/dbt-labs/dbt-core/issues/9505)) -- Move manifest nodes to artifacts ([#9388](https://github.com/dbt-labs/dbt-core/issues/9388)) -- Move data parts of `SourceDefinition` class to dbt/artifacts ([#9384](https://github.com/dbt-labs/dbt-core/issues/9384)) -- Remove uses of Replaceable class ([#7802](https://github.com/dbt-labs/dbt-core/issues/7802)) -- Make dbt-core compatible with Python 3.12 ([#9007](https://github.com/dbt-labs/dbt-core/issues/9007)) -- Restrict protobuf to major version 4. ([#9566](https://github.com/dbt-labs/dbt-core/issues/9566)) -- Remove references to dbt.tracking and dbt.flags from dbt/artifacts ([#9390](https://github.com/dbt-labs/dbt-core/issues/9390)) -- Implement primary key inference for model nodes ([#9652](https://github.com/dbt-labs/dbt-core/issues/9652)) -- Define UnitTestDefinition resource in dbt/artifacts/resources ([#9667](https://github.com/dbt-labs/dbt-core/issues/9667)) -- Use Manifest instead of WritableManifest in PreviousState and _get_deferred_manifest ([#9567](https://github.com/dbt-labs/dbt-core/issues/9567)) - -### Dependencies - -- Bump actions/checkout from 3 to 4 ([#8781](https://github.com/dbt-labs/dbt-core/pull/8781)) -- Begin using DSI 0.4.x ([#8892](https://github.com/dbt-labs/dbt-core/pull/8892)) -- Update typing-extensions version to >=4.4 ([#9012](https://github.com/dbt-labs/dbt-core/pull/9012)) -- Bump ddtrace from 2.1.7 to 2.3.0 ([#9132](https://github.com/dbt-labs/dbt-core/pull/9132)) -- Bump freezegun from 0.3.12 to 1.3.0 ([#9197](https://github.com/dbt-labs/dbt-core/pull/9197)) -- Bump actions/setup-python from 4 to 5 ([#9267](https://github.com/dbt-labs/dbt-core/pull/9267)) -- Bump actions/download-artifact from 3 to 4 ([#9374](https://github.com/dbt-labs/dbt-core/pull/9374)) -- remove dbt/adapters and add dependency on dbt-adapters ([#9430](https://github.com/dbt-labs/dbt-core/pull/9430)) -- Bump actions/cache from 3 to 4 ([#9471](https://github.com/dbt-labs/dbt-core/pull/9471)) -- Bump peter-evans/create-pull-request from 5 to 6 ([#9552](https://github.com/dbt-labs/dbt-core/pull/9552)) -- Cap dbt-semantic-interfaces version range to <0.6 ([#9671](https://github.com/dbt-labs/dbt-core/pull/9671)) -- bump dbt-common to accept major version 1 ([#9690](https://github.com/dbt-labs/dbt-core/pull/9690)) - -### Security - -- Update Jinja2 to >= 3.1.3 to address CVE-2024-22195 ([#CVE-2024-22195](https://github.com/dbt-labs/dbt-core/pull/CVE-2024-22195)) - -### Contributors -- [@LeoTheGriff](https://github.com/LeoTheGriff) ([#9003](https://github.com/dbt-labs/dbt-core/issues/9003)) -- [@WilliamDee](https://github.com/WilliamDee) ([#9203](https://github.com/dbt-labs/dbt-core/issues/9203)) -- [@adamlopez](https://github.com/adamlopez) ([#8621](https://github.com/dbt-labs/dbt-core/issues/8621)) -- [@aliceliu](https://github.com/aliceliu) ([#9652](https://github.com/dbt-labs/dbt-core/issues/9652)) -- [@benmosher](https://github.com/benmosher) ([#n/a](https://github.com/dbt-labs/dbt-core/issues/n/a)) -- [@colin-rorgers-dbt](https://github.com/colin-rorgers-dbt) ([#8919](https://github.com/dbt-labs/dbt-core/issues/8919)) -- [@courtneyholcomb](https://github.com/courtneyholcomb) ([#9507](https://github.com/dbt-labs/dbt-core/issues/9507)) -- [@l1xnan](https://github.com/l1xnan) ([#9007](https://github.com/dbt-labs/dbt-core/issues/9007)) -- [@mederka](https://github.com/mederka) ([#6976](https://github.com/dbt-labs/dbt-core/issues/6976)) -- [@ofek1weiss](https://github.com/ofek1weiss) ([#5609](https://github.com/dbt-labs/dbt-core/issues/5609)) -- [@peterallenwebb,](https://github.com/peterallenwebb,) ([#9112](https://github.com/dbt-labs/dbt-core/issues/9112)) -- [@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)) diff --git a/.changes/1.8.0-b2.md b/.changes/1.8.0-b2.md deleted file mode 100644 index e69170a41de..00000000000 --- a/.changes/1.8.0-b2.md +++ /dev/null @@ -1,53 +0,0 @@ -## 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/1.8.0-b3.md b/.changes/1.8.0-b3.md deleted file mode 100644 index 0b9ce6aaaca..00000000000 --- a/.changes/1.8.0-b3.md +++ /dev/null @@ -1,48 +0,0 @@ -## dbt-core 1.8.0-b3 - April 18, 2024 - -### Features - -- Support scrubbing secret vars ([#7247](https://github.com/dbt-labs/dbt-core/issues/7247)) -- Add wildcard support to the group selector method ([#9811](https://github.com/dbt-labs/dbt-core/issues/9811)) -- source freshness precomputes metadata-based freshness in batch, if possible ([#8705](https://github.com/dbt-labs/dbt-core/issues/8705)) -- Better error message when trying to select a disabled model ([#9747](https://github.com/dbt-labs/dbt-core/issues/9747)) -- Support SQL in unit testing fixtures ([#9405](https://github.com/dbt-labs/dbt-core/issues/9405)) - -### Fixes - -- fix configuration of turning test warnings into failures with WARN_ERROR_OPTIONS ([#7761](https://github.com/dbt-labs/dbt-core/issues/7761)) -- Fix conflict with newer versions of Snowplow tracker ([#8719](https://github.com/dbt-labs/dbt-core/issues/8719)) -- Only create the packages-install-path / dbt_packages folder during dbt deps ([#6985](https://github.com/dbt-labs/dbt-core/issues/6985), [#9584](https://github.com/dbt-labs/dbt-core/issues/9584)) -- Exclude password-like fields for considering reparse ([#9795](https://github.com/dbt-labs/dbt-core/issues/9795)) -- Fixed query comments test ([#9860](https://github.com/dbt-labs/dbt-core/issues/9860)) -- Begin warning people about spaces in model names ([#9397](https://github.com/dbt-labs/dbt-core/issues/9397)) -- Disambiguiate FreshnessConfigProblem error message ([#9891](https://github.com/dbt-labs/dbt-core/issues/9891)) - -### Under the Hood - -- Remove non dbt.artifacts dbt.* imports from dbt/artifacts ([#9926](https://github.com/dbt-labs/dbt-core/issues/9926)) -- Migrate to using `error_tag` provided by `dbt-common` ([#9914](https://github.com/dbt-labs/dbt-core/issues/9914)) -- Add a test for semantic manifest and move test fixtures needed for it ([#9665](https://github.com/dbt-labs/dbt-core/issues/9665)) - -### Dependencies - -- Relax pathspec upper bound version restriction ([#9373](https://github.com/dbt-labs/dbt-core/issues/9373)) -- Bump python from 3.10.7-slim-nullseye to 3.11.2-slim-bullseye in /docker ([#9687](https://github.com/dbt-labs/dbt-core/issues/9687)) -- Remove duplicate dependency of protobuf in dev-requirements ([#9830](https://github.com/dbt-labs/dbt-core/issues/9830)) -- Bump black from 23.3.0 to >=24.3.0,<25.0 ([#8074](https://github.com/dbt-labs/dbt-core/issues/8074)) - -### Security - -- Bump sqlparse to >=0.5.0, <0.6.0 to address GHSA-2m57-hf25-phgg ([#9951](https://github.com/dbt-labs/dbt-core/issues/9951)) - -### Contributors -- [@SamuelBFavarin](https://github.com/SamuelBFavarin) ([#9747](https://github.com/dbt-labs/dbt-core/issues/9747)) -- [@akurdyukov](https://github.com/akurdyukov) ([#8719](https://github.com/dbt-labs/dbt-core/issues/8719)) -- [@damian3031](https://github.com/damian3031) ([#9860](https://github.com/dbt-labs/dbt-core/issues/9860)) -- [@edgarrmondragon](https://github.com/edgarrmondragon) ([#8719](https://github.com/dbt-labs/dbt-core/issues/8719)) -- [@emmoop](https://github.com/emmoop) ([#9951](https://github.com/dbt-labs/dbt-core/issues/9951)) -- [@heysweet](https://github.com/heysweet) ([#9811](https://github.com/dbt-labs/dbt-core/issues/9811)) -- [@jx2lee](https://github.com/jx2lee) ([#7761](https://github.com/dbt-labs/dbt-core/issues/7761)) -- [@nielspardon](https://github.com/nielspardon) ([#7247](https://github.com/dbt-labs/dbt-core/issues/7247)) -- [@niteshy](https://github.com/niteshy) ([#9830](https://github.com/dbt-labs/dbt-core/issues/9830)) -- [@rzjfr](https://github.com/rzjfr) ([#9373](https://github.com/dbt-labs/dbt-core/issues/9373)) diff --git a/.changes/1.8.0/Breaking Changes-20231127-114757.yaml b/.changes/1.8.0/Breaking Changes-20231127-114757.yaml deleted file mode 100644 index b7b8d030d6a..00000000000 --- a/.changes/1.8.0/Breaking Changes-20231127-114757.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Breaking Changes -body: Remove adapter.get_compiler interface -time: 2023-11-27T11:47:57.443202-05:00 -custom: - Author: michelleark - Issue: "9148" diff --git a/.changes/1.8.0/Breaking Changes-20231128-134356.yaml b/.changes/1.8.0/Breaking Changes-20231128-134356.yaml deleted file mode 100644 index b3204c1418b..00000000000 --- a/.changes/1.8.0/Breaking Changes-20231128-134356.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Breaking Changes -body: Move AdapterLogger to adapters folder -time: 2023-11-28T13:43:56.853925-08:00 -custom: - Author: colin-rogers-dbt - Issue: "9151" diff --git a/.changes/1.8.0/Breaking Changes-20231129-091921.yaml b/.changes/1.8.0/Breaking Changes-20231129-091921.yaml deleted file mode 100644 index c58c598a46e..00000000000 --- a/.changes/1.8.0/Breaking Changes-20231129-091921.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Breaking Changes -body: Rm --dry-run flag from 'dbt deps --add-package', in favor of just 'dbt deps - --lock' -time: 2023-11-29T09:19:21.071212+01:00 -custom: - Author: jtcohen6 - Issue: "9100" diff --git a/.changes/1.8.0/Breaking Changes-20231130-135348.yaml b/.changes/1.8.0/Breaking Changes-20231130-135348.yaml deleted file mode 100644 index df673d69367..00000000000 --- a/.changes/1.8.0/Breaking Changes-20231130-135348.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Breaking Changes -body: move event manager setup back to core, remove ref to global EVENT_MANAGER and - clean up event manager functions -time: 2023-11-30T13:53:48.645192-08:00 -custom: - Author: colin-rogers-dbt - Issue: "9150" diff --git a/.changes/1.8.0/Breaking Changes-20240130-140550.yaml b/.changes/1.8.0/Breaking Changes-20240130-140550.yaml deleted file mode 100644 index aac49fecb90..00000000000 --- a/.changes/1.8.0/Breaking Changes-20240130-140550.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Breaking Changes -body: Remove dbt-tests-adapter and dbt-postgres packages from dbt-core -time: 2024-01-30T14:05:50.291291-08:00 -custom: - Author: colin-rogers-dbt - Issue: "9455" diff --git a/.changes/1.8.0/Dependencies-20231005-151848.yaml b/.changes/1.8.0/Dependencies-20231005-151848.yaml deleted file mode 100644 index bca488d6485..00000000000 --- a/.changes/1.8.0/Dependencies-20231005-151848.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: "Dependencies" -body: "Bump actions/checkout from 3 to 4" -time: 2023-10-05T15:18:48.00000Z -custom: - Author: dependabot[bot] - Issue: 8781 diff --git a/.changes/1.8.0/Dependencies-20231031-131954.yaml b/.changes/1.8.0/Dependencies-20231031-131954.yaml deleted file mode 100644 index e94d4c2405f..00000000000 --- a/.changes/1.8.0/Dependencies-20231031-131954.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Dependencies -body: Begin using DSI 0.4.x -time: 2023-10-31T13:19:54.750009-07:00 -custom: - Author: QMalcolm peterallenwebb - Issue: "8892" diff --git a/.changes/1.8.0/Dependencies-20231106-130051.yaml b/.changes/1.8.0/Dependencies-20231106-130051.yaml deleted file mode 100644 index 6e42d7920b7..00000000000 --- a/.changes/1.8.0/Dependencies-20231106-130051.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Dependencies -body: Update typing-extensions version to >=4.4 -time: 2023-11-06T13:00:51.062386-08:00 -custom: - Author: tlento - Issue: "9012" diff --git a/.changes/1.8.0/Dependencies-20231122-001840.yaml b/.changes/1.8.0/Dependencies-20231122-001840.yaml deleted file mode 100644 index b92795f10d9..00000000000 --- a/.changes/1.8.0/Dependencies-20231122-001840.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: "Dependencies" -body: "Bump ddtrace from 2.1.7 to 2.3.0" -time: 2023-11-22T00:18:40.00000Z -custom: - Author: dependabot[bot] - Issue: 9132 diff --git a/.changes/1.8.0/Dependencies-20231204-000945.yaml b/.changes/1.8.0/Dependencies-20231204-000945.yaml deleted file mode 100644 index a9ff267db30..00000000000 --- a/.changes/1.8.0/Dependencies-20231204-000945.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: "Dependencies" -body: "Bump freezegun from 0.3.12 to 1.3.0" -time: 2023-12-04T00:09:45.00000Z -custom: - Author: dependabot[bot] - Issue: 9197 diff --git a/.changes/1.8.0/Dependencies-20231211-005651.yaml b/.changes/1.8.0/Dependencies-20231211-005651.yaml deleted file mode 100644 index bffcfbb0ade..00000000000 --- a/.changes/1.8.0/Dependencies-20231211-005651.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: "Dependencies" -body: "Bump actions/setup-python from 4 to 5" -time: 2023-12-11T00:56:51.00000Z -custom: - Author: dependabot[bot] - Issue: 9267 diff --git a/.changes/1.8.0/Dependencies-20240115-012030.yaml b/.changes/1.8.0/Dependencies-20240115-012030.yaml deleted file mode 100644 index d1819c8beac..00000000000 --- a/.changes/1.8.0/Dependencies-20240115-012030.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: "Dependencies" -body: "Bump actions/download-artifact from 3 to 4" -time: 2024-01-15T01:20:30.00000Z -custom: - Author: dependabot[bot] - Issue: 9374 diff --git a/.changes/1.8.0/Dependencies-20240117-100818.yaml b/.changes/1.8.0/Dependencies-20240117-100818.yaml deleted file mode 100644 index f8f1e65b593..00000000000 --- a/.changes/1.8.0/Dependencies-20240117-100818.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Dependencies -body: Relax pathspec upper bound version restriction -time: 2024-01-17T10:08:18.009949641+01:00 -custom: - Author: rzjfr - Issue: "9373" diff --git a/.changes/1.8.0/Dependencies-20240123-105843.yaml b/.changes/1.8.0/Dependencies-20240123-105843.yaml deleted file mode 100644 index 4c2995c5ce6..00000000000 --- a/.changes/1.8.0/Dependencies-20240123-105843.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Dependencies -body: remove dbt/adapters and add dependency on dbt-adapters -time: 2024-01-23T10:58:43.286952-08:00 -custom: - Author: colin-rogers-dbt - Issue: "9430" diff --git a/.changes/1.8.0/Dependencies-20240129-005734.yaml b/.changes/1.8.0/Dependencies-20240129-005734.yaml deleted file mode 100644 index 90a5ee0c0c3..00000000000 --- a/.changes/1.8.0/Dependencies-20240129-005734.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: "Dependencies" -body: "Bump actions/upload-artifact from 3 to 4" -time: 2024-01-29T00:57:34.00000Z -custom: - Author: dependabot[bot] - Issue: 9470 diff --git a/.changes/1.8.0/Dependencies-20240129-005743.yaml b/.changes/1.8.0/Dependencies-20240129-005743.yaml deleted file mode 100644 index 6e491069322..00000000000 --- a/.changes/1.8.0/Dependencies-20240129-005743.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: "Dependencies" -body: "Bump actions/cache from 3 to 4" -time: 2024-01-29T00:57:43.00000Z -custom: - Author: dependabot[bot] - Issue: 9471 diff --git a/.changes/1.8.0/Dependencies-20240212-011324.yaml b/.changes/1.8.0/Dependencies-20240212-011324.yaml deleted file mode 100644 index 200932ca249..00000000000 --- a/.changes/1.8.0/Dependencies-20240212-011324.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: "Dependencies" -body: "Bump peter-evans/create-pull-request from 5 to 6" -time: 2024-02-12T01:13:24.00000Z -custom: - Author: dependabot[bot] - Issue: 9552 diff --git a/.changes/1.8.0/Dependencies-20240222-102947.yaml b/.changes/1.8.0/Dependencies-20240222-102947.yaml deleted file mode 100644 index 78c7a994b35..00000000000 --- a/.changes/1.8.0/Dependencies-20240222-102947.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Dependencies -body: Restrict protobuf to 4.* versions -time: 2024-02-22T10:29:47.595435-08:00 -custom: - Author: QMalcolm - Issue: "9566" diff --git a/.changes/1.8.0/Dependencies-20240226-004412.yaml b/.changes/1.8.0/Dependencies-20240226-004412.yaml deleted file mode 100644 index 8300a32e086..00000000000 --- a/.changes/1.8.0/Dependencies-20240226-004412.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: "Dependencies" -body: "Bump codecov/codecov-action from 3 to 4" -time: 2024-02-26T00:44:12.00000Z -custom: - Author: dependabot[bot] - Issue: 9659 diff --git a/.changes/1.8.0/Dependencies-20240226-123502.yaml b/.changes/1.8.0/Dependencies-20240226-123502.yaml deleted file mode 100644 index f1ad49c393d..00000000000 --- a/.changes/1.8.0/Dependencies-20240226-123502.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Dependencies -body: Cap dbt-semantic-interfaces version range to <0.6 -time: 2024-02-26T12:35:02.643779-08:00 -custom: - Author: tlento - Issue: "9671" diff --git a/.changes/1.8.0/Dependencies-20240227-142138.yaml b/.changes/1.8.0/Dependencies-20240227-142138.yaml deleted file mode 100644 index 0b20244d773..00000000000 --- a/.changes/1.8.0/Dependencies-20240227-142138.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Dependencies -body: Bump python from 3.10.7-slim-nullseye to 3.11.2-slim-bullseye in /docker -time: 2024-02-27T14:21:38.394757-05:00 -custom: - Author: michelleark - Issue: "9687" diff --git a/.changes/1.8.0/Dependencies-20240227-151115.yaml b/.changes/1.8.0/Dependencies-20240227-151115.yaml deleted file mode 100644 index d9a99d7e3dd..00000000000 --- a/.changes/1.8.0/Dependencies-20240227-151115.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Dependencies -body: bump dbt-common to accept major version 1 -time: 2024-02-27T15:11:15.583604-05:00 -custom: - Author: michelleark - Issue: "9690" diff --git a/.changes/1.8.0/Dependencies-20240331-103917.yaml b/.changes/1.8.0/Dependencies-20240331-103917.yaml deleted file mode 100644 index c4cb75dd449..00000000000 --- a/.changes/1.8.0/Dependencies-20240331-103917.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Dependencies -body: Remove duplicate dependency of protobuf in dev-requirements -time: 2024-03-31T10:39:17.432017-07:00 -custom: - Author: niteshy - Issue: "9830" diff --git a/.changes/1.8.0/Dependencies-20240410-183321.yaml b/.changes/1.8.0/Dependencies-20240410-183321.yaml deleted file mode 100644 index 7fb86e98c3b..00000000000 --- a/.changes/1.8.0/Dependencies-20240410-183321.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: "Dependencies" -body: "Bump black from 23.3.0 to >=24.3.0,<25.0" -time: 2024-04-10T18:33:21.00000Z -custom: - Author: dependabot[bot] - Issue: 8074 diff --git a/.changes/1.8.0/Docs-20230615-105157.yaml b/.changes/1.8.0/Docs-20230615-105157.yaml deleted file mode 100644 index 327e33b2e03..00000000000 --- a/.changes/1.8.0/Docs-20230615-105157.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Docs -body: Add analytics for dbt.com -time: 2023-06-15T10:51:57.838991+02:00 -custom: - Author: b-per - Issue: "430" diff --git a/.changes/1.8.0/Docs-20231106-123157.yaml b/.changes/1.8.0/Docs-20231106-123157.yaml deleted file mode 100644 index 28b4cd8e755..00000000000 --- a/.changes/1.8.0/Docs-20231106-123157.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Docs -body: fix get_custom_database docstring -time: 2023-11-06T12:31:57.525711Z -custom: - Author: LeoTheGriff - Issue: "9003" diff --git a/.changes/1.8.0/Features-20230802-145011.yaml b/.changes/1.8.0/Features-20230802-145011.yaml deleted file mode 100644 index f9c742824c7..00000000000 --- a/.changes/1.8.0/Features-20230802-145011.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Initial implementation of unit testing -time: 2023-08-02T14:50:11.391992-04:00 -custom: - Author: gshank - Issue: "8287" diff --git a/.changes/1.8.0/Features-20230828-101825.yaml b/.changes/1.8.0/Features-20230828-101825.yaml deleted file mode 100644 index 13101ecbacd..00000000000 --- a/.changes/1.8.0/Features-20230828-101825.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Unit test manifest artifacts and selection -time: 2023-08-28T10:18:25.958929-04:00 -custom: - Author: gshank - Issue: "8295" diff --git a/.changes/1.8.0/Features-20230906-234741.yaml b/.changes/1.8.0/Features-20230906-234741.yaml deleted file mode 100644 index ca94f1fc6c5..00000000000 --- a/.changes/1.8.0/Features-20230906-234741.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Support config with tags & meta for unit tests -time: 2023-09-06T23:47:41.059915-04:00 -custom: - Author: michelleark - Issue: "8294" diff --git a/.changes/1.8.0/Features-20230915-123733.yaml b/.changes/1.8.0/Features-20230915-123733.yaml deleted file mode 100644 index 146ad8ef89a..00000000000 --- a/.changes/1.8.0/Features-20230915-123733.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: 'Allow adapters to include package logs in dbt standard logging ' -time: 2023-09-15T12:37:33.862862-07:00 -custom: - Author: colin-rogers-dbt - Issue: "7859" diff --git a/.changes/1.8.0/Features-20230928-163205.yaml b/.changes/1.8.0/Features-20230928-163205.yaml deleted file mode 100644 index 7f9b7c047ac..00000000000 --- a/.changes/1.8.0/Features-20230928-163205.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Enable inline csv fixtures in unit tests -time: 2023-09-28T16:32:05.573776-04:00 -custom: - Author: gshank - Issue: "8626" diff --git a/.changes/1.8.0/Features-20231017-143620.yaml b/.changes/1.8.0/Features-20231017-143620.yaml deleted file mode 100644 index dfdd2b6f4b2..00000000000 --- a/.changes/1.8.0/Features-20231017-143620.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Add drop_schema_named macro -time: 2023-10-17T14:36:20.612289-07:00 -custom: - Author: colin-rogers-dbt - Issue: "8025" diff --git a/.changes/1.8.0/Features-20231026-110821.yaml b/.changes/1.8.0/Features-20231026-110821.yaml deleted file mode 100644 index 7fffb6fe569..00000000000 --- a/.changes/1.8.0/Features-20231026-110821.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: migrate utils to common and adapters folders -time: 2023-10-26T11:08:21.458709-07:00 -custom: - Author: colin-rogers-dbt - Issue: "8924" diff --git a/.changes/1.8.0/Features-20231026-123556.yaml b/.changes/1.8.0/Features-20231026-123556.yaml deleted file mode 100644 index cf37554c08d..00000000000 --- a/.changes/1.8.0/Features-20231026-123556.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Move Agate helper client into common -time: 2023-10-26T12:35:56.538587-07:00 -custom: - Author: MichelleArk - Issue: "8926" diff --git a/.changes/1.8.0/Features-20231026-123913.yaml b/.changes/1.8.0/Features-20231026-123913.yaml deleted file mode 100644 index d3ada7cb691..00000000000 --- a/.changes/1.8.0/Features-20231026-123913.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: remove usage of dbt.config.PartialProject from dbt/adapters -time: 2023-10-26T12:39:13.904116-07:00 -custom: - Author: MichelleArk - Issue: "8928" diff --git a/.changes/1.8.0/Features-20231031-132022.yaml b/.changes/1.8.0/Features-20231031-132022.yaml deleted file mode 100644 index 363f3405399..00000000000 --- a/.changes/1.8.0/Features-20231031-132022.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Add exports to SavedQuery spec -time: 2023-10-31T13:20:22.448158-07:00 -custom: - Author: QMalcolm peterallenwebb - Issue: "8892" diff --git a/.changes/1.8.0/Features-20231101-101845.yaml b/.changes/1.8.0/Features-20231101-101845.yaml deleted file mode 100644 index 603990ce2e7..00000000000 --- a/.changes/1.8.0/Features-20231101-101845.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Support unit testing incremental models -time: 2023-11-01T10:18:45.341781-04:00 -custom: - Author: michelleark - Issue: "8422" diff --git a/.changes/1.8.0/Features-20231106-194752.yaml b/.changes/1.8.0/Features-20231106-194752.yaml deleted file mode 100644 index 2ea6553d339..00000000000 --- a/.changes/1.8.0/Features-20231106-194752.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Add support of csv file fixtures to unit testing -time: 2023-11-06T19:47:52.501495-06:00 -custom: - Author: emmyoop - Issue: "8290" diff --git a/.changes/1.8.0/Features-20231107-135635.yaml b/.changes/1.8.0/Features-20231107-135635.yaml deleted file mode 100644 index 711ba4ce102..00000000000 --- a/.changes/1.8.0/Features-20231107-135635.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Remove legacy logger -time: 2023-11-07T13:56:35.186648-08:00 -custom: - Author: colin-rogers-dbt - Issue: "8027" diff --git a/.changes/1.8.0/Features-20231107-231006.yaml b/.changes/1.8.0/Features-20231107-231006.yaml deleted file mode 100644 index 0865c72cc58..00000000000 --- a/.changes/1.8.0/Features-20231107-231006.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Unit tests support --defer and state:modified -time: 2023-11-07T23:10:06.376588-05:00 -custom: - Author: jtcohen6 - Issue: "8517" diff --git a/.changes/1.8.0/Features-20231110-154255.yaml b/.changes/1.8.0/Features-20231110-154255.yaml deleted file mode 100644 index 77283846646..00000000000 --- a/.changes/1.8.0/Features-20231110-154255.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Support setting export configs hierarchically via saved query and project configs -time: 2023-11-10T15:42:55.042317-08:00 -custom: - Author: QMalcolm - Issue: "8956" diff --git a/.changes/1.8.0/Features-20231111-191150.yaml b/.changes/1.8.0/Features-20231111-191150.yaml deleted file mode 100644 index 4afff04dbff..00000000000 --- a/.changes/1.8.0/Features-20231111-191150.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Support source inputs in unit tests -time: 2023-11-11T19:11:50.870494-05:00 -custom: - Author: gshank - Issue: "8507" diff --git a/.changes/1.8.0/Features-20231114-101555.yaml b/.changes/1.8.0/Features-20231114-101555.yaml deleted file mode 100644 index 2ed80f9bee7..00000000000 --- a/.changes/1.8.0/Features-20231114-101555.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Use daff to render diff displayed in stdout when unit test fails -time: 2023-11-14T10:15:55.689307-05:00 -custom: - Author: michelleark - Issue: "8558" diff --git a/.changes/1.8.0/Features-20231115-092005.yaml b/.changes/1.8.0/Features-20231115-092005.yaml deleted file mode 100644 index 6f156764aff..00000000000 --- a/.changes/1.8.0/Features-20231115-092005.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Global config for --target and --profile CLI flags and DBT_TARGET and DBT_PROFILE environment variables. -time: 2023-11-15T09:20:05.12461Z -custom: - Author: barton996 - Issue: "7798" diff --git a/.changes/1.8.0/Features-20231116-144006.yaml b/.changes/1.8.0/Features-20231116-144006.yaml deleted file mode 100644 index b70e89e76ec..00000000000 --- a/.changes/1.8.0/Features-20231116-144006.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Move unit testing to test command -time: 2023-11-16T14:40:06.121336-05:00 -custom: - Author: gshank - Issue: "8979" diff --git a/.changes/1.8.0/Features-20231116-234049.yaml b/.changes/1.8.0/Features-20231116-234049.yaml deleted file mode 100644 index 786c15311a4..00000000000 --- a/.changes/1.8.0/Features-20231116-234049.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Support --empty flag for schema-only dry runs -time: 2023-11-16T23:40:49.96651-05:00 -custom: - Author: michelleark - Issue: "8971" diff --git a/.changes/1.8.0/Features-20231130-130948.yaml b/.changes/1.8.0/Features-20231130-130948.yaml deleted file mode 100644 index 7144deb8112..00000000000 --- a/.changes/1.8.0/Features-20231130-130948.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Support unit tests in non-root packages -time: 2023-11-30T13:09:48.206007-05:00 -custom: - Author: gshank - Issue: "8285" diff --git a/.changes/1.8.0/Features-20231205-131717.yaml b/.changes/1.8.0/Features-20231205-131717.yaml deleted file mode 100644 index c4a35391ee1..00000000000 --- a/.changes/1.8.0/Features-20231205-131717.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Features -body: Convert the `tests` config to `data_tests` in both dbt_project.yml and schema files. - in schema files. -time: 2023-12-05T13:17:17.647765-06:00 -custom: - Author: emmyoop - Issue: "8699" diff --git a/.changes/1.8.0/Features-20231205-200447.yaml b/.changes/1.8.0/Features-20231205-200447.yaml deleted file mode 100644 index 6af669a81e3..00000000000 --- a/.changes/1.8.0/Features-20231205-200447.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Make fixture files full-fledged parts of the manifest and enable partial parsing -time: 2023-12-05T20:04:47.117029-05:00 -custom: - Author: gshank - Issue: "9067" diff --git a/.changes/1.8.0/Features-20231206-181458.yaml b/.changes/1.8.0/Features-20231206-181458.yaml deleted file mode 100644 index f14c1af4cbd..00000000000 --- a/.changes/1.8.0/Features-20231206-181458.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Features -body: Adds support for parsing conversion metric related properties for the semantic - layer. -time: 2023-12-06T18:14:58.688221-05:00 -custom: - Author: WilliamDee - Issue: "9203" diff --git a/.changes/1.8.0/Features-20231212-150556.yaml b/.changes/1.8.0/Features-20231212-150556.yaml deleted file mode 100644 index 299333481df..00000000000 --- a/.changes/1.8.0/Features-20231212-150556.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: In build command run unit tests before models -time: 2023-12-12T15:05:56.778829-05:00 -custom: - Author: gshank - Issue: "9128" diff --git a/.changes/1.8.0/Features-20231218-195854.yaml b/.changes/1.8.0/Features-20231218-195854.yaml deleted file mode 100644 index 2a78826aff0..00000000000 --- a/.changes/1.8.0/Features-20231218-195854.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Move flags from UserConfig in profiles.yml to flags in dbt_project.yml -time: 2023-12-18T19:58:54.075811-05:00 -custom: - Author: gshank - Issue: "9183" diff --git a/.changes/1.8.0/Features-20231231-171205.yaml b/.changes/1.8.0/Features-20231231-171205.yaml deleted file mode 100644 index 08f5ebe5aad..00000000000 --- a/.changes/1.8.0/Features-20231231-171205.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Added hook support for `dbt source freshness` -time: 2023-12-31T17:12:05.587185+02:00 -custom: - Author: ofek1weiss - Issue: "5609" diff --git a/.changes/1.8.0/Features-20240118-135651.yaml b/.changes/1.8.0/Features-20240118-135651.yaml deleted file mode 100644 index 33892b22d90..00000000000 --- a/.changes/1.8.0/Features-20240118-135651.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Align with order of unit test output when `actual` differs from `expected` -time: 2024-01-18T13:56:51.131001-07:00 -custom: - Author: dbeatty10 - Issue: "9370" diff --git a/.changes/1.8.0/Features-20240119-101335.yaml b/.changes/1.8.0/Features-20240119-101335.yaml deleted file mode 100644 index 0dcc711797c..00000000000 --- a/.changes/1.8.0/Features-20240119-101335.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Added support for external nodes in unit test nodes -time: 2024-01-19T10:13:35.589099-06:00 -custom: - Author: QMalcolm MichelleArk - Issue: "8944" diff --git a/.changes/1.8.0/Features-20240122-145854.yaml b/.changes/1.8.0/Features-20240122-145854.yaml deleted file mode 100644 index db3c49d8a2a..00000000000 --- a/.changes/1.8.0/Features-20240122-145854.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Enable unit testing versioned models -time: 2024-01-22T14:58:54.251484-05:00 -custom: - Author: gshank - Issue: "9344" diff --git a/.changes/1.8.0/Features-20240129-114753.yaml b/.changes/1.8.0/Features-20240129-114753.yaml deleted file mode 100644 index 2acd2d57040..00000000000 --- a/.changes/1.8.0/Features-20240129-114753.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Enable list command for unit tests -time: 2024-01-29T11:47:53.696961-05:00 -custom: - Author: gshank - Issue: "8508" diff --git a/.changes/1.8.0/Features-20240131-153535.yaml b/.changes/1.8.0/Features-20240131-153535.yaml deleted file mode 100644 index 9be4d39694b..00000000000 --- a/.changes/1.8.0/Features-20240131-153535.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Integration Test Optimizations -time: 2024-01-31T15:35:35.691224-05:00 -custom: - Author: peterallenwebb - Issue: "9498" diff --git a/.changes/1.8.0/Features-20240201-154956.yaml b/.changes/1.8.0/Features-20240201-154956.yaml deleted file mode 100644 index b87d3009e85..00000000000 --- a/.changes/1.8.0/Features-20240201-154956.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Accelerate integration tests with caching. -time: 2024-02-01T15:49:56.422651-05:00 -custom: - Author: peterallenwebb - Issue: "9498" diff --git a/.changes/1.8.0/Features-20240202-112644.yaml b/.changes/1.8.0/Features-20240202-112644.yaml deleted file mode 100644 index 95fc50e8163..00000000000 --- a/.changes/1.8.0/Features-20240202-112644.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Cache environment variables -time: 2024-02-02T11:26:44.614393-05:00 -custom: - Author: peterallenwebb - Issue: "9489" diff --git a/.changes/1.8.0/Features-20240215-120811.yaml b/.changes/1.8.0/Features-20240215-120811.yaml deleted file mode 100644 index 14ce1aee016..00000000000 --- a/.changes/1.8.0/Features-20240215-120811.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Support meta at the config level for Metric nodes -time: 2024-02-15T12:08:11.927789-06:00 -custom: - Author: emmyoop - Issue: "9441" diff --git a/.changes/1.8.0/Features-20240215-145814.yaml b/.changes/1.8.0/Features-20240215-145814.yaml deleted file mode 100644 index 644852ca0e8..00000000000 --- a/.changes/1.8.0/Features-20240215-145814.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Add cache to SavedQuery config -time: 2024-02-15T14:58:14.834651-06:00 -custom: - Author: emmyoop - Issue: "9540" diff --git a/.changes/1.8.0/Features-20240307-153622.yaml b/.changes/1.8.0/Features-20240307-153622.yaml deleted file mode 100644 index 80886a82c9b..00000000000 --- a/.changes/1.8.0/Features-20240307-153622.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Support scrubbing secret vars -time: 2024-03-07T15:36:22.754627+01:00 -custom: - Author: nielspardon - Issue: "7247" diff --git a/.changes/1.8.0/Features-20240312-140407.yaml b/.changes/1.8.0/Features-20240312-140407.yaml deleted file mode 100644 index a73c3bc1c85..00000000000 --- a/.changes/1.8.0/Features-20240312-140407.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Allow excluding resource types for build, list, and clone commands, and provide env vars -time: 2024-03-12T14:04:07.086017-04:00 -custom: - Author: gshank - Issue: "9237" diff --git a/.changes/1.8.0/Features-20240315-161209.yaml b/.changes/1.8.0/Features-20240315-161209.yaml deleted file mode 100644 index 4a428b973db..00000000000 --- a/.changes/1.8.0/Features-20240315-161209.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Features -body: SourceDefinition.meta represents source-level and table-level meta properties, - instead of only table-level -time: 2024-03-15T16:12:09.789935-04:00 -custom: - Author: michelleark - Issue: "9766" diff --git a/.changes/1.8.0/Features-20240322-103124.yaml b/.changes/1.8.0/Features-20240322-103124.yaml deleted file mode 100644 index 735dd44bdbc..00000000000 --- a/.changes/1.8.0/Features-20240322-103124.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Allow metrics in semantic layer filters. -time: 2024-03-22T10:31:24.76978-07:00 -custom: - Author: courtneyholcomb - Issue: "9804" diff --git a/.changes/1.8.0/Features-20240323-201230.yaml b/.changes/1.8.0/Features-20240323-201230.yaml deleted file mode 100644 index 3f981ecc7b3..00000000000 --- a/.changes/1.8.0/Features-20240323-201230.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Add wildcard support to the group selector method -time: 2024-03-23T20:12:30.715975-04:00 -custom: - Author: heysweet - Issue: "9811" diff --git a/.changes/1.8.0/Features-20240404-170728.yaml b/.changes/1.8.0/Features-20240404-170728.yaml deleted file mode 100644 index 6db7735acbc..00000000000 --- a/.changes/1.8.0/Features-20240404-170728.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: 'source freshness precomputes metadata-based freshness in batch, if possible ' -time: 2024-04-04T17:07:28.717868-07:00 -custom: - Author: michelleark - Issue: "8705" diff --git a/.changes/1.8.0/Features-20240405-175733.yaml b/.changes/1.8.0/Features-20240405-175733.yaml deleted file mode 100644 index 0346361fc15..00000000000 --- a/.changes/1.8.0/Features-20240405-175733.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Better error message when trying to select a disabled model -time: 2024-04-05T17:57:33.047963+02:00 -custom: - Author: SamuelBFavarin - Issue: "9747" diff --git a/.changes/1.8.0/Features-20240408-094132.yaml b/.changes/1.8.0/Features-20240408-094132.yaml deleted file mode 100644 index 0b7a251e926..00000000000 --- a/.changes/1.8.0/Features-20240408-094132.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Support SQL in unit testing fixtures -time: 2024-04-08T09:41:32.15936-04:00 -custom: - Author: gshank - Issue: "9405" diff --git a/.changes/1.8.0/Fixes-20231013-130943.yaml b/.changes/1.8.0/Fixes-20231013-130943.yaml deleted file mode 100644 index db89350ac9f..00000000000 --- a/.changes/1.8.0/Fixes-20231013-130943.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: For packages installed with tarball method, fetch metadata to resolve nested dependencies -time: 2023-10-13T13:09:43.188308-04:00 -custom: - Author: adamlopez - Issue: "8621" diff --git a/.changes/1.8.0/Fixes-20231016-163953.yaml b/.changes/1.8.0/Fixes-20231016-163953.yaml deleted file mode 100644 index ea21584bee1..00000000000 --- a/.changes/1.8.0/Fixes-20231016-163953.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Fix partial parsing not working for semantic model change -time: 2023-10-16T16:39:53.05058-07:00 -custom: - Author: ChenyuLInx - Issue: "8859" diff --git a/.changes/1.8.0/Fixes-20231024-110151.yaml b/.changes/1.8.0/Fixes-20231024-110151.yaml deleted file mode 100644 index 711f431be8a..00000000000 --- a/.changes/1.8.0/Fixes-20231024-110151.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Handle unknown `type_code` for model contracts -time: 2023-10-24T11:01:51.980781-06:00 -custom: - Author: dbeatty10 - Issue: 8877 8353 diff --git a/.changes/1.8.0/Fixes-20231024-145504.yaml b/.changes/1.8.0/Fixes-20231024-145504.yaml deleted file mode 100644 index b7dac02c150..00000000000 --- a/.changes/1.8.0/Fixes-20231024-145504.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Add back contract enforcement for temporary tables on postgres -time: 2023-10-24T14:55:04.051683-05:00 -custom: - Author: emmyoop - Issue: "8857" diff --git a/.changes/1.8.0/Fixes-20231024-155400.yaml b/.changes/1.8.0/Fixes-20231024-155400.yaml deleted file mode 100644 index cd10f06d005..00000000000 --- a/.changes/1.8.0/Fixes-20231024-155400.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Rework get_catalog implementation to retain previous adapter interface semantics -time: 2023-10-24T15:54:00.628086-04:00 -custom: - Author: peterallenwebb - Issue: "8846" diff --git a/.changes/1.8.0/Fixes-20231026-002536.yaml b/.changes/1.8.0/Fixes-20231026-002536.yaml deleted file mode 100644 index f14c9ec0e0b..00000000000 --- a/.changes/1.8.0/Fixes-20231026-002536.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Add version to fqn when version==0 -time: 2023-10-26T00:25:36.259356-05:00 -custom: - Author: aranke - Issue: "8836" diff --git a/.changes/1.8.0/Fixes-20231030-093734.yaml b/.changes/1.8.0/Fixes-20231030-093734.yaml deleted file mode 100644 index 7322dd5042b..00000000000 --- a/.changes/1.8.0/Fixes-20231030-093734.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Fix cased comparison in catalog-retrieval function. -time: 2023-10-30T09:37:34.258612-04:00 -custom: - Author: peterallenwebb - Issue: "8939" diff --git a/.changes/1.8.0/Fixes-20231031-005345.yaml b/.changes/1.8.0/Fixes-20231031-005345.yaml deleted file mode 100644 index 56afd9f324e..00000000000 --- a/.changes/1.8.0/Fixes-20231031-005345.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Catalog queries now assign the correct type to materialized views -time: 2023-10-31T00:53:45.486203-04:00 -custom: - Author: mikealfare - Issue: "8864" diff --git a/.changes/1.8.0/Fixes-20231031-144837.yaml b/.changes/1.8.0/Fixes-20231031-144837.yaml deleted file mode 100644 index 64b15e29dc9..00000000000 --- a/.changes/1.8.0/Fixes-20231031-144837.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Fix compilation exception running empty seed file and support new Integer agate data_type -time: 2023-10-31T14:48:37.774871-04:00 -custom: - Author: gshank - Issue: "8895" diff --git a/.changes/1.8.0/Fixes-20231101-155824.yaml b/.changes/1.8.0/Fixes-20231101-155824.yaml deleted file mode 100644 index dba6679a53e..00000000000 --- a/.changes/1.8.0/Fixes-20231101-155824.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Make relation filtering None-tolerant for maximal flexibility across adapters. -time: 2023-11-01T15:58:24.552054-04:00 -custom: - Author: peterallenwebb - Issue: "8974" diff --git a/.changes/1.8.0/Fixes-20231106-155933.yaml b/.changes/1.8.0/Fixes-20231106-155933.yaml deleted file mode 100644 index 9e4201e4962..00000000000 --- a/.changes/1.8.0/Fixes-20231106-155933.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Fixes -body: Update run_results.json from previous versions of dbt to support deferral and - rerun from failure -time: 2023-11-06T15:59:33.677915-05:00 -custom: - Author: jtcohen6 peterallenwebb - Issue: "9010" diff --git a/.changes/1.8.0/Fixes-20231107-092358.yaml b/.changes/1.8.0/Fixes-20231107-092358.yaml deleted file mode 100644 index 24b947a993f..00000000000 --- a/.changes/1.8.0/Fixes-20231107-092358.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Fix git repository with subdirectory for Deps -time: 2023-11-07T09:23:58.214271-08:00 -custom: - Author: ChenyuLInx - Issue: "9000" diff --git a/.changes/1.8.0/Fixes-20231107-094130.yaml b/.changes/1.8.0/Fixes-20231107-094130.yaml deleted file mode 100644 index c32d62de52f..00000000000 --- a/.changes/1.8.0/Fixes-20231107-094130.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Fixes -body: Use MANIFEST.in to recursively include all jinja templates; fixes issue where - some templates were not included in the distribution -time: 2023-11-07T09:41:30.121733-05:00 -custom: - Author: mikealfare - Issue: "9016" diff --git a/.changes/1.8.0/Fixes-20231113-114956.yaml b/.changes/1.8.0/Fixes-20231113-114956.yaml deleted file mode 100644 index 77bb210002c..00000000000 --- a/.changes/1.8.0/Fixes-20231113-114956.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Fix formatting of tarball information in packages-lock.yml -time: 2023-11-13T11:49:56.437007-08:00 -custom: - Author: ChenyuLInx QMalcolm - Issue: "9062" diff --git a/.changes/1.8.0/Fixes-20231113-154535.yaml b/.changes/1.8.0/Fixes-20231113-154535.yaml deleted file mode 100644 index f352830921f..00000000000 --- a/.changes/1.8.0/Fixes-20231113-154535.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Use seed file from disk for unit testing if rows not specified in YAML config -time: 2023-11-13T15:45:35.008565Z -custom: - Author: aranke - Issue: "8652" diff --git a/.changes/1.8.0/Fixes-20231127-154310.yaml b/.changes/1.8.0/Fixes-20231127-154310.yaml deleted file mode 100644 index 57dde2cb9fd..00000000000 --- a/.changes/1.8.0/Fixes-20231127-154310.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: 'deps: Lock git packages to commit SHA during resolution' -time: 2023-11-27T15:43:10.122069+01:00 -custom: - Author: jtcohen6 - Issue: "9050" diff --git a/.changes/1.8.0/Fixes-20231127-154347.yaml b/.changes/1.8.0/Fixes-20231127-154347.yaml deleted file mode 100644 index 9b2078b1c52..00000000000 --- a/.changes/1.8.0/Fixes-20231127-154347.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: 'deps: Use PackageRenderer to read package-lock.json' -time: 2023-11-27T15:43:47.842423+01:00 -custom: - Author: jtcohen6 - Issue: "9127" diff --git a/.changes/1.8.0/Fixes-20231127-165244.yaml b/.changes/1.8.0/Fixes-20231127-165244.yaml deleted file mode 100644 index 87147eb6305..00000000000 --- a/.changes/1.8.0/Fixes-20231127-165244.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Fixes -body: Ensure we produce valid jsonschema schemas for manifest, catalog, run-results, - and sources -time: 2023-11-27T16:52:44.590313-08:00 -custom: - Author: QMalcolm - Issue: "8991" diff --git a/.changes/1.8.0/Fixes-20231128-102111.yaml b/.changes/1.8.0/Fixes-20231128-102111.yaml deleted file mode 100644 index c3371708a11..00000000000 --- a/.changes/1.8.0/Fixes-20231128-102111.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Fix parsing f-strings in python models -time: 2023-11-28T10:21:11.596121-08:00 -custom: - Author: mederka - Issue: "6976" diff --git a/.changes/1.8.0/Fixes-20231128-155225.yaml b/.changes/1.8.0/Fixes-20231128-155225.yaml deleted file mode 100644 index 4b24cc37c25..00000000000 --- a/.changes/1.8.0/Fixes-20231128-155225.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: 'Get sources working again in dbt docs generate' -time: 2023-11-28T15:52:25.738256Z -custom: - Author: aranke - Issue: "9119" diff --git a/.changes/1.8.0/Fixes-20231213-220449.yaml b/.changes/1.8.0/Fixes-20231213-220449.yaml deleted file mode 100644 index 6da9f7ddcaa..00000000000 --- a/.changes/1.8.0/Fixes-20231213-220449.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Preserve the value of vars and the --full-refresh flags when using retry. -time: 2023-12-13T22:04:49.228294-05:00 -custom: - Author: peterallenwebb, ChenyuLInx - Issue: "9112" diff --git a/.changes/1.8.0/Fixes-20240106-003649.yaml b/.changes/1.8.0/Fixes-20240106-003649.yaml deleted file mode 100644 index b41086fb4d7..00000000000 --- a/.changes/1.8.0/Fixes-20240106-003649.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: fix lock-file bad indentation -time: 2024-01-06T00:36:49.547533+09:00 -custom: - Author: jx2lee - Issue: "9319" diff --git a/.changes/1.8.0/Fixes-20240108-232035.yaml b/.changes/1.8.0/Fixes-20240108-232035.yaml deleted file mode 100644 index 227332f7af1..00000000000 --- a/.changes/1.8.0/Fixes-20240108-232035.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: fix configuration of turning test warnings into failures with WARN_ERROR_OPTIONS -time: 2024-01-08T23:20:35.339102+09:00 -custom: - Author: jx2lee - Issue: "7761" diff --git a/.changes/1.8.0/Fixes-20240115-165310.yaml b/.changes/1.8.0/Fixes-20240115-165310.yaml deleted file mode 100644 index d05064bba61..00000000000 --- a/.changes/1.8.0/Fixes-20240115-165310.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Support reasonably long unit test names -time: 2024-01-15T16:53:10.42761-05:00 -custom: - Author: michelleark - Issue: "9015" diff --git a/.changes/1.8.0/Fixes-20240119-215214.yaml b/.changes/1.8.0/Fixes-20240119-215214.yaml deleted file mode 100644 index 90fc309c667..00000000000 --- a/.changes/1.8.0/Fixes-20240119-215214.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Fixes -body: Fix back-compat parsing for model-level 'tests', source table-level 'tests', - and 'tests' defined on model versions -time: 2024-01-19T21:52:14.090462+01:00 -custom: - Author: jtcohen6 - Issue: "9411" diff --git a/.changes/1.8.0/Fixes-20240124-142522.yaml b/.changes/1.8.0/Fixes-20240124-142522.yaml deleted file mode 100644 index 40a8b1a6aea..00000000000 --- a/.changes/1.8.0/Fixes-20240124-142522.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Fix retry command run from CLI -time: 2024-01-24T14:25:22.846199-08:00 -custom: - Author: ChenyuLInx - Issue: "9444" diff --git a/.changes/1.8.0/Fixes-20240125-155641.yaml b/.changes/1.8.0/Fixes-20240125-155641.yaml deleted file mode 100644 index c5e3b45d06f..00000000000 --- a/.changes/1.8.0/Fixes-20240125-155641.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Fix seed and source selection in `dbt docs generate` -time: 2024-01-25T15:56:41.557934-05:00 -custom: - Author: michelleark - Issue: "9161" diff --git a/.changes/1.8.0/Fixes-20240125-182243.yaml b/.changes/1.8.0/Fixes-20240125-182243.yaml deleted file mode 100644 index e6300cad13c..00000000000 --- a/.changes/1.8.0/Fixes-20240125-182243.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Fixes -body: Add TestGenerateCatalogWithExternalNodes, include empty nodes in node selection - during docs generate -time: 2024-01-25T18:22:43.253228-05:00 -custom: - Author: michelleark - Issue: "9456" diff --git a/.changes/1.8.0/Fixes-20240126-134234.yaml b/.changes/1.8.0/Fixes-20240126-134234.yaml deleted file mode 100644 index 1d38d339490..00000000000 --- a/.changes/1.8.0/Fixes-20240126-134234.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Fix node type plurals in FoundStats log message -time: 2024-01-26T13:42:34.651033+01:00 -custom: - Author: jtcohen6 - Issue: "9464" diff --git a/.changes/1.8.0/Fixes-20240130-124135.yaml b/.changes/1.8.0/Fixes-20240130-124135.yaml deleted file mode 100644 index 2ea4ff240c3..00000000000 --- a/.changes/1.8.0/Fixes-20240130-124135.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Fixes -body: Run manifest upgrade preprocessing on any older manifest version, including - v11 -time: 2024-01-30T12:41:35.899412+01:00 -custom: - Author: jtcohen6 - Issue: "9487" diff --git a/.changes/1.8.0/Fixes-20240201-124701.yaml b/.changes/1.8.0/Fixes-20240201-124701.yaml deleted file mode 100644 index 0c0b7d837e8..00000000000 --- a/.changes/1.8.0/Fixes-20240201-124701.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Fixes -body: Update 'compiled_code' context member logic to route based on command ('clone' - or not). Reimplement 'sql' context member as wrapper of 'compiled_code'. -time: 2024-02-01T12:47:01.488085+01:00 -custom: - Author: jtcohen6 - Issue: "9502" diff --git a/.changes/1.8.0/Fixes-20240201-164407.yaml b/.changes/1.8.0/Fixes-20240201-164407.yaml deleted file mode 100644 index a156a2a7dd5..00000000000 --- a/.changes/1.8.0/Fixes-20240201-164407.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Fix bug where Semantic Layer filter strings are parsed into lists. -time: 2024-02-01T16:44:07.697777-08:00 -custom: - Author: courtneyholcomb - Issue: "9507" diff --git a/.changes/1.8.0/Fixes-20240206-152435.yaml b/.changes/1.8.0/Fixes-20240206-152435.yaml deleted file mode 100644 index d5cecf873fd..00000000000 --- a/.changes/1.8.0/Fixes-20240206-152435.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Fix conflict with newer versions of Snowplow tracker -time: 2024-02-06T15:24:35.778891-06:00 -custom: - Author: edgarrmondragon akurdyukov - Issue: "8719" diff --git a/.changes/1.8.0/Fixes-20240206-161331.yaml b/.changes/1.8.0/Fixes-20240206-161331.yaml deleted file mode 100644 index b6a96549c4d..00000000000 --- a/.changes/1.8.0/Fixes-20240206-161331.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Initialize invocation context before test fixtures are built. -time: 2024-02-06T16:13:31.04575-05:00 -custom: - Author: peterallenwebb - Issue: '#9489' diff --git a/.changes/1.8.0/Fixes-20240207-150223.yaml b/.changes/1.8.0/Fixes-20240207-150223.yaml deleted file mode 100644 index cf34a3e9a7e..00000000000 --- a/.changes/1.8.0/Fixes-20240207-150223.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: When patching versioned models, set constraints after config -time: 2024-02-07T15:02:23.697345-05:00 -custom: - Author: gshank - Issue: "9364" diff --git a/.changes/1.8.0/Fixes-20240209-170146.yaml b/.changes/1.8.0/Fixes-20240209-170146.yaml deleted file mode 100644 index 5148219beda..00000000000 --- a/.changes/1.8.0/Fixes-20240209-170146.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: only include unmodified semantic mdodels in state:modified selection -time: 2024-02-09T17:01:46.676097-05:00 -custom: - Author: michelleark - Issue: "9548" diff --git a/.changes/1.8.0/Fixes-20240212-144733.yaml b/.changes/1.8.0/Fixes-20240212-144733.yaml deleted file mode 100644 index cdf9df56b78..00000000000 --- a/.changes/1.8.0/Fixes-20240212-144733.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Set query headers when manifest is passed in to dbtRunner -time: 2024-02-12T14:47:33.092877-05:00 -custom: - Author: gshank - Issue: "9546" diff --git a/.changes/1.8.0/Fixes-20240212-154728.yaml b/.changes/1.8.0/Fixes-20240212-154728.yaml deleted file mode 100644 index 6e8c070764f..00000000000 --- a/.changes/1.8.0/Fixes-20240212-154728.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Fix Semantic Model Compare node relations -time: 2024-02-12T15:47:28.752107-08:00 -custom: - Author: ChenyuLInx - Issue: "9548" diff --git a/.changes/1.8.0/Fixes-20240212-165619.yaml b/.changes/1.8.0/Fixes-20240212-165619.yaml deleted file mode 100644 index 65acaeef40a..00000000000 --- a/.changes/1.8.0/Fixes-20240212-165619.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Store node_info in node associated logging events -time: 2024-02-12T16:56:19.954358-05:00 -custom: - Author: gshank - Issue: "9557" diff --git a/.changes/1.8.0/Fixes-20240216-145632.yaml b/.changes/1.8.0/Fixes-20240216-145632.yaml deleted file mode 100644 index a02027f66a5..00000000000 --- a/.changes/1.8.0/Fixes-20240216-145632.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Tighten exception handling to avoid worker thread hangs. -time: 2024-02-16T14:56:32.858967-05:00 -custom: - Author: peterallenwebb - Issue: "9583" diff --git a/.changes/1.8.0/Fixes-20240220-165453.yaml b/.changes/1.8.0/Fixes-20240220-165453.yaml deleted file mode 100644 index 11dad8f558c..00000000000 --- a/.changes/1.8.0/Fixes-20240220-165453.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Clearer no-op logging in stubbed SavedQueryRunner -time: 2024-02-20T16:54:53.623096-05:00 -custom: - Author: jtcohen6 - Issue: "9533" diff --git a/.changes/1.8.0/Fixes-20240222-100958.yaml b/.changes/1.8.0/Fixes-20240222-100958.yaml deleted file mode 100644 index 1fb2ff46c6f..00000000000 --- a/.changes/1.8.0/Fixes-20240222-100958.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Fix node_info contextvar handling so incorrect node_info doesn't persist -time: 2024-02-22T10:09:58.122809-05:00 -custom: - Author: gshank - Issue: "8866" diff --git a/.changes/1.8.0/Fixes-20240223-162107.yaml b/.changes/1.8.0/Fixes-20240223-162107.yaml deleted file mode 100644 index 446cf6d077a..00000000000 --- a/.changes/1.8.0/Fixes-20240223-162107.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Add target-path to retry -time: 2024-02-23T16:21:07.83639Z -custom: - Author: aranke - Issue: "8948" diff --git a/.changes/1.8.0/Fixes-20240226-173227.yaml b/.changes/1.8.0/Fixes-20240226-173227.yaml deleted file mode 100644 index fa1bf0ab8cf..00000000000 --- a/.changes/1.8.0/Fixes-20240226-173227.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Do not add duplicate input_measures -time: 2024-02-26T17:32:27.837427-05:00 -custom: - Author: gshank - Issue: "9360" diff --git a/.changes/1.8.0/Fixes-20240228-135928.yaml b/.changes/1.8.0/Fixes-20240228-135928.yaml deleted file mode 100644 index 3b908608ef6..00000000000 --- a/.changes/1.8.0/Fixes-20240228-135928.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Fixes -body: Throw a ParsingError if a primary key constraint is defined on multiple columns - or at both the column and model level. -time: 2024-02-28T13:59:28.728561-06:00 -custom: - Author: emmyoop - Issue: "9581" diff --git a/.changes/1.8.0/Fixes-20240229-114207.yaml b/.changes/1.8.0/Fixes-20240229-114207.yaml deleted file mode 100644 index aebb857f523..00000000000 --- a/.changes/1.8.0/Fixes-20240229-114207.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: 'Bug fix: don''t parse Jinja in filters for input metrics or measures.' -time: 2024-02-29T11:42:07.259143-08:00 -custom: - Author: courtneyholcomb - Issue: "9582" diff --git a/.changes/1.8.0/Fixes-20240301-000355.yaml b/.changes/1.8.0/Fixes-20240301-000355.yaml deleted file mode 100644 index 7172982750f..00000000000 --- a/.changes/1.8.0/Fixes-20240301-000355.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Fixes -body: Fix traceback parsing for exceptions raised due to csv fixtures moved into or - out of fixture/subfolders. -time: 2024-03-01T00:03:55.753473609+01:00 -custom: - Author: slothkong - Issue: "9570" diff --git a/.changes/1.8.0/Fixes-20240301-135536.yaml b/.changes/1.8.0/Fixes-20240301-135536.yaml deleted file mode 100644 index 2a96bd7eeec..00000000000 --- a/.changes/1.8.0/Fixes-20240301-135536.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Fix partial parsing `KeyError` on deleted schema files -time: 2024-03-01T13:55:36.533176-08:00 -custom: - Author: QMalcolm - Issue: "8860" diff --git a/.changes/1.8.0/Fixes-20240307-142459.yaml b/.changes/1.8.0/Fixes-20240307-142459.yaml deleted file mode 100644 index 14c08da2816..00000000000 --- a/.changes/1.8.0/Fixes-20240307-142459.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Support saved queries in `dbt list` -time: 2024-03-07T14:24:59.530072-05:00 -custom: - Author: QMalcolm jtcohen6 - Issue: "9532" diff --git a/.changes/1.8.0/Fixes-20240312-165357.yaml b/.changes/1.8.0/Fixes-20240312-165357.yaml deleted file mode 100644 index 7a391118015..00000000000 --- a/.changes/1.8.0/Fixes-20240312-165357.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Fixes -body: include sources in catalog.json when over 100 relations selected for catalog - generation -time: 2024-03-12T16:53:57.714118-04:00 -custom: - Author: michelleark - Issue: "9755" diff --git a/.changes/1.8.0/Fixes-20240315-145538.yaml b/.changes/1.8.0/Fixes-20240315-145538.yaml deleted file mode 100644 index 8723734db86..00000000000 --- a/.changes/1.8.0/Fixes-20240315-145538.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Support overriding macros in packages in unit testing -time: 2024-03-15T14:55:38.958553-04:00 -custom: - Author: michelleark - Issue: "9624" diff --git a/.changes/1.8.0/Fixes-20240316-231152.yaml b/.changes/1.8.0/Fixes-20240316-231152.yaml deleted file mode 100644 index 725d8bbc3c5..00000000000 --- a/.changes/1.8.0/Fixes-20240316-231152.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Handle exceptions for failing on-run-* hooks in source freshness -time: 2024-03-16T23:11:52.819014-07:00 -custom: - Author: aranke - Issue: "9511" diff --git a/.changes/1.8.0/Fixes-20240317-005611.yaml b/.changes/1.8.0/Fixes-20240317-005611.yaml deleted file mode 100644 index 0878779174a..00000000000 --- a/.changes/1.8.0/Fixes-20240317-005611.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: 'Validation of unit test parsing for incremental models' -time: 2024-03-17T00:56:11.855232-07:00 -custom: - Author: aranke - Issue: "9593" diff --git a/.changes/1.8.0/Fixes-20240318-153338.yaml b/.changes/1.8.0/Fixes-20240318-153338.yaml deleted file mode 100644 index c1328ce8957..00000000000 --- a/.changes/1.8.0/Fixes-20240318-153338.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Fix use of retry command on command using defer -time: 2024-03-18T15:33:38.90058-04:00 -custom: - Author: gshank - Issue: "9770" diff --git a/.changes/1.8.0/Fixes-20240323-122018.yaml b/.changes/1.8.0/Fixes-20240323-122018.yaml deleted file mode 100644 index a165511283c..00000000000 --- a/.changes/1.8.0/Fixes-20240323-122018.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Make `args` variable to be un-modified by `dbt.invoke(args)` -time: 2024-03-23T12:20:18.170948-06:00 -custom: - Author: dbeatty10 - Issue: 8938 9787 diff --git a/.changes/1.8.0/Fixes-20240323-124558.yaml b/.changes/1.8.0/Fixes-20240323-124558.yaml deleted file mode 100644 index b36173325ba..00000000000 --- a/.changes/1.8.0/Fixes-20240323-124558.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Only create the packages-install-path / dbt_packages folder during dbt deps -time: 2024-03-23T12:45:58.159017-06:00 -custom: - Author: dbeatty10 - Issue: 6985 9584 diff --git a/.changes/1.8.0/Fixes-20240326-003411.yaml b/.changes/1.8.0/Fixes-20240326-003411.yaml deleted file mode 100644 index f5b5fe9e095..00000000000 --- a/.changes/1.8.0/Fixes-20240326-003411.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Unit test path outputs -time: 2024-03-26T00:34:11.162594Z -custom: - Author: aranke - Issue: "9608" diff --git a/.changes/1.8.0/Fixes-20240326-162100.yaml b/.changes/1.8.0/Fixes-20240326-162100.yaml deleted file mode 100644 index f4c181dbb31..00000000000 --- a/.changes/1.8.0/Fixes-20240326-162100.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Fixes -body: Fix assorted source freshness edgecases so check is run or actionable information - is given -time: 2024-03-26T16:21:00.008936-07:00 -custom: - Author: QMalcolm - Issue: "9078" diff --git a/.changes/1.8.0/Fixes-20240327-150013.yaml b/.changes/1.8.0/Fixes-20240327-150013.yaml deleted file mode 100644 index f988dd5c1ab..00000000000 --- a/.changes/1.8.0/Fixes-20240327-150013.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Fixes -body: '"Fix Docker release process to account for both historical and current versions - of `dbt-postgres`' -time: 2024-03-27T15:00:13.388268-04:00 -custom: - Author: mikealfare - Issue: "9827" diff --git a/.changes/1.8.0/Fixes-20240402-135556.yaml b/.changes/1.8.0/Fixes-20240402-135556.yaml deleted file mode 100644 index b6ba62fc0f7..00000000000 --- a/.changes/1.8.0/Fixes-20240402-135556.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Exclude password-like fields for considering reparse -time: 2024-04-02T13:55:56.169953-07:00 -custom: - Author: ChenyuLInx - Issue: "9795" diff --git a/.changes/1.8.0/Fixes-20240408-130646.yaml b/.changes/1.8.0/Fixes-20240408-130646.yaml deleted file mode 100644 index 9aeaa94a27c..00000000000 --- a/.changes/1.8.0/Fixes-20240408-130646.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Fixed query comments test -time: 2024-04-08T13:06:46.648144+02:00 -custom: - Author: damian3031 - Issue: "9860" diff --git a/.changes/1.8.0/Fixes-20240409-233347.yaml b/.changes/1.8.0/Fixes-20240409-233347.yaml deleted file mode 100644 index db929c16af0..00000000000 --- a/.changes/1.8.0/Fixes-20240409-233347.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Begin warning people about spaces in model names -time: 2024-04-09T23:33:47.850166-07:00 -custom: - Author: QMalcolm - Issue: "9397" diff --git a/.changes/1.8.0/Fixes-20240412-095718.yaml b/.changes/1.8.0/Fixes-20240412-095718.yaml deleted file mode 100644 index 98fb9333f8d..00000000000 --- a/.changes/1.8.0/Fixes-20240412-095718.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Disambiguiate FreshnessConfigProblem error message -time: 2024-04-12T09:57:18.417882-07:00 -custom: - Author: michelleark - Issue: "9891" diff --git a/.changes/1.8.0/Security-20240222-152445.yaml b/.changes/1.8.0/Security-20240222-152445.yaml deleted file mode 100644 index e21e013310e..00000000000 --- a/.changes/1.8.0/Security-20240222-152445.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Security -body: Update Jinja2 to >= 3.1.3 to address CVE-2024-22195 -time: 2024-02-22T15:24:45.158305-08:00 -custom: - Author: QMalcolm - Issue: 9638 diff --git a/.changes/1.8.0/Security-20240417-141316.yaml b/.changes/1.8.0/Security-20240417-141316.yaml deleted file mode 100644 index 6611cafb443..00000000000 --- a/.changes/1.8.0/Security-20240417-141316.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Security -body: Bump sqlparse to >=0.5.0, <0.6.0 to address GHSA-2m57-hf25-phgg -time: 2024-04-17T14:13:16.896353-05:00 -custom: - Author: emmoop - Issue: "9951" diff --git a/.changes/1.8.0/Under the Hood-20230831-164435.yaml b/.changes/1.8.0/Under the Hood-20230831-164435.yaml deleted file mode 100644 index efa8a42cece..00000000000 --- a/.changes/1.8.0/Under the Hood-20230831-164435.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Added more type annotations. -time: 2023-08-31T16:44:35.737954-04:00 -custom: - Author: peterallenwebb - Issue: "8537" diff --git a/.changes/1.8.0/Under the Hood-20230912-190506.yaml b/.changes/1.8.0/Under the Hood-20230912-190506.yaml deleted file mode 100644 index 41804b6c0c7..00000000000 --- a/.changes/1.8.0/Under the Hood-20230912-190506.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Add unit testing functional tests -time: 2023-09-12T19:05:06.023126-04:00 -custom: - Author: gshank - Issue: "8512" diff --git a/.changes/1.8.0/Under the Hood-20231026-184953.yaml b/.changes/1.8.0/Under the Hood-20231026-184953.yaml deleted file mode 100644 index cdfbf25be5f..00000000000 --- a/.changes/1.8.0/Under the Hood-20231026-184953.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Remove usage of dbt.include.global_project in dbt/adapters -time: 2023-10-26T18:49:53.36449-04:00 -custom: - Author: michelleark - Issue: "8925" diff --git a/.changes/1.8.0/Under the Hood-20231027-140048.yaml b/.changes/1.8.0/Under the Hood-20231027-140048.yaml deleted file mode 100644 index 1baa6adf97f..00000000000 --- a/.changes/1.8.0/Under the Hood-20231027-140048.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Add a no-op runner for Saved Qeury -time: 2023-10-27T14:00:48.4755-07:00 -custom: - Author: ChenyuLInx - Issue: "8893" diff --git a/.changes/1.8.0/Under the Hood-20231101-102758.yaml b/.changes/1.8.0/Under the Hood-20231101-102758.yaml deleted file mode 100644 index 790cd9ec2f0..00000000000 --- a/.changes/1.8.0/Under the Hood-20231101-102758.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: remove dbt.flags.MP_CONTEXT usage in dbt/adapters -time: 2023-11-01T10:27:58.790153-04:00 -custom: - Author: michelleark - Issue: "8967" diff --git a/.changes/1.8.0/Under the Hood-20231101-173124.yaml b/.changes/1.8.0/Under the Hood-20231101-173124.yaml deleted file mode 100644 index 5a4656645f4..00000000000 --- a/.changes/1.8.0/Under the Hood-20231101-173124.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: 'Remove usage of dbt.flags.LOG_CACHE_EVENTS in dbt/adapters' -time: 2023-11-01T17:31:24.974093-04:00 -custom: - Author: michelleark - Issue: "8969" diff --git a/.changes/1.8.0/Under the Hood-20231103-195222.yaml b/.changes/1.8.0/Under the Hood-20231103-195222.yaml deleted file mode 100644 index 6feeaebb592..00000000000 --- a/.changes/1.8.0/Under the Hood-20231103-195222.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Under the Hood -body: Move CatalogRelationTypes test case to the shared test suite to be reused by - adapter maintainers -time: 2023-11-03T19:52:22.694394-04:00 -custom: - Author: mikealfare - Issue: "8952" diff --git a/.changes/1.8.0/Under the Hood-20231106-080422.yaml b/.changes/1.8.0/Under the Hood-20231106-080422.yaml deleted file mode 100644 index 44eff6517b3..00000000000 --- a/.changes/1.8.0/Under the Hood-20231106-080422.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Treat SystemExit as an interrupt if raised during node execution. -time: 2023-11-06T08:04:22.022179-05:00 -custom: - Author: benmosher - Issue: n/a diff --git a/.changes/1.8.0/Under the Hood-20231106-105730.yaml b/.changes/1.8.0/Under the Hood-20231106-105730.yaml deleted file mode 100644 index 6678ae0634d..00000000000 --- a/.changes/1.8.0/Under the Hood-20231106-105730.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Removing unused 'documentable' -time: 2023-11-06T10:57:30.694056-08:00 -custom: - Author: QMalcolm - Issue: "8871" diff --git a/.changes/1.8.0/Under the Hood-20231107-135728.yaml b/.changes/1.8.0/Under the Hood-20231107-135728.yaml deleted file mode 100644 index 025c871519a..00000000000 --- a/.changes/1.8.0/Under the Hood-20231107-135728.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Remove use of dbt/core exceptions in dbt/adapter -time: 2023-11-07T13:57:28.683727-08:00 -custom: - Author: colin-rogers-dbt MichelleArk - Issue: "8920" diff --git a/.changes/1.8.0/Under the Hood-20231107-191546.yaml b/.changes/1.8.0/Under the Hood-20231107-191546.yaml deleted file mode 100644 index d81c0448c63..00000000000 --- a/.changes/1.8.0/Under the Hood-20231107-191546.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Cache dbt plugin modules to improve integration test performance -time: 2023-11-07T19:15:46.170151-05:00 -custom: - Author: peterallenwebb - Issue: "9029" diff --git a/.changes/1.8.0/Under the Hood-20231108-163613.yaml b/.changes/1.8.0/Under the Hood-20231108-163613.yaml deleted file mode 100644 index 091c09bfe32..00000000000 --- a/.changes/1.8.0/Under the Hood-20231108-163613.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Consolidate deferral methods & flags -time: 2023-11-08T16:36:13.234324-05:00 -custom: - Author: jtcohen6 - Issue: 7965 8715 diff --git a/.changes/1.8.0/Under the Hood-20231111-175350.yaml b/.changes/1.8.0/Under the Hood-20231111-175350.yaml deleted file mode 100644 index c58708f7582..00000000000 --- a/.changes/1.8.0/Under the Hood-20231111-175350.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Under the Hood -body: Fix test_current_timestamp_matches_utc test; allow for MacOS runner system clock - variance -time: 2023-11-11T17:53:50.098843-05:00 -custom: - Author: mikealfare - Issue: "9057" diff --git a/.changes/1.8.0/Under the Hood-20231116-174251.yaml b/.changes/1.8.0/Under the Hood-20231116-174251.yaml deleted file mode 100644 index 11f02a2661e..00000000000 --- a/.changes/1.8.0/Under the Hood-20231116-174251.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Under the Hood -body: Remove usage of dbt.deprecations in dbt/adapters, enable core & adapter-specific - event types and protos -time: 2023-11-16T17:42:51.005023-05:00 -custom: - Author: michelleark - Issue: 8927 8918 diff --git a/.changes/1.8.0/Under the Hood-20231120-134735.yaml b/.changes/1.8.0/Under the Hood-20231120-134735.yaml deleted file mode 100644 index e312d9b1300..00000000000 --- a/.changes/1.8.0/Under the Hood-20231120-134735.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Clean up unused adaptor folders -time: 2023-11-20T13:47:35.923794-08:00 -custom: - Author: ChenyuLInx - Issue: "9123" diff --git a/.changes/1.8.0/Under the Hood-20231120-183214.yaml b/.changes/1.8.0/Under the Hood-20231120-183214.yaml deleted file mode 100644 index 570dd360d8c..00000000000 --- a/.changes/1.8.0/Under the Hood-20231120-183214.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Under the Hood -body: Move column constraints into common/contracts, removing another dependency of - adapters on core. -time: 2023-11-20T18:32:14.859503-05:00 -custom: - Author: peterallenwebb - Issue: "9024" diff --git a/.changes/1.8.0/Under the Hood-20231128-170732.yaml b/.changes/1.8.0/Under the Hood-20231128-170732.yaml deleted file mode 100644 index d1afc0086cd..00000000000 --- a/.changes/1.8.0/Under the Hood-20231128-170732.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Move dbt.semver to dbt.common.semver and update references. -time: 2023-11-28T17:07:32.172421-08:00 -custom: - Author: versusfacit - Issue: "9039" diff --git a/.changes/1.8.0/Under the Hood-20231130-135432.yaml b/.changes/1.8.0/Under the Hood-20231130-135432.yaml deleted file mode 100644 index bc683ea3307..00000000000 --- a/.changes/1.8.0/Under the Hood-20231130-135432.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Move lowercase utils method to common -time: 2023-11-30T13:54:32.561673-08:00 -custom: - Author: colin-rogers-dbt - Issue: "9180" diff --git a/.changes/1.8.0/Under the Hood-20231205-093544.yaml b/.changes/1.8.0/Under the Hood-20231205-093544.yaml deleted file mode 100644 index fdb150c300b..00000000000 --- a/.changes/1.8.0/Under the Hood-20231205-093544.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Remove usages of dbt.clients.jinja in dbt/adapters -time: 2023-12-05T09:35:44.845352+09:00 -custom: - Author: michelleark - Issue: "9205" diff --git a/.changes/1.8.0/Under the Hood-20231205-120559.yaml b/.changes/1.8.0/Under the Hood-20231205-120559.yaml deleted file mode 100644 index a209bda9f6c..00000000000 --- a/.changes/1.8.0/Under the Hood-20231205-120559.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Remove usage of dbt.contracts in dbt/adapters -time: 2023-12-05T12:05:59.936775+09:00 -custom: - Author: michelleark - Issue: "9208" diff --git a/.changes/1.8.0/Under the Hood-20231205-165812.yaml b/.changes/1.8.0/Under the Hood-20231205-165812.yaml deleted file mode 100644 index 8dcf402535c..00000000000 --- a/.changes/1.8.0/Under the Hood-20231205-165812.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Remove usage of dbt.contracts.graph.nodes.ResultNode in dbt/adapters -time: 2023-12-05T16:58:12.932172+09:00 -custom: - Author: michelleark - Issue: "9214" diff --git a/.changes/1.8.0/Under the Hood-20231205-170725.yaml b/.changes/1.8.0/Under the Hood-20231205-170725.yaml deleted file mode 100644 index 2018825bcff..00000000000 --- a/.changes/1.8.0/Under the Hood-20231205-170725.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Introduce RelationConfig Protocol, consolidate Relation.create_from -time: 2023-12-05T17:07:25.33861+09:00 -custom: - Author: michelleark - Issue: "9215" diff --git a/.changes/1.8.0/Under the Hood-20231205-185022.yaml b/.changes/1.8.0/Under the Hood-20231205-185022.yaml deleted file mode 100644 index 7d7b8cae1c1..00000000000 --- a/.changes/1.8.0/Under the Hood-20231205-185022.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Under the Hood -body: Move BaseConfig, Metadata and various other contract classes from model_config - to common/contracts/config -time: 2023-12-05T18:50:22.321229-08:00 -custom: - Author: colin-rorgers-dbt - Issue: "8919" diff --git a/.changes/1.8.0/Under the Hood-20231205-235830.yaml b/.changes/1.8.0/Under the Hood-20231205-235830.yaml deleted file mode 100644 index a533ffb4a4b..00000000000 --- a/.changes/1.8.0/Under the Hood-20231205-235830.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: remove manifest from adapter.set_relations_cache signature -time: 2023-12-05T23:58:30.920144+09:00 -custom: - Author: michelleark - Issue: "9217" diff --git a/.changes/1.8.0/Under the Hood-20231206-000343.yaml b/.changes/1.8.0/Under the Hood-20231206-000343.yaml deleted file mode 100644 index 564b61e89aa..00000000000 --- a/.changes/1.8.0/Under the Hood-20231206-000343.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: ' remove manifest from adapter catalog method signatures' -time: 2023-12-06T00:03:43.824252+09:00 -custom: - Author: michelleark - Issue: "9218" diff --git a/.changes/1.8.0/Under the Hood-20231207-111554.yaml b/.changes/1.8.0/Under the Hood-20231207-111554.yaml deleted file mode 100644 index 8dec8ed18e4..00000000000 --- a/.changes/1.8.0/Under the Hood-20231207-111554.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Add MacroResolverProtocol, remove lazy loading of manifest in adapter.execute_macro -time: 2023-12-07T11:15:54.427818+09:00 -custom: - Author: michelleark - Issue: "9244" diff --git a/.changes/1.8.0/Under the Hood-20231207-224139.yaml b/.changes/1.8.0/Under the Hood-20231207-224139.yaml deleted file mode 100644 index 8c4f4fd3c1f..00000000000 --- a/.changes/1.8.0/Under the Hood-20231207-224139.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: pass query header context to MacroQueryStringSetter -time: 2023-12-07T22:41:39.498024+09:00 -custom: - Author: michelleark - Issue: 9249 9250 diff --git a/.changes/1.8.0/Under the Hood-20231208-004854.yaml b/.changes/1.8.0/Under the Hood-20231208-004854.yaml deleted file mode 100644 index e9d4a6fd9c5..00000000000 --- a/.changes/1.8.0/Under the Hood-20231208-004854.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: add macro_context_generator on adapter -time: 2023-12-08T00:48:54.506911+09:00 -custom: - Author: michelleark - Issue: "9247" diff --git a/.changes/1.8.0/Under the Hood-20231212-154842.yaml b/.changes/1.8.0/Under the Hood-20231212-154842.yaml deleted file mode 100644 index 8ae42fa6482..00000000000 --- a/.changes/1.8.0/Under the Hood-20231212-154842.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: pass mp_context to adapter factory as argument instead of import -time: 2023-12-12T15:48:42.866175-08:00 -custom: - Author: colin-rogers-dbt - Issue: "9025" diff --git a/.changes/1.8.0/Under the Hood-20231214-122134.yaml b/.changes/1.8.0/Under the Hood-20231214-122134.yaml deleted file mode 100644 index 97f98fb0592..00000000000 --- a/.changes/1.8.0/Under the Hood-20231214-122134.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: have dbt-postgres use RelationConfig protocol for materialized views' -time: 2023-12-14T12:21:34.756973-08:00 -custom: - Author: colin-rogers-dbt - Issue: "9292" diff --git a/.changes/1.8.0/Under the Hood-20231214-164107.yaml b/.changes/1.8.0/Under the Hood-20231214-164107.yaml deleted file mode 100644 index ded8a3b3c7c..00000000000 --- a/.changes/1.8.0/Under the Hood-20231214-164107.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: move system.py to common as dbt-bigquery relies on it to call gcloud -time: 2023-12-14T16:41:07.539814-08:00 -custom: - Author: colin-rogers-dbt - Issue: "9293" diff --git a/.changes/1.8.0/Under the Hood-20240103-145843.yaml b/.changes/1.8.0/Under the Hood-20240103-145843.yaml deleted file mode 100644 index dd7014230c5..00000000000 --- a/.changes/1.8.0/Under the Hood-20240103-145843.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Under the Hood -body: Reorganizing event definitions to define core events in dbt/events rather than - dbt/common -time: 2024-01-03T14:58:43.607499-05:00 -custom: - Author: michelleark - Issue: "9152" diff --git a/.changes/1.8.0/Under the Hood-20240104-133249.yaml b/.changes/1.8.0/Under the Hood-20240104-133249.yaml deleted file mode 100644 index b3fb06a90ba..00000000000 --- a/.changes/1.8.0/Under the Hood-20240104-133249.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: move exceptions used only in dbt/common to dbt/common/exceptions -time: 2024-01-04T13:32:49.076149-05:00 -custom: - Author: michelleark - Issue: "9332" diff --git a/.changes/1.8.0/Under the Hood-20240104-135849.yaml b/.changes/1.8.0/Under the Hood-20240104-135849.yaml deleted file mode 100644 index 080016db8fb..00000000000 --- a/.changes/1.8.0/Under the Hood-20240104-135849.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Remove usage of dbt.adapters.factory in dbt/common -time: 2024-01-04T13:58:49.221966-05:00 -custom: - Author: michelleark - Issue: "9334" diff --git a/.changes/1.8.0/Under the Hood-20240104-165248.yaml b/.changes/1.8.0/Under the Hood-20240104-165248.yaml deleted file mode 100644 index 867107a54a8..00000000000 --- a/.changes/1.8.0/Under the Hood-20240104-165248.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Under the Hood -body: Accept valid_error_names in WarnErrorOptions constructor, remove global usage - of event modules -time: 2024-01-04T16:52:48.173716-05:00 -custom: - Author: michelleark - Issue: "9337" diff --git a/.changes/1.8.0/Under the Hood-20240108-160140.yaml b/.changes/1.8.0/Under the Hood-20240108-160140.yaml deleted file mode 100644 index 2c4f9f8eaa8..00000000000 --- a/.changes/1.8.0/Under the Hood-20240108-160140.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Move result objects to dbt.artifacts -time: 2024-01-08T16:01:40.20348-05:00 -custom: - Author: gshank - Issue: "9193" diff --git a/.changes/1.8.0/Under the Hood-20240109-091856.yaml b/.changes/1.8.0/Under the Hood-20240109-091856.yaml deleted file mode 100644 index 0d2c8c7c46a..00000000000 --- a/.changes/1.8.0/Under the Hood-20240109-091856.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: dbt Labs OSS standardization of docs and templates. -time: 2024-01-09T09:18:56.686698+11:00 -custom: - Author: tonayya - Issue: "9252" diff --git a/.changes/1.8.0/Under the Hood-20240110-105734.yaml b/.changes/1.8.0/Under the Hood-20240110-105734.yaml deleted file mode 100644 index 5c8b26e550e..00000000000 --- a/.changes/1.8.0/Under the Hood-20240110-105734.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Add dbt-common as a dependency and remove dbt/common -time: 2024-01-10T10:57:34.054908-05:00 -custom: - Author: michelleark emmyoop - Issue: "9357" diff --git a/.changes/1.8.0/Under the Hood-20240110-161723.yaml b/.changes/1.8.0/Under the Hood-20240110-161723.yaml deleted file mode 100644 index 1ad7d8e791d..00000000000 --- a/.changes/1.8.0/Under the Hood-20240110-161723.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: move cache exceptions to dbt/adapters -time: 2024-01-10T16:17:23.845087-05:00 -custom: - Author: michelleark - Issue: "9362" diff --git a/.changes/1.8.0/Under the Hood-20240122-165446.yaml b/.changes/1.8.0/Under the Hood-20240122-165446.yaml deleted file mode 100644 index b0f95e661c9..00000000000 --- a/.changes/1.8.0/Under the Hood-20240122-165446.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Clean up macro contexts. -time: 2024-01-22T16:54:46.247418-05:00 -custom: - Author: peterallenwebb - Issue: "9422" diff --git a/.changes/1.8.0/Under the Hood-20240123-114855.yaml b/.changes/1.8.0/Under the Hood-20240123-114855.yaml deleted file mode 100644 index 4e800a06882..00000000000 --- a/.changes/1.8.0/Under the Hood-20240123-114855.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Add the @requires.manifest decorator to the retry command. -time: 2024-01-23T11:48:55.627982-06:00 -custom: - Author: emmyoop - Issue: "9426" diff --git a/.changes/1.8.0/Under the Hood-20240123-142256.yaml b/.changes/1.8.0/Under the Hood-20240123-142256.yaml deleted file mode 100644 index fd3ea99ef62..00000000000 --- a/.changes/1.8.0/Under the Hood-20240123-142256.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Move WritableManifest + Documentation to dbt/artifacts -time: 2024-01-23T14:22:56.488252-05:00 -custom: - Author: michelleark - Issue: 9378 9379 diff --git a/.changes/1.8.0/Under the Hood-20240125-095453.yaml b/.changes/1.8.0/Under the Hood-20240125-095453.yaml deleted file mode 100644 index 2edb1eb487b..00000000000 --- a/.changes/1.8.0/Under the Hood-20240125-095453.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Define Macro and Group resources in dbt/artifacts -time: 2024-01-25T09:54:53.974332-05:00 -custom: - Author: michelleark - Issue: 9381 9382 diff --git a/.changes/1.8.0/Under the Hood-20240126-164038.yaml b/.changes/1.8.0/Under the Hood-20240126-164038.yaml deleted file mode 100644 index 6d542ada4f7..00000000000 --- a/.changes/1.8.0/Under the Hood-20240126-164038.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Move `SavedQuery` data definition to `dbt/artifacts` -time: 2024-01-26T16:40:38.790993-08:00 -custom: - Author: QMalcolm - Issue: "9386" diff --git a/.changes/1.8.0/Under the Hood-20240129-130549.yaml b/.changes/1.8.0/Under the Hood-20240129-130549.yaml deleted file mode 100644 index a961334bd94..00000000000 --- a/.changes/1.8.0/Under the Hood-20240129-130549.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Migrate data parts of `Metric` node to dbt/artifacts -time: 2024-01-29T13:05:49.04139-08:00 -custom: - Author: QMalcolm - Issue: "9383" diff --git a/.changes/1.8.0/Under the Hood-20240129-163800.yaml b/.changes/1.8.0/Under the Hood-20240129-163800.yaml deleted file mode 100644 index 0e724751aae..00000000000 --- a/.changes/1.8.0/Under the Hood-20240129-163800.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Move data portion of `SemanticModel` to dbt/artifacts -time: 2024-01-29T16:38:00.245253-08:00 -custom: - Author: QMalcolm - Issue: "9387" diff --git a/.changes/1.8.0/Under the Hood-20240130-161637.yaml b/.changes/1.8.0/Under the Hood-20240130-161637.yaml deleted file mode 100644 index 17d274a8595..00000000000 --- a/.changes/1.8.0/Under the Hood-20240130-161637.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Move data parts of `Exposure` class to dbt/artifacts -time: 2024-01-30T16:16:37.176038-08:00 -custom: - Author: QMalcolm - Issue: "9380" diff --git a/.changes/1.8.0/Under the Hood-20240201-125416.yaml b/.changes/1.8.0/Under the Hood-20240201-125416.yaml deleted file mode 100644 index ae1fab79ab7..00000000000 --- a/.changes/1.8.0/Under the Hood-20240201-125416.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Start using `Mergeable` from dbt-common -time: 2024-02-01T12:54:16.462414-08:00 -custom: - Author: QMalcolm - Issue: "9505" diff --git a/.changes/1.8.0/Under the Hood-20240207-122342.yaml b/.changes/1.8.0/Under the Hood-20240207-122342.yaml deleted file mode 100644 index f2e4a0ed3fe..00000000000 --- a/.changes/1.8.0/Under the Hood-20240207-122342.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Move manifest nodes to artifacts -time: 2024-02-07T12:23:42.909049-05:00 -custom: - Author: gshank - Issue: "9388" diff --git a/.changes/1.8.0/Under the Hood-20240208-120620.yaml b/.changes/1.8.0/Under the Hood-20240208-120620.yaml deleted file mode 100644 index 4b429467f5b..00000000000 --- a/.changes/1.8.0/Under the Hood-20240208-120620.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Move data parts of `SourceDefinition` class to dbt/artifacts -time: 2024-02-08T12:06:20.696709-08:00 -custom: - Author: QMalcolm - Issue: "9384" diff --git a/.changes/1.8.0/Under the Hood-20240216-104002.yaml b/.changes/1.8.0/Under the Hood-20240216-104002.yaml deleted file mode 100644 index b9877144a46..00000000000 --- a/.changes/1.8.0/Under the Hood-20240216-104002.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Remove uses of Replaceable class -time: 2024-02-16T10:40:02.25455-06:00 -custom: - Author: emmyoop - Issue: "7802" diff --git a/.changes/1.8.0/Under the Hood-20240221-104518.yaml b/.changes/1.8.0/Under the Hood-20240221-104518.yaml deleted file mode 100644 index 56c077fcd1c..00000000000 --- a/.changes/1.8.0/Under the Hood-20240221-104518.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Restrict protobuf to major version 4. -time: 2024-02-21T10:45:18.315195-05:00 -custom: - Author: peterallenwebb - Issue: "9566" diff --git a/.changes/1.8.0/Under the Hood-20240221-145058.yaml b/.changes/1.8.0/Under the Hood-20240221-145058.yaml deleted file mode 100644 index a847bb68c53..00000000000 --- a/.changes/1.8.0/Under the Hood-20240221-145058.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Make dbt-core compatible with Python 3.12 -time: 2024-02-21T14:50:58.983559Z -custom: - Author: l1xnan aranke - Issue: "9007" diff --git a/.changes/1.8.0/Under the Hood-20240222-115245.yaml b/.changes/1.8.0/Under the Hood-20240222-115245.yaml deleted file mode 100644 index a2d1bbcac10..00000000000 --- a/.changes/1.8.0/Under the Hood-20240222-115245.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Remove references to dbt.tracking and dbt.flags from dbt/artifacts -time: 2024-02-22T11:52:45.044853-06:00 -custom: - Author: emmyoop - Issue: "9390" diff --git a/.changes/1.8.0/Under the Hood-20240223-092330.yaml b/.changes/1.8.0/Under the Hood-20240223-092330.yaml deleted file mode 100644 index 71e5903b4ad..00000000000 --- a/.changes/1.8.0/Under the Hood-20240223-092330.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Remove unused key `wildcard` from MethodName enum -time: 2024-02-23T09:23:30.029245-05:00 -custom: - Author: asweet - Issue: "9641" diff --git a/.changes/1.8.0/Under the Hood-20240223-115021.yaml b/.changes/1.8.0/Under the Hood-20240223-115021.yaml deleted file mode 100644 index ccc1a381124..00000000000 --- a/.changes/1.8.0/Under the Hood-20240223-115021.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Implement primary key inference for model nodes -time: 2024-02-23T11:50:21.257494-08:00 -custom: - Author: aliceliu - Issue: "9652" diff --git a/.changes/1.8.0/Under the Hood-20240226-141038.yaml b/.changes/1.8.0/Under the Hood-20240226-141038.yaml deleted file mode 100644 index 6ea389b997e..00000000000 --- a/.changes/1.8.0/Under the Hood-20240226-141038.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Define UnitTestDefinition resource in dbt/artifacts/resources -time: 2024-02-26T14:10:38.807154-05:00 -custom: - Author: michelleark - Issue: "9667" diff --git a/.changes/1.8.0/Under the Hood-20240226-184258.yaml b/.changes/1.8.0/Under the Hood-20240226-184258.yaml deleted file mode 100644 index 06c0f5e029a..00000000000 --- a/.changes/1.8.0/Under the Hood-20240226-184258.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Use Manifest instead of WritableManifest in PreviousState and _get_deferred_manifest -time: 2024-02-26T18:42:58.740808-05:00 -custom: - Author: michelleark - Issue: "9567" diff --git a/.changes/1.8.0/Under the Hood-20240309-141054.yaml b/.changes/1.8.0/Under the Hood-20240309-141054.yaml deleted file mode 100644 index 4dff658a8c1..00000000000 --- a/.changes/1.8.0/Under the Hood-20240309-141054.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Improve dbt CLI speed -time: 2024-03-09T14:10:54.549618-05:00 -custom: - Author: dwreeves - Issue: "4627" diff --git a/.changes/1.8.0/Under the Hood-20240325-172059.yaml b/.changes/1.8.0/Under the Hood-20240325-172059.yaml deleted file mode 100644 index c53e1d390cb..00000000000 --- a/.changes/1.8.0/Under the Hood-20240325-172059.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Include node_info in various Result events -time: 2024-03-25T17:20:59.445718-04:00 -custom: - Author: gshank - Issue: "9619" diff --git a/.changes/1.8.0/Under the Hood-20240412-132000.yaml b/.changes/1.8.0/Under the Hood-20240412-132000.yaml deleted file mode 100644 index 794e9ca287b..00000000000 --- a/.changes/1.8.0/Under the Hood-20240412-132000.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Remove non dbt.artifacts dbt.* imports from dbt/artifacts -time: 2024-04-12T13:20:00.017737-07:00 -custom: - Author: michelleark - Issue: "9926" diff --git a/.changes/1.8.0/Under the Hood-20240412-134502.yaml b/.changes/1.8.0/Under the Hood-20240412-134502.yaml deleted file mode 100644 index 62d1ebb859b..00000000000 --- a/.changes/1.8.0/Under the Hood-20240412-134502.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Migrate to using `error_tag` provided by `dbt-common` -time: 2024-04-12T13:45:02.879023-07:00 -custom: - Author: QMalcolm - Issue: "9914" diff --git a/.changes/1.8.0/Under the Hood-20240416-150030.yaml b/.changes/1.8.0/Under the Hood-20240416-150030.yaml deleted file mode 100644 index b57a01a6cc6..00000000000 --- a/.changes/1.8.0/Under the Hood-20240416-150030.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Add a test for semantic manifest and move test fixtures needed for it -time: 2024-04-16T15:00:30.614286-07:00 -custom: - Author: ChenyuLInx - Issue: "9665" diff --git a/.changes/unreleased/Breaking Changes-20240430-165247.yaml b/.changes/unreleased/Breaking Changes-20240430-165247.yaml deleted file mode 100644 index cfd0dfe0e49..00000000000 --- a/.changes/unreleased/Breaking Changes-20240430-165247.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Breaking Changes -body: Update the default behaviour of require_explicit_package_overrides_for_builtin_materializations - to True. -time: 2024-04-30T16:52:47.610025-04:00 -custom: - Author: jtcohen6 - Issue: "10062" diff --git a/.changes/unreleased/Dependencies-20240415-213850.yaml b/.changes/unreleased/Dependencies-20240415-213850.yaml deleted file mode 100644 index 4b6519e252d..00000000000 --- a/.changes/unreleased/Dependencies-20240415-213850.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Dependencies -body: Update the agate pin to "agate>=1.7.0,<1.10" -time: 2024-04-15T21:38:50.004793293+05:00 -custom: - Author: mjkanji - Issue: "9934" diff --git a/.changes/unreleased/Docs-20240311-140344.yaml b/.changes/unreleased/Docs-20240311-140344.yaml deleted file mode 100644 index 6a78c95ef5a..00000000000 --- a/.changes/unreleased/Docs-20240311-140344.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Docs -body: Enable display of unit tests -time: 2024-03-11T14:03:44.490834-04:00 -custom: - Author: gshank - Issue: "501" diff --git a/.changes/unreleased/Docs-20240501-021050.yaml b/.changes/unreleased/Docs-20240501-021050.yaml deleted file mode 100644 index 8799a69debf..00000000000 --- a/.changes/unreleased/Docs-20240501-021050.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Docs -body: Unit tests not rendering -time: 2024-05-01T02:10:50.987412+02:00 -custom: - Author: aranke - Issue: "506" diff --git a/.changes/unreleased/Features-20231212-163409.yaml b/.changes/unreleased/Features-20231212-163409.yaml deleted file mode 100644 index f9fe36a1fda..00000000000 --- a/.changes/unreleased/Features-20231212-163409.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Package selector syntax for the current package -time: 2023-12-12T16:34:09.328891Z -custom: - Author: barton996 - Issue: "6891" diff --git a/.changes/unreleased/Features-20240422-173703.yaml b/.changes/unreleased/Features-20240422-173703.yaml deleted file mode 100644 index 3c957af40c1..00000000000 --- a/.changes/unreleased/Features-20240422-173703.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Add require_explicit_package_overrides_for_builtin_materializations to dbt_project.yml flags, which can be used to opt-out of overriding built-in materializations from packages -time: 2024-04-22T17:37:03.892268-04:00 -custom: - Author: michelleark - Issue: "10007" diff --git a/.changes/unreleased/Features-20240424-180639.yaml b/.changes/unreleased/Features-20240424-180639.yaml deleted file mode 100644 index dbb4fb9b2ac..00000000000 --- a/.changes/unreleased/Features-20240424-180639.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: add --empty flag to dbt build command -time: 2024-04-24T18:06:39.438457-04:00 -custom: - Author: michelleark - Issue: "10026" diff --git a/.changes/unreleased/Features-20240426-233126.yaml b/.changes/unreleased/Features-20240426-233126.yaml deleted file mode 100644 index e726288e814..00000000000 --- a/.changes/unreleased/Features-20240426-233126.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Ability to `silence` warnings via `warn_error_options` -time: 2024-04-26T23:31:26.601057-05:00 -custom: - Author: QMalcolm - Issue: "9644" diff --git a/.changes/unreleased/Features-20240426-233208.yaml b/.changes/unreleased/Features-20240426-233208.yaml deleted file mode 100644 index c1cedc08ec3..00000000000 --- a/.changes/unreleased/Features-20240426-233208.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Features -body: Allow aliases `error` for `include` and `warn` for `exclude` in `warn_error_options` -time: 2024-04-26T23:32:08.771114-05:00 -custom: - Author: QMalcolm - Issue: "9644" diff --git a/.changes/unreleased/Features-20240507-162717.yaml b/.changes/unreleased/Features-20240507-162717.yaml new file mode 100644 index 00000000000..662902483ff --- /dev/null +++ b/.changes/unreleased/Features-20240507-162717.yaml @@ -0,0 +1,6 @@ +kind: Features +body: 'Add unit_test: selection method' +time: 2024-05-07T16:27:17.047585-04:00 +custom: + Author: michelleark + Issue: "10053" diff --git a/.changes/unreleased/Fixes-20240410-181741.yaml b/.changes/unreleased/Fixes-20240410-181741.yaml deleted file mode 100644 index 66ec5e7d373..00000000000 --- a/.changes/unreleased/Fixes-20240410-181741.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Add NodeRelation to SavedQuery Export -time: 2024-04-10T18:17:41.42533+01:00 -custom: - Author: aranke - Issue: "9534" diff --git a/.changes/unreleased/Fixes-20240422-145811.yaml b/.changes/unreleased/Fixes-20240422-145811.yaml deleted file mode 100644 index 76452c41a90..00000000000 --- a/.changes/unreleased/Fixes-20240422-145811.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Use consistent secret scrubbing with the log function. -time: 2024-04-22T14:58:11.990326-05:00 -custom: - Author: emmyoop - Issue: "9987" diff --git a/.changes/unreleased/Fixes-20240422-152244.yaml b/.changes/unreleased/Fixes-20240422-152244.yaml deleted file mode 100644 index 869d152fda9..00000000000 --- a/.changes/unreleased/Fixes-20240422-152244.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Validate against empty strings in package definitions -time: 2024-04-22T15:22:44.575999-05:00 -custom: - Author: emmyoop - Issue: "9985" diff --git a/.changes/unreleased/Fixes-20240422-173532.yaml b/.changes/unreleased/Fixes-20240422-173532.yaml deleted file mode 100644 index b7de465fbc8..00000000000 --- a/.changes/unreleased/Fixes-20240422-173532.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Fixes -body: Fix default value for indirect selection in selector cannot overwritten by CLI - flag and env var -time: 2024-04-22T17:35:32.465183-07:00 -custom: - Author: ChenyuLInx - Issue: 9976 7673 diff --git a/.changes/unreleased/Fixes-20240423-120112.yaml b/.changes/unreleased/Fixes-20240423-120112.yaml deleted file mode 100644 index 59e763451dc..00000000000 --- a/.changes/unreleased/Fixes-20240423-120112.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Simplify error message if test severity isn't 'warn' or 'error' -time: 2024-04-23T12:01:12.374904+02:00 -custom: - Author: aranke - Issue: "9715" diff --git a/.changes/unreleased/Fixes-20240429-114610.yaml b/.changes/unreleased/Fixes-20240429-114610.yaml deleted file mode 100644 index 97e377a0216..00000000000 --- a/.changes/unreleased/Fixes-20240429-114610.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixes -body: Support overriding source level loaded_at_field with a null table level definition -time: 2024-04-29T11:46:10.100373-05:00 -custom: - Author: emmyoop - Issue: "9320" diff --git a/.changes/unreleased/Fixes-20240508-151127.yaml b/.changes/unreleased/Fixes-20240508-151127.yaml new file mode 100644 index 00000000000..4ccd18a6729 --- /dev/null +++ b/.changes/unreleased/Fixes-20240508-151127.yaml @@ -0,0 +1,7 @@ +kind: Fixes +body: 'Restore previous behavior for --favor-state: only favor defer_relation if not + selected in current command"' +time: 2024-05-08T15:11:27.510912+02:00 +custom: + Author: jtcohen6 + Issue: "10107" diff --git a/.changes/unreleased/Under the Hood-20240201-003033.yaml b/.changes/unreleased/Under the Hood-20240201-003033.yaml deleted file mode 100644 index 3b36954c43a..00000000000 --- a/.changes/unreleased/Under the Hood-20240201-003033.yaml +++ /dev/null @@ -1,7 +0,0 @@ -kind: Under the Hood -body: Split up deferral across parsing (adding 'defer_relation' from state manifest) - and runtime ref resolution" -time: 2024-02-01T00:30:33.573665+01:00 -custom: - Author: jtcohen6 - Issue: "9199" diff --git a/.changes/unreleased/Under the Hood-20240418-172528.yaml b/.changes/unreleased/Under the Hood-20240418-172528.yaml deleted file mode 100644 index 50743d8a755..00000000000 --- a/.changes/unreleased/Under the Hood-20240418-172528.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Raise deprecation warning if installed package overrides built-in materialization -time: 2024-04-18T17:25:28.37886-04:00 -custom: - Author: michelleark - Issue: "9971" diff --git a/.changes/unreleased/Under the Hood-20240423-143055.yaml b/.changes/unreleased/Under the Hood-20240423-143055.yaml deleted file mode 100644 index 691a26e5ff6..00000000000 --- a/.changes/unreleased/Under the Hood-20240423-143055.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Use the SECRET_ENV_PREFIX from dbt_common instead of duplicating it in dbt-core -time: 2024-04-23T14:30:55.739378-05:00 -custom: - Author: emmyoop - Issue: "10018" diff --git a/.changes/unreleased/Under the Hood-20240425-170138.yaml b/.changes/unreleased/Under the Hood-20240425-170138.yaml deleted file mode 100644 index f315f5cd78b..00000000000 --- a/.changes/unreleased/Under the Hood-20240425-170138.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Enable use of record mode via environment variable -time: 2024-04-25T17:01:38.093524-04:00 -custom: - Author: peterallenwebb - Issue: "10045" diff --git a/.changes/unreleased/Under the Hood-20240429-142342.yaml b/.changes/unreleased/Under the Hood-20240429-142342.yaml deleted file mode 100644 index d4bd71e6e6c..00000000000 --- a/.changes/unreleased/Under the Hood-20240429-142342.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Under the Hood -body: Consistent naming + deprecation warnings for "legacy behavior" flags -time: 2024-04-29T14:23:42.804244+02:00 -custom: - Author: jtcohen6 - Issue: "10062" diff --git a/.changes/unreleased/Under the Hood-20240502-154430.yaml b/.changes/unreleased/Under the Hood-20240502-154430.yaml new file mode 100644 index 00000000000..6c17df3a6c6 --- /dev/null +++ b/.changes/unreleased/Under the Hood-20240502-154430.yaml @@ -0,0 +1,6 @@ +kind: Under the Hood +body: Clear error message for Private package in dbt-core +time: 2024-05-02T15:44:30.713097-07:00 +custom: + Author: ChenyuLInx + Issue: "10083" diff --git a/.changes/unreleased/Under the Hood-20240506-145511.yaml b/.changes/unreleased/Under the Hood-20240506-145511.yaml new file mode 100644 index 00000000000..f5bad25d797 --- /dev/null +++ b/.changes/unreleased/Under the Hood-20240506-145511.yaml @@ -0,0 +1,6 @@ +kind: Under the Hood +body: Enable use of context in serialization +time: 2024-05-06T14:55:11.1812-04:00 +custom: + Author: gshank + Issue: "10093" diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c4e9dcf37f..900460abb2e 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,303 +5,12 @@ - "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-b3 - April 18, 2024 - -### Features - -- Support scrubbing secret vars ([#7247](https://github.com/dbt-labs/dbt-core/issues/7247)) -- Add wildcard support to the group selector method ([#9811](https://github.com/dbt-labs/dbt-core/issues/9811)) -- source freshness precomputes metadata-based freshness in batch, if possible ([#8705](https://github.com/dbt-labs/dbt-core/issues/8705)) -- Better error message when trying to select a disabled model ([#9747](https://github.com/dbt-labs/dbt-core/issues/9747)) -- Support SQL in unit testing fixtures ([#9405](https://github.com/dbt-labs/dbt-core/issues/9405)) - -### Fixes - -- fix configuration of turning test warnings into failures with WARN_ERROR_OPTIONS ([#7761](https://github.com/dbt-labs/dbt-core/issues/7761)) -- Fix conflict with newer versions of Snowplow tracker ([#8719](https://github.com/dbt-labs/dbt-core/issues/8719)) -- Only create the packages-install-path / dbt_packages folder during dbt deps ([#6985](https://github.com/dbt-labs/dbt-core/issues/6985), [#9584](https://github.com/dbt-labs/dbt-core/issues/9584)) -- Exclude password-like fields for considering reparse ([#9795](https://github.com/dbt-labs/dbt-core/issues/9795)) -- Fixed query comments test ([#9860](https://github.com/dbt-labs/dbt-core/issues/9860)) -- Begin warning people about spaces in model names ([#9397](https://github.com/dbt-labs/dbt-core/issues/9397)) -- Disambiguiate FreshnessConfigProblem error message ([#9891](https://github.com/dbt-labs/dbt-core/issues/9891)) - -### Under the Hood - -- Remove non dbt.artifacts dbt.* imports from dbt/artifacts ([#9926](https://github.com/dbt-labs/dbt-core/issues/9926)) -- Migrate to using `error_tag` provided by `dbt-common` ([#9914](https://github.com/dbt-labs/dbt-core/issues/9914)) -- Add a test for semantic manifest and move test fixtures needed for it ([#9665](https://github.com/dbt-labs/dbt-core/issues/9665)) - -### Dependencies - -- Relax pathspec upper bound version restriction ([#9373](https://github.com/dbt-labs/dbt-core/issues/9373)) -- Bump python from 3.10.7-slim-nullseye to 3.11.2-slim-bullseye in /docker ([#9687](https://github.com/dbt-labs/dbt-core/issues/9687)) -- Remove duplicate dependency of protobuf in dev-requirements ([#9830](https://github.com/dbt-labs/dbt-core/issues/9830)) -- Bump black from 23.3.0 to >=24.3.0,<25.0 ([#8074](https://github.com/dbt-labs/dbt-core/issues/8074)) - -### Security - -- Bump sqlparse to >=0.5.0, <0.6.0 to address GHSA-2m57-hf25-phgg ([#9951](https://github.com/dbt-labs/dbt-core/issues/9951)) - -### Contributors -- [@SamuelBFavarin](https://github.com/SamuelBFavarin) ([#9747](https://github.com/dbt-labs/dbt-core/issues/9747)) -- [@akurdyukov](https://github.com/akurdyukov) ([#8719](https://github.com/dbt-labs/dbt-core/issues/8719)) -- [@damian3031](https://github.com/damian3031) ([#9860](https://github.com/dbt-labs/dbt-core/issues/9860)) -- [@edgarrmondragon](https://github.com/edgarrmondragon) ([#8719](https://github.com/dbt-labs/dbt-core/issues/8719)) -- [@emmoop](https://github.com/emmoop) ([#9951](https://github.com/dbt-labs/dbt-core/issues/9951)) -- [@heysweet](https://github.com/heysweet) ([#9811](https://github.com/dbt-labs/dbt-core/issues/9811)) -- [@jx2lee](https://github.com/jx2lee) ([#7761](https://github.com/dbt-labs/dbt-core/issues/7761)) -- [@nielspardon](https://github.com/nielspardon) ([#7247](https://github.com/dbt-labs/dbt-core/issues/7247)) -- [@niteshy](https://github.com/niteshy) ([#9830](https://github.com/dbt-labs/dbt-core/issues/9830)) -- [@rzjfr](https://github.com/rzjfr) ([#9373](https://github.com/dbt-labs/dbt-core/issues/9373)) - - -## 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 - -- Remove adapter.get_compiler interface ([#9148](https://github.com/dbt-labs/dbt-core/issues/9148)) -- Move AdapterLogger to adapters folder ([#9151](https://github.com/dbt-labs/dbt-core/issues/9151)) -- Rm --dry-run flag from 'dbt deps --add-package', in favor of just 'dbt deps --lock' ([#9100](https://github.com/dbt-labs/dbt-core/issues/9100)) -- move event manager setup back to core, remove ref to global EVENT_MANAGER and clean up event manager functions ([#9150](https://github.com/dbt-labs/dbt-core/issues/9150)) -- Remove dbt-tests-adapter and dbt-postgres packages from dbt-core ([#9455](https://github.com/dbt-labs/dbt-core/issues/9455)) - -### Features - -- Initial implementation of unit testing ([#8287](https://github.com/dbt-labs/dbt-core/issues/8287)) -- Unit test manifest artifacts and selection ([#8295](https://github.com/dbt-labs/dbt-core/issues/8295)) -- Support config with tags & meta for unit tests ([#8294](https://github.com/dbt-labs/dbt-core/issues/8294)) -- Allow adapters to include package logs in dbt standard logging ([#7859](https://github.com/dbt-labs/dbt-core/issues/7859)) -- Enable inline csv fixtures in unit tests ([#8626](https://github.com/dbt-labs/dbt-core/issues/8626)) -- Add drop_schema_named macro ([#8025](https://github.com/dbt-labs/dbt-core/issues/8025)) -- migrate utils to common and adapters folders ([#8924](https://github.com/dbt-labs/dbt-core/issues/8924)) -- Move Agate helper client into common ([#8926](https://github.com/dbt-labs/dbt-core/issues/8926)) -- remove usage of dbt.config.PartialProject from dbt/adapters ([#8928](https://github.com/dbt-labs/dbt-core/issues/8928)) -- Add exports to SavedQuery spec ([#8892](https://github.com/dbt-labs/dbt-core/issues/8892)) -- Support unit testing incremental models ([#8422](https://github.com/dbt-labs/dbt-core/issues/8422)) -- Add support of csv file fixtures to unit testing ([#8290](https://github.com/dbt-labs/dbt-core/issues/8290)) -- Remove legacy logger ([#8027](https://github.com/dbt-labs/dbt-core/issues/8027)) -- Unit tests support --defer and state:modified ([#8517](https://github.com/dbt-labs/dbt-core/issues/8517)) -- Support setting export configs hierarchically via saved query and project configs ([#8956](https://github.com/dbt-labs/dbt-core/issues/8956)) -- Support source inputs in unit tests ([#8507](https://github.com/dbt-labs/dbt-core/issues/8507)) -- Use daff to render diff displayed in stdout when unit test fails ([#8558](https://github.com/dbt-labs/dbt-core/issues/8558)) -- Move unit testing to test command ([#8979](https://github.com/dbt-labs/dbt-core/issues/8979)) -- Support --empty flag for schema-only dry runs ([#8971](https://github.com/dbt-labs/dbt-core/issues/8971)) -- Support unit tests in non-root packages ([#8285](https://github.com/dbt-labs/dbt-core/issues/8285)) -- Convert the `tests` config to `data_tests` in both dbt_project.yml and schema files. in schema files. ([#8699](https://github.com/dbt-labs/dbt-core/issues/8699)) -- Make fixture files full-fledged parts of the manifest and enable partial parsing ([#9067](https://github.com/dbt-labs/dbt-core/issues/9067)) -- Adds support for parsing conversion metric related properties for the semantic layer. ([#9203](https://github.com/dbt-labs/dbt-core/issues/9203)) -- In build command run unit tests before models ([#9128](https://github.com/dbt-labs/dbt-core/issues/9128)) -- Move flags from UserConfig in profiles.yml to flags in dbt_project.yml ([#9183](https://github.com/dbt-labs/dbt-core/issues/9183)) -- Added hook support for `dbt source freshness` ([#5609](https://github.com/dbt-labs/dbt-core/issues/5609)) -- Align with order of unit test output when `actual` differs from `expected` ([#9370](https://github.com/dbt-labs/dbt-core/issues/9370)) -- Added support for external nodes in unit test nodes ([#8944](https://github.com/dbt-labs/dbt-core/issues/8944)) -- Enable unit testing versioned models ([#9344](https://github.com/dbt-labs/dbt-core/issues/9344)) -- Enable list command for unit tests ([#8508](https://github.com/dbt-labs/dbt-core/issues/8508)) -- Integration Test Optimizations ([#9498](https://github.com/dbt-labs/dbt-core/issues/9498)) -- Accelerate integration tests with caching. ([#9498](https://github.com/dbt-labs/dbt-core/issues/9498)) -- Cache environment variables ([#9489](https://github.com/dbt-labs/dbt-core/issues/9489)) -- Support meta at the config level for Metric nodes ([#9441](https://github.com/dbt-labs/dbt-core/issues/9441)) -- Add cache to SavedQuery config ([#9540](https://github.com/dbt-labs/dbt-core/issues/9540)) - -### Fixes - -- For packages installed with tarball method, fetch metadata to resolve nested dependencies ([#8621](https://github.com/dbt-labs/dbt-core/issues/8621)) -- Fix partial parsing not working for semantic model change ([#8859](https://github.com/dbt-labs/dbt-core/issues/8859)) -- Handle unknown `type_code` for model contracts ([#8877](https://github.com/dbt-labs/dbt-core/issues/8877), [#8353](https://github.com/dbt-labs/dbt-core/issues/8353)) -- Rework get_catalog implementation to retain previous adapter interface semantics ([#8846](https://github.com/dbt-labs/dbt-core/issues/8846)) -- Add back contract enforcement for temporary tables on postgres ([#8857](https://github.com/dbt-labs/dbt-core/issues/8857)) -- Add version to fqn when version==0 ([#8836](https://github.com/dbt-labs/dbt-core/issues/8836)) -- Fix cased comparison in catalog-retrieval function. ([#8939](https://github.com/dbt-labs/dbt-core/issues/8939)) -- Catalog queries now assign the correct type to materialized views ([#8864](https://github.com/dbt-labs/dbt-core/issues/8864)) -- Fix compilation exception running empty seed file and support new Integer agate data_type ([#8895](https://github.com/dbt-labs/dbt-core/issues/8895)) -- Make relation filtering None-tolerant for maximal flexibility across adapters. ([#8974](https://github.com/dbt-labs/dbt-core/issues/8974)) -- Update run_results.json from previous versions of dbt to support deferral and rerun from failure ([#9010](https://github.com/dbt-labs/dbt-core/issues/9010)) -- Use MANIFEST.in to recursively include all jinja templates; fixes issue where some templates were not included in the distribution ([#9016](https://github.com/dbt-labs/dbt-core/issues/9016)) -- Fix git repository with subdirectory for Deps ([#9000](https://github.com/dbt-labs/dbt-core/issues/9000)) -- Use seed file from disk for unit testing if rows not specified in YAML config ([#8652](https://github.com/dbt-labs/dbt-core/issues/8652)) -- Fix formatting of tarball information in packages-lock.yml ([#9062](https://github.com/dbt-labs/dbt-core/issues/9062)) -- deps: Lock git packages to commit SHA during resolution ([#9050](https://github.com/dbt-labs/dbt-core/issues/9050)) -- deps: Use PackageRenderer to read package-lock.json ([#9127](https://github.com/dbt-labs/dbt-core/issues/9127)) -- Ensure we produce valid jsonschema schemas for manifest, catalog, run-results, and sources ([#8991](https://github.com/dbt-labs/dbt-core/issues/8991)) -- Get sources working again in dbt docs generate ([#9119](https://github.com/dbt-labs/dbt-core/issues/9119)) -- Fix parsing f-strings in python models ([#6976](https://github.com/dbt-labs/dbt-core/issues/6976)) -- Preserve the value of vars and the --full-refresh flags when using retry. ([#9112](https://github.com/dbt-labs/dbt-core/issues/9112)) -- Support reasonably long unit test names ([#9015](https://github.com/dbt-labs/dbt-core/issues/9015)) -- Fix back-compat parsing for model-level 'tests', source table-level 'tests', and 'tests' defined on model versions ([#9411](https://github.com/dbt-labs/dbt-core/issues/9411)) -- Fix retry command run from CLI ([#9444](https://github.com/dbt-labs/dbt-core/issues/9444)) -- Fix seed and source selection in `dbt docs generate` ([#9161](https://github.com/dbt-labs/dbt-core/issues/9161)) -- Add TestGenerateCatalogWithExternalNodes, include empty nodes in node selection during docs generate ([#9456](https://github.com/dbt-labs/dbt-core/issues/9456)) -- Fix node type plurals in FoundStats log message ([#9464](https://github.com/dbt-labs/dbt-core/issues/9464)) -- Run manifest upgrade preprocessing on any older manifest version, including v11 ([#9487](https://github.com/dbt-labs/dbt-core/issues/9487)) -- Update 'compiled_code' context member logic to route based on command ('clone' or not). Reimplement 'sql' context member as wrapper of 'compiled_code'. ([#9502](https://github.com/dbt-labs/dbt-core/issues/9502)) -- Fix bug where Semantic Layer filter strings are parsed into lists. ([#9507](https://github.com/dbt-labs/dbt-core/issues/9507)) -- Initialize invocation context before test fixtures are built. ([##9489](https://github.com/dbt-labs/dbt-core/issues/#9489)) -- When patching versioned models, set constraints after config ([#9364](https://github.com/dbt-labs/dbt-core/issues/9364)) -- only include unmodified semantic mdodels in state:modified selection ([#9548](https://github.com/dbt-labs/dbt-core/issues/9548)) -- Set query headers when manifest is passed in to dbtRunner ([#9546](https://github.com/dbt-labs/dbt-core/issues/9546)) -- Store node_info in node associated logging events ([#9557](https://github.com/dbt-labs/dbt-core/issues/9557)) -- Fix Semantic Model Compare node relations ([#9548](https://github.com/dbt-labs/dbt-core/issues/9548)) -- Clearer no-op logging in stubbed SavedQueryRunner ([#9533](https://github.com/dbt-labs/dbt-core/issues/9533)) -- Fix node_info contextvar handling so incorrect node_info doesn't persist ([#8866](https://github.com/dbt-labs/dbt-core/issues/8866)) -- Add target-path to retry ([#8948](https://github.com/dbt-labs/dbt-core/issues/8948)) - -### Docs - -- fix get_custom_database docstring ([dbt-docs/#9003](https://github.com/dbt-labs/dbt-docs/issues/9003)) - -### Under the Hood - -- Added more type annotations. ([#8537](https://github.com/dbt-labs/dbt-core/issues/8537)) -- Add unit testing functional tests ([#8512](https://github.com/dbt-labs/dbt-core/issues/8512)) -- Remove usage of dbt.include.global_project in dbt/adapters ([#8925](https://github.com/dbt-labs/dbt-core/issues/8925)) -- Add a no-op runner for Saved Qeury ([#8893](https://github.com/dbt-labs/dbt-core/issues/8893)) -- remove dbt.flags.MP_CONTEXT usage in dbt/adapters ([#8967](https://github.com/dbt-labs/dbt-core/issues/8967)) -- Remove usage of dbt.flags.LOG_CACHE_EVENTS in dbt/adapters ([#8969](https://github.com/dbt-labs/dbt-core/issues/8969)) -- Move CatalogRelationTypes test case to the shared test suite to be reused by adapter maintainers ([#8952](https://github.com/dbt-labs/dbt-core/issues/8952)) -- Treat SystemExit as an interrupt if raised during node execution. ([#n/a](https://github.com/dbt-labs/dbt-core/issues/n/a)) -- Removing unused 'documentable' ([#8871](https://github.com/dbt-labs/dbt-core/issues/8871)) -- Remove use of dbt/core exceptions in dbt/adapter ([#8920](https://github.com/dbt-labs/dbt-core/issues/8920)) -- Cache dbt plugin modules to improve integration test performance ([#9029](https://github.com/dbt-labs/dbt-core/issues/9029)) -- Consolidate deferral methods & flags ([#7965](https://github.com/dbt-labs/dbt-core/issues/7965), [#8715](https://github.com/dbt-labs/dbt-core/issues/8715)) -- Fix test_current_timestamp_matches_utc test; allow for MacOS runner system clock variance ([#9057](https://github.com/dbt-labs/dbt-core/issues/9057)) -- Remove usage of dbt.deprecations in dbt/adapters, enable core & adapter-specific event types and protos ([#8927](https://github.com/dbt-labs/dbt-core/issues/8927), [#8918](https://github.com/dbt-labs/dbt-core/issues/8918)) -- Clean up unused adaptor folders ([#9123](https://github.com/dbt-labs/dbt-core/issues/9123)) -- Move column constraints into common/contracts, removing another dependency of adapters on core. ([#9024](https://github.com/dbt-labs/dbt-core/issues/9024)) -- Move dbt.semver to dbt.common.semver and update references. ([#9039](https://github.com/dbt-labs/dbt-core/issues/9039)) -- Move lowercase utils method to common ([#9180](https://github.com/dbt-labs/dbt-core/issues/9180)) -- Remove usages of dbt.clients.jinja in dbt/adapters ([#9205](https://github.com/dbt-labs/dbt-core/issues/9205)) -- Remove usage of dbt.contracts in dbt/adapters ([#9208](https://github.com/dbt-labs/dbt-core/issues/9208)) -- Remove usage of dbt.contracts.graph.nodes.ResultNode in dbt/adapters ([#9214](https://github.com/dbt-labs/dbt-core/issues/9214)) -- Introduce RelationConfig Protocol, consolidate Relation.create_from ([#9215](https://github.com/dbt-labs/dbt-core/issues/9215)) -- remove manifest from adapter.set_relations_cache signature ([#9217](https://github.com/dbt-labs/dbt-core/issues/9217)) -- remove manifest from adapter catalog method signatures ([#9218](https://github.com/dbt-labs/dbt-core/issues/9218)) -- Move BaseConfig, Metadata and various other contract classes from model_config to common/contracts/config ([#8919](https://github.com/dbt-labs/dbt-core/issues/8919)) -- Add MacroResolverProtocol, remove lazy loading of manifest in adapter.execute_macro ([#9244](https://github.com/dbt-labs/dbt-core/issues/9244)) -- pass query header context to MacroQueryStringSetter ([#9249](https://github.com/dbt-labs/dbt-core/issues/9249), [#9250](https://github.com/dbt-labs/dbt-core/issues/9250)) -- add macro_context_generator on adapter ([#9247](https://github.com/dbt-labs/dbt-core/issues/9247)) -- pass mp_context to adapter factory as argument instead of import ([#9025](https://github.com/dbt-labs/dbt-core/issues/9025)) -- have dbt-postgres use RelationConfig protocol for materialized views' ([#9292](https://github.com/dbt-labs/dbt-core/issues/9292)) -- move system.py to common as dbt-bigquery relies on it to call gcloud ([#9293](https://github.com/dbt-labs/dbt-core/issues/9293)) -- Reorganizing event definitions to define core events in dbt/events rather than dbt/common ([#9152](https://github.com/dbt-labs/dbt-core/issues/9152)) -- move exceptions used only in dbt/common to dbt/common/exceptions ([#9332](https://github.com/dbt-labs/dbt-core/issues/9332)) -- Remove usage of dbt.adapters.factory in dbt/common ([#9334](https://github.com/dbt-labs/dbt-core/issues/9334)) -- Accept valid_error_names in WarnErrorOptions constructor, remove global usage of event modules ([#9337](https://github.com/dbt-labs/dbt-core/issues/9337)) -- Move result objects to dbt.artifacts ([#9193](https://github.com/dbt-labs/dbt-core/issues/9193)) -- dbt Labs OSS standardization of docs and templates. ([#9252](https://github.com/dbt-labs/dbt-core/issues/9252)) -- Add dbt-common as a dependency and remove dbt/common ([#9357](https://github.com/dbt-labs/dbt-core/issues/9357)) -- move cache exceptions to dbt/adapters ([#9362](https://github.com/dbt-labs/dbt-core/issues/9362)) -- Clean up macro contexts. ([#9422](https://github.com/dbt-labs/dbt-core/issues/9422)) -- Add the @requires.manifest decorator to the retry command. ([#9426](https://github.com/dbt-labs/dbt-core/issues/9426)) -- Move WritableManifest + Documentation to dbt/artifacts ([#9378](https://github.com/dbt-labs/dbt-core/issues/9378), [#9379](https://github.com/dbt-labs/dbt-core/issues/9379)) -- Define Macro and Group resources in dbt/artifacts ([#9381](https://github.com/dbt-labs/dbt-core/issues/9381), [#9382](https://github.com/dbt-labs/dbt-core/issues/9382)) -- Move `SavedQuery` data definition to `dbt/artifacts` ([#9386](https://github.com/dbt-labs/dbt-core/issues/9386)) -- Migrate data parts of `Metric` node to dbt/artifacts ([#9383](https://github.com/dbt-labs/dbt-core/issues/9383)) -- Move data portion of `SemanticModel` to dbt/artifacts ([#9387](https://github.com/dbt-labs/dbt-core/issues/9387)) -- Move data parts of `Exposure` class to dbt/artifacts ([#9380](https://github.com/dbt-labs/dbt-core/issues/9380)) -- Start using `Mergeable` from dbt-common ([#9505](https://github.com/dbt-labs/dbt-core/issues/9505)) -- Move manifest nodes to artifacts ([#9388](https://github.com/dbt-labs/dbt-core/issues/9388)) -- Move data parts of `SourceDefinition` class to dbt/artifacts ([#9384](https://github.com/dbt-labs/dbt-core/issues/9384)) -- Remove uses of Replaceable class ([#7802](https://github.com/dbt-labs/dbt-core/issues/7802)) -- Make dbt-core compatible with Python 3.12 ([#9007](https://github.com/dbt-labs/dbt-core/issues/9007)) -- Restrict protobuf to major version 4. ([#9566](https://github.com/dbt-labs/dbt-core/issues/9566)) -- Remove references to dbt.tracking and dbt.flags from dbt/artifacts ([#9390](https://github.com/dbt-labs/dbt-core/issues/9390)) -- Implement primary key inference for model nodes ([#9652](https://github.com/dbt-labs/dbt-core/issues/9652)) -- Define UnitTestDefinition resource in dbt/artifacts/resources ([#9667](https://github.com/dbt-labs/dbt-core/issues/9667)) -- Use Manifest instead of WritableManifest in PreviousState and _get_deferred_manifest ([#9567](https://github.com/dbt-labs/dbt-core/issues/9567)) - -### Dependencies - -- Bump actions/checkout from 3 to 4 ([#8781](https://github.com/dbt-labs/dbt-core/pull/8781)) -- Begin using DSI 0.4.x ([#8892](https://github.com/dbt-labs/dbt-core/pull/8892)) -- Update typing-extensions version to >=4.4 ([#9012](https://github.com/dbt-labs/dbt-core/pull/9012)) -- Bump ddtrace from 2.1.7 to 2.3.0 ([#9132](https://github.com/dbt-labs/dbt-core/pull/9132)) -- Bump freezegun from 0.3.12 to 1.3.0 ([#9197](https://github.com/dbt-labs/dbt-core/pull/9197)) -- Bump actions/setup-python from 4 to 5 ([#9267](https://github.com/dbt-labs/dbt-core/pull/9267)) -- Bump actions/download-artifact from 3 to 4 ([#9374](https://github.com/dbt-labs/dbt-core/pull/9374)) -- remove dbt/adapters and add dependency on dbt-adapters ([#9430](https://github.com/dbt-labs/dbt-core/pull/9430)) -- Bump actions/cache from 3 to 4 ([#9471](https://github.com/dbt-labs/dbt-core/pull/9471)) -- Bump peter-evans/create-pull-request from 5 to 6 ([#9552](https://github.com/dbt-labs/dbt-core/pull/9552)) -- Cap dbt-semantic-interfaces version range to <0.6 ([#9671](https://github.com/dbt-labs/dbt-core/pull/9671)) -- bump dbt-common to accept major version 1 ([#9690](https://github.com/dbt-labs/dbt-core/pull/9690)) - -### Security - -- Update Jinja2 to >= 3.1.3 to address CVE-2024-22195 ([#CVE-2024-22195](https://github.com/dbt-labs/dbt-core/pull/CVE-2024-22195)) - -### Contributors -- [@LeoTheGriff](https://github.com/LeoTheGriff) ([#9003](https://github.com/dbt-labs/dbt-core/issues/9003)) -- [@WilliamDee](https://github.com/WilliamDee) ([#9203](https://github.com/dbt-labs/dbt-core/issues/9203)) -- [@adamlopez](https://github.com/adamlopez) ([#8621](https://github.com/dbt-labs/dbt-core/issues/8621)) -- [@aliceliu](https://github.com/aliceliu) ([#9652](https://github.com/dbt-labs/dbt-core/issues/9652)) -- [@benmosher](https://github.com/benmosher) ([#n/a](https://github.com/dbt-labs/dbt-core/issues/n/a)) -- [@colin-rorgers-dbt](https://github.com/colin-rorgers-dbt) ([#8919](https://github.com/dbt-labs/dbt-core/issues/8919)) -- [@courtneyholcomb](https://github.com/courtneyholcomb) ([#9507](https://github.com/dbt-labs/dbt-core/issues/9507)) -- [@l1xnan](https://github.com/l1xnan) ([#9007](https://github.com/dbt-labs/dbt-core/issues/9007)) -- [@mederka](https://github.com/mederka) ([#6976](https://github.com/dbt-labs/dbt-core/issues/6976)) -- [@ofek1weiss](https://github.com/ofek1weiss) ([#5609](https://github.com/dbt-labs/dbt-core/issues/5609)) -- [@peterallenwebb,](https://github.com/peterallenwebb,) ([#9112](https://github.com/dbt-labs/dbt-core/issues/9112)) -- [@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: +* [1.8](https://github.com/dbt-labs/dbt-core/blob/1.8.latest/CHANGELOG.md) * [1.7](https://github.com/dbt-labs/dbt-core/blob/1.7.latest/CHANGELOG.md) * [1.6](https://github.com/dbt-labs/dbt-core/blob/1.6.latest/CHANGELOG.md) * [1.5](https://github.com/dbt-labs/dbt-core/blob/1.5.latest/CHANGELOG.md) diff --git a/core/dbt/artifacts/README.md b/core/dbt/artifacts/README.md index ffe112af558..ce06ce4d74e 100644 --- a/core/dbt/artifacts/README.md +++ b/core/dbt/artifacts/README.md @@ -1,24 +1,23 @@ # dbt/artifacts ## Overview -This directory is meant to be a lightweight module that is independent (and upstream of) the rest of dbt-core internals. +This directory is meant to be a lightweight module that is independent (and upstream of) the rest of `dbt-core` internals. -It's primary responsibility is to define simple data classes that represent the versioned artifact schemas that dbt writes as JSON files throughout execution. +Its primary responsibility is to define simple data classes that represent the versioned artifact schemas that dbt writes as JSON files throughout execution. -Long term, this module may be released as a standalone package (e.g. dbt-artifacts) to support stable parsing dbt artifacts programmatically. +Eventually, this module may be released as a standalone package (e.g. `dbt-artifacts`) to support stable programmatic parsing of dbt artifacts. -`dbt/artifacts` is organized into artifact 'schemas' and 'resources'. Schemas represent the final serialized artifact object, while resources represent sub-components of the larger artifact schemas. +`dbt/artifacts` is organized into artifact 'schemas' and 'resources'. Schemas represent the final serialized artifact objects, while resources represent smaller components within those schemas. ### dbt/artifacts/schemas - -Each major version of a schema under `dbt/artifacts/schema` is defined in its corresponding `dbt/artifacts/schema//v` directory. Before `dbt/artifacts` artifact schemas were always modified in-place, which is why artifacts are missing class definitions for historical versions. +Each major version of a schema under `dbt/artifacts/schema` is defined in its corresponding `dbt/artifacts/schema//v` directory. Before `dbt/artifacts` artifact schemas were always modified in-place, which is why older artifacts are those missing class definitions. Currently, there are four artifact schemas defined in `dbt/artifact/schemas`: | Artifact name | File | Class | Latest definition | |---------------|------------------|----------------------------------|-----------------------------------| -| manifest | manifest.json | WritableManifest | dbt/artifacts/schema/manifest/v11 | +| manifest | manifest.json | WritableManifest | dbt/artifacts/schema/manifest/v12 | | catalog | catalog.json | CatalogArtifact | dbt/artifacts/schema/catalog/v1 | | run | run_results.json | RunResultsArtifact | dbt/artifacts/schema/run/v5 | | freshness | sources.json | FreshnessExecutionResultArtifact | dbt/artifacts/schema/freshness/v3 | @@ -32,32 +31,31 @@ All existing resources are defined under `dbt/artifacts/resources/v1`. ### Non-breaking changes -Freely make incremental, non-breaking changes in-place to the latest major version of any artifact in mantle (via minor or patch bumps). The only changes that are fully forward and backward compatible are: -1. Adding a new field with a default -2. Deleting a field with a default - * This is compatible in terms of serialization and deserialization, but still may be lead to suprising behaviour: +Freely make incremental, non-breaking changes in-place to the latest major version of any artifact (minor or patch bumps). The only changes that are fully forward and backward compatible are: +* Adding a new field with a default +* Deleting a field with a default. This is compatible in terms of serialization and deserialization, but still may be lead to suprising behaviour: * For artifact consumers relying on the fields existence (e.g. `manifest["deleted_field"]` will stop working unless the access was implemented safely) * Old code (e.g. in dbt-core) that relies on the value of the deleted field may have surprising behaviour given only the default value will be set when instantiated from the new schema These types of minor, non-breaking changes are tested by [tests/unit/artifacts/test_base_resource.py::TestMinorSchemaChange](https://github.com/dbt-labs/dbt-core/blob/main/tests/unit/artifacts/test_base_resource.py). ### Breaking changes -A breaking change is anything that: +A breaking change is anything that: * Deletes a required field * Changes the name or type of an existing field -* Removes default from a field +* Removes the default value of an existing field -These should generally be avoided, and bundled together to aim for as minimal disruption across the integration ecosystem as possible. +These should be avoided however possible. When necessary, multiple breaking changes should be bundled together, to aim for minimal disruption across the ecosystem of tools that leverage dbt metadata. -However, when it comes time to make one (or more) of these, a new versioned artifact should be created as follows: +When it comes time to make breaking changes, a new versioned artifact should be created as follows: 1. Create a new version directory and file that defines the new artifact schema under `dbt/artifacts/schemas//v/.py` 2. If any resources are having breaking changes introduced, create a new resource class that defines the new resource schema under `dbt/artifacts/resources/v/.py` 3. Implement upgrade paths on the new versioned artifact class so it can be constructed given a dictionary representation of any previous version of the same artifact - * TODO: update once the design is finalized + * TODO: link example once available 4. Implement downgrade paths on all previous versions of the artifact class so they can still be constructed given a dictionary representation of the new artifact schema - * TODO: update once the design is finalized + * TODO: link example once available 5. Update the 'latest' aliases to point to the new version of the artifact and/or resource: * Artifact: `dbt/artifacts/schemas//__init__.py ` * Resource: `dbt/artifacts/resources/__init__.py ` - Downstream consumers (e.g. dbt-core) importing from the latest alias are susceptible to breaking changes. Ideally, any incompatibilities should be caught my static type checking in those systems. However, it is always possible for consumers to pin imports to previous versions via `dbt.artifacts.schemas..v` +Downstream consumers (e.g. `dbt-core`) importing from the latest alias are susceptible to breaking changes. Ideally, any incompatibilities should be caught my static type checking in those systems. However, it is always possible for consumers to pin imports to previous versions via `dbt.artifacts.schemas..v`. diff --git a/core/dbt/artifacts/resources/v1/components.py b/core/dbt/artifacts/resources/v1/components.py index 119e5fee1bb..6e6605c18ab 100644 --- a/core/dbt/artifacts/resources/v1/components.py +++ b/core/dbt/artifacts/resources/v1/components.py @@ -195,6 +195,12 @@ class ParsedResource(ParsedResourceMandatory): relation_name: Optional[str] = None raw_code: str = "" + def __post_serialize__(self, dct: Dict, context: Optional[Dict] = None): + dct = super().__post_serialize__(dct, context) + if context and context.get("artifact") and "config_call_dict" in dct: + del dct["config_call_dict"] + return dct + @dataclass class CompiledResource(ParsedResource): @@ -214,8 +220,8 @@ class CompiledResource(ParsedResource): _pre_injected_sql: Optional[str] = None contract: Contract = field(default_factory=Contract) - def __post_serialize__(self, dct): - dct = super().__post_serialize__(dct) + def __post_serialize__(self, dct: Dict, context: Optional[Dict] = None): + dct = super().__post_serialize__(dct, context) if "_pre_injected_sql" in dct: del dct["_pre_injected_sql"] # Remove compiled attributes diff --git a/core/dbt/artifacts/resources/v1/model.py b/core/dbt/artifacts/resources/v1/model.py index 6713b0af510..821d04f147f 100644 --- a/core/dbt/artifacts/resources/v1/model.py +++ b/core/dbt/artifacts/resources/v1/model.py @@ -1,6 +1,6 @@ from dataclasses import dataclass, field from datetime import datetime -from typing import List, Literal, Optional +from typing import Dict, List, Literal, Optional from dbt.artifacts.resources.types import AccessType, NodeType from dbt.artifacts.resources.v1.components import ( @@ -32,3 +32,9 @@ class Model(CompiledResource): deprecation_date: Optional[datetime] = None defer_relation: Optional[DeferRelation] = None primary_key: List[str] = field(default_factory=list) + + def __post_serialize__(self, dct: Dict, context: Optional[Dict] = None): + dct = super().__post_serialize__(dct, context) + if context and context.get("artifact") and "defer_relation" in dct: + del dct["defer_relation"] + return dct diff --git a/core/dbt/artifacts/resources/v1/seed.py b/core/dbt/artifacts/resources/v1/seed.py index 09d9233710f..5328488b3c5 100644 --- a/core/dbt/artifacts/resources/v1/seed.py +++ b/core/dbt/artifacts/resources/v1/seed.py @@ -1,5 +1,5 @@ from dataclasses import dataclass, field -from typing import Literal, Optional +from typing import Dict, Literal, Optional from dbt.artifacts.resources.types import NodeType from dbt.artifacts.resources.v1.components import ( @@ -33,3 +33,9 @@ class Seed(ParsedResource): # No SQLDefaults! root_path: Optional[str] = None depends_on: MacroDependsOn = field(default_factory=MacroDependsOn) defer_relation: Optional[DeferRelation] = None + + def __post_serialize__(self, dct: Dict, context: Optional[Dict] = None): + dct = super().__post_serialize__(dct, context) + if context and context.get("artifact") and "defer_relation" in dct: + del dct["defer_relation"] + return dct diff --git a/core/dbt/artifacts/resources/v1/snapshot.py b/core/dbt/artifacts/resources/v1/snapshot.py index c20911ad3af..6164d953184 100644 --- a/core/dbt/artifacts/resources/v1/snapshot.py +++ b/core/dbt/artifacts/resources/v1/snapshot.py @@ -1,5 +1,5 @@ from dataclasses import dataclass -from typing import List, Literal, Optional, Union +from typing import Dict, List, Literal, Optional, Union from dbt.artifacts.resources.types import NodeType from dbt.artifacts.resources.v1.components import CompiledResource, DeferRelation @@ -65,3 +65,9 @@ class Snapshot(CompiledResource): resource_type: Literal[NodeType.Snapshot] config: SnapshotConfig defer_relation: Optional[DeferRelation] = None + + def __post_serialize__(self, dct, context: Optional[Dict] = None): + dct = super().__post_serialize__(dct, context) + if context and context.get("artifact") and "defer_relation" in dct: + del dct["defer_relation"] + return dct diff --git a/core/dbt/artifacts/schemas/base.py b/core/dbt/artifacts/schemas/base.py index 2ee9f09eb5e..c1a8f0b65de 100644 --- a/core/dbt/artifacts/schemas/base.py +++ b/core/dbt/artifacts/schemas/base.py @@ -33,7 +33,7 @@ def __str__(self) -> str: class Writable: def write(self, path: str): - write_json(path, self.to_dict(omit_none=False)) # type: ignore + write_json(path, self.to_dict(omit_none=False, context={"artifact": True})) # type: ignore class Readable: @@ -59,8 +59,8 @@ class BaseArtifactMetadata(dbtClassMixin): invocation_id: Optional[str] = dataclasses.field(default_factory=get_invocation_id) env: Dict[str, str] = dataclasses.field(default_factory=get_metadata_vars) - def __post_serialize__(self, dct): - dct = super().__post_serialize__(dct) + def __post_serialize__(self, dct: Dict, context: Optional[Dict] = None): + dct = super().__post_serialize__(dct, context) if dct["generated_at"] and dct["generated_at"].endswith("+00:00"): dct["generated_at"] = dct["generated_at"].replace("+00:00", "") + "Z" return dct diff --git a/core/dbt/artifacts/schemas/catalog/v1/catalog.py b/core/dbt/artifacts/schemas/catalog/v1/catalog.py index d1c692e7573..d6d02608bca 100644 --- a/core/dbt/artifacts/schemas/catalog/v1/catalog.py +++ b/core/dbt/artifacts/schemas/catalog/v1/catalog.py @@ -81,8 +81,8 @@ class CatalogResults(dbtClassMixin): errors: Optional[List[str]] = None _compile_results: Optional[Any] = None - def __post_serialize__(self, dct): - dct = super().__post_serialize__(dct) + def __post_serialize__(self, dct: Dict, context: Optional[Dict] = None): + dct = super().__post_serialize__(dct, context) if "_compile_results" in dct: del dct["_compile_results"] return dct diff --git a/core/dbt/artifacts/schemas/manifest/v12/manifest.py b/core/dbt/artifacts/schemas/manifest/v12/manifest.py index 4a4314ceab9..cc13fca43f5 100644 --- a/core/dbt/artifacts/schemas/manifest/v12/manifest.py +++ b/core/dbt/artifacts/schemas/manifest/v12/manifest.py @@ -180,11 +180,3 @@ def upgrade_schema_version(cls, data): if manifest_schema_version < cls.dbt_schema_version.version: data = upgrade_manifest_json(data, manifest_schema_version) return cls.from_dict(data) - - def __post_serialize__(self, dct): - for unique_id, node in dct["nodes"].items(): - if "config_call_dict" in node: - del node["config_call_dict"] - if "defer_relation" in node: - del node["defer_relation"] - return dct diff --git a/core/dbt/artifacts/schemas/run/v5/run.py b/core/dbt/artifacts/schemas/run/v5/run.py index d4adf100388..2724554346e 100644 --- a/core/dbt/artifacts/schemas/run/v5/run.py +++ b/core/dbt/artifacts/schemas/run/v5/run.py @@ -2,7 +2,13 @@ import threading from dataclasses import dataclass, field from datetime import datetime -from typing import TYPE_CHECKING, Any, Dict, Iterable, Optional, Sequence, Tuple +from typing import Any, Dict, Iterable, Optional, Sequence, Tuple + +# https://github.com/dbt-labs/dbt-core/issues/10098 +# Needed for Mashumaro serialization of RunResult below +# TODO: investigate alternative approaches to restore conditional import +# if TYPE_CHECKING: +import agate from dbt.artifacts.resources import CompiledResource from dbt.artifacts.schemas.base import ( @@ -22,9 +28,6 @@ from dbt_common.clients.system import write_json from dbt_common.constants import SECRET_ENV_PREFIX -if TYPE_CHECKING: - import agate - @dataclass class RunResult(NodeResult): diff --git a/core/dbt/context/providers.py b/core/dbt/context/providers.py index a27eb395293..15be73b535d 100644 --- a/core/dbt/context/providers.py +++ b/core/dbt/context/providers.py @@ -554,8 +554,11 @@ def create_relation(self, target_model: ManifestNode) -> RelationProxy: and target_model.defer_relation and self.config.args.defer and ( - # User has explicitly opted to prefer defer_relation - self.config.args.favor_state + # User has explicitly opted to prefer defer_relation for unselected resources + ( + self.config.args.favor_state + and target_model.unique_id not in selected_resources.SELECTED_RESOURCES + ) # Or, this node's relation does not exist in the expected target location (cache lookup) or not get_adapter(self.config).get_relation( target_model.database, target_model.schema, target_model.identifier diff --git a/core/dbt/contracts/files.py b/core/dbt/contracts/files.py index 512dc1533d0..2c78e97f977 100644 --- a/core/dbt/contracts/files.py +++ b/core/dbt/contracts/files.py @@ -139,8 +139,8 @@ def _deserialize(cls, dct: Dict[str, int]): sf = SourceFile.from_dict(dct) return sf - def __post_serialize__(self, dct): - dct = super().__post_serialize__(dct) + def __post_serialize__(self, dct: Dict, context: Optional[Dict] = None): + dct = super().__post_serialize__(dct, context) # remove empty lists to save space dct_keys = list(dct.keys()) for key in dct_keys: @@ -226,8 +226,8 @@ def macro_patches(self): def source_patches(self): return self.sop - def __post_serialize__(self, dct): - dct = super().__post_serialize__(dct) + def __post_serialize__(self, dct: Dict, context: Optional[Dict] = None): + dct = super().__post_serialize__(dct, context) # Remove partial parsing specific data for key in ("pp_test_index", "pp_dict"): if key in dct: diff --git a/core/dbt/contracts/graph/manifest.py b/core/dbt/contracts/graph/manifest.py index 08000eb5ad9..9ca11166388 100644 --- a/core/dbt/contracts/graph/manifest.py +++ b/core/dbt/contracts/graph/manifest.py @@ -20,7 +20,6 @@ Union, ) -from mashumaro.mixins.msgpack import DataClassMessagePackMixin from typing_extensions import Protocol import dbt_common.exceptions @@ -805,7 +804,7 @@ class ManifestStateCheck(dbtClassMixin): @dataclass -class Manifest(MacroMethods, DataClassMessagePackMixin, dbtClassMixin): +class Manifest(MacroMethods, dbtClassMixin): """The manifest for the full graph, after parsing and during compilation.""" # These attributes are both positional and by keyword. If an attribute @@ -872,7 +871,7 @@ class Manifest(MacroMethods, DataClassMessagePackMixin, dbtClassMixin): metadata={"serialize": lambda x: None, "deserialize": lambda x: None}, ) - def __pre_serialize__(self): + def __pre_serialize__(self, context: Optional[Dict] = None): # serialization won't work with anything except an empty source_patches because # tuple keys are not supported, so ensure it's empty self.source_patches = {} diff --git a/core/dbt/contracts/graph/nodes.py b/core/dbt/contracts/graph/nodes.py index 8edb307f242..4cc72327332 100644 --- a/core/dbt/contracts/graph/nodes.py +++ b/core/dbt/contracts/graph/nodes.py @@ -258,8 +258,8 @@ def write_node(self, project_root: str, compiled_path, compiled_code: str): def _serialize(self): return self.to_dict() - def __post_serialize__(self, dct): - dct = super().__post_serialize__(dct) + def __post_serialize__(self, dct: Dict, context: Optional[Dict] = None): + dct = super().__post_serialize__(dct, context) if "_event_status" in dct: del dct["_event_status"] return dct diff --git a/core/dbt/contracts/graph/unparsed.py b/core/dbt/contracts/graph/unparsed.py index 0cddc3139b0..f2fb390c69e 100644 --- a/core/dbt/contracts/graph/unparsed.py +++ b/core/dbt/contracts/graph/unparsed.py @@ -278,8 +278,8 @@ class UnparsedSourceTableDefinition(HasColumnTests, HasColumnAndTestProps): external: Optional[ExternalTable] = None tags: List[str] = field(default_factory=list) - def __post_serialize__(self, dct): - dct = super().__post_serialize__(dct) + def __post_serialize__(self, dct: Dict, context: Optional[Dict] = None): + dct = super().__post_serialize__(dct, context) if "freshness" not in dct and self.freshness is None: dct["freshness"] = None return dct @@ -316,8 +316,8 @@ def validate(cls, data): def yaml_key(self) -> "str": return "sources" - def __post_serialize__(self, dct): - dct = super().__post_serialize__(dct) + def __post_serialize__(self, dct: Dict, context: Optional[Dict] = None): + dct = super().__post_serialize__(dct, context) if "freshness" not in dct and self.freshness is None: dct["freshness"] = None return dct diff --git a/core/dbt/contracts/project.py b/core/dbt/contracts/project.py index 4b98143f4b4..b0b7179f333 100644 --- a/core/dbt/contracts/project.py +++ b/core/dbt/contracts/project.py @@ -78,6 +78,16 @@ def get_revisions(self) -> List[str]: return [str(self.revision)] +@dataclass +class PrivatePackage(Package): + private: str + provider: Optional[str] = None + revision: Optional[RawVersion] = None + warn_unpinned: Optional[bool] = field(default=None, metadata={"alias": "warn-unpinned"}) + subdirectory: Optional[str] = None + unrendered: Dict[str, Any] = field(default_factory=dict) + + @dataclass class RegistryPackage(Package): package: str @@ -92,7 +102,7 @@ def get_versions(self) -> List[str]: return [str(self.version)] -PackageSpec = Union[LocalPackage, TarballPackage, GitPackage, RegistryPackage] +PackageSpec = Union[LocalPackage, TarballPackage, GitPackage, RegistryPackage, PrivatePackage] @dataclass diff --git a/core/dbt/deps/resolver.py b/core/dbt/deps/resolver.py index 0ac27835511..b4a0c60ef6c 100644 --- a/core/dbt/deps/resolver.py +++ b/core/dbt/deps/resolver.py @@ -7,6 +7,7 @@ GitPackage, LocalPackage, PackageSpec, + PrivatePackage, RegistryPackage, TarballPackage, ) @@ -16,7 +17,7 @@ from dbt.deps.registry import RegistryUnpinnedPackage from dbt.deps.tarball import TarballUnpinnedPackage from dbt.exceptions import ( - DbtInternalError, + DependencyError, DuplicateDependencyToRootError, DuplicateProjectDependencyError, MismatchedDependencyTypeError, @@ -74,10 +75,14 @@ def update_from(self, src: List[PackageSpec]) -> None: pkg = TarballUnpinnedPackage.from_contract(contract) elif isinstance(contract, GitPackage): pkg = GitUnpinnedPackage.from_contract(contract) + elif isinstance(contract, PrivatePackage): + raise DependencyError( + f'Cannot resolve private package {contract.private} because git provider integration is missing. Please use a "git" package instead.' + ) elif isinstance(contract, RegistryPackage): pkg = RegistryUnpinnedPackage.from_contract(contract) else: - raise DbtInternalError("Invalid package type {}".format(type(contract))) + raise DependencyError("Invalid package type {}".format(type(contract))) self.incorporate(pkg) @classmethod diff --git a/core/dbt/events/types.py b/core/dbt/events/types.py index 15da4645133..5573a225ebb 100644 --- a/core/dbt/events/types.py +++ b/core/dbt/events/types.py @@ -433,11 +433,13 @@ def code(self) -> str: return "D015" def message(self) -> str: - description = f"Spaces found in {self.count_invalid_names} resource name(s). This is deprecated, and may lead to errors when using dbt. For more information: https://docs.getdbt.com/reference/global-configs/legacy-behaviors#require_resource_names_without_spaces" + description = f"Spaces found in {self.count_invalid_names} resource name(s). This is deprecated, and may lead to errors when using dbt." if self.show_debug_hint: description += " Run again with `--debug` to see them all." + description += " For more information: https://docs.getdbt.com/reference/global-configs/legacy-behaviors" + return line_wrap_message(warning_tag(description)) @@ -446,7 +448,7 @@ def code(self) -> str: return "D016" def message(self) -> str: - description = f"Installed package '{self.package_name}' is overriding the built-in materialization '{self.materialization_name}'. Overrides of built-in materializations from installed packages will be deprecated in future versions of dbt. Please refer to https://docs.getdbt.com/reference/global-configs/legacy-behaviors#require_explicit_package_overrides_for_builtin_materializations for detailed documentation and suggested workarounds." + description = f"Installed package '{self.package_name}' is overriding the built-in materialization '{self.materialization_name}'. Overrides of built-in materializations from installed packages will be deprecated in future versions of dbt. For more information: https://docs.getdbt.com/reference/global-configs/legacy-behaviors" return line_wrap_message(warning_tag(description)) @@ -456,7 +458,7 @@ def code(self) -> str: return "D017" def message(self) -> str: - description = "In a future version of dbt, the `source freshness` command will start running `on-run-start` and `on-run-end` hooks by default. Please refer to https://docs.getdbt.com/reference/global-configs/legacy-behaviors#source_freshness_run_project_hooks for detailed documentation and suggested workarounds." + description = "In a future version of dbt, the `source freshness` command will start running `on-run-start` and `on-run-end` hooks by default. For more information: https://docs.getdbt.com/reference/global-configs/legacy-behaviors" return line_wrap_message(warning_tag(description)) diff --git a/core/dbt/graph/selector_methods.py b/core/dbt/graph/selector_methods.py index 11db223bb74..613bd4d7d5c 100644 --- a/core/dbt/graph/selector_methods.py +++ b/core/dbt/graph/selector_methods.py @@ -63,6 +63,7 @@ class MethodName(StrEnum): Version = "version" SemanticModel = "semantic_model" SavedQuery = "saved_query" + UnitTest = "unit_test" def is_selected_node(fqn: List[str], node_selector: str, is_versioned: bool) -> bool: @@ -425,6 +426,31 @@ def search(self, included_nodes: Set[UniqueId], selector: str) -> Iterator[Uniqu yield unique_id +class UnitTestSelectorMethod(SelectorMethod): + def search(self, included_nodes: Set[UniqueId], selector: str) -> Iterator[UniqueId]: + parts = selector.split(".") + target_package = SELECTOR_GLOB + if len(parts) == 1: + target_name = parts[0] + elif len(parts) == 2: + target_package, target_name = parts + else: + msg = ( + 'Invalid unit test selector value "{}". Saved queries must be of ' + "the form ${{unit_test_name}} or " + "${{unit_test_package_name.unit_test_name}}" + ).format(selector) + raise DbtRuntimeError(msg) + + for unique_id, node in self.unit_tests(included_nodes): + if not fnmatch(node.package_name, target_package): + continue + if not fnmatch(node.name, target_name): + continue + + yield unique_id + + class PathSelectorMethod(SelectorMethod): def search(self, included_nodes: Set[UniqueId], selector: str) -> Iterator[UniqueId]: """Yields nodes from included that match the given path.""" @@ -883,6 +909,7 @@ class MethodManager: MethodName.Version: VersionSelectorMethod, MethodName.SemanticModel: SemanticModelSelectorMethod, MethodName.SavedQuery: SavedQuerySelectorMethod, + MethodName.UnitTest: UnitTestSelectorMethod, } def __init__( diff --git a/core/dbt/parser/manifest.py b/core/dbt/parser/manifest.py index 5a2c22d82dd..ca21ae3039f 100644 --- a/core/dbt/parser/manifest.py +++ b/core/dbt/parser/manifest.py @@ -212,7 +212,7 @@ class ManifestLoaderInfo(dbtClassMixin, Writable): projects: List[ProjectLoaderInfo] = field(default_factory=list) _project_index: Dict[str, ProjectLoaderInfo] = field(default_factory=dict) - def __post_serialize__(self, dct): + def __post_serialize__(self, dct: Dict, context: Optional[Dict] = None): del dct["_project_index"] return dct diff --git a/core/dbt/version.py b/core/dbt/version.py index 6ddbeafe2bf..a4a219e9529 100644 --- a/core/dbt/version.py +++ b/core/dbt/version.py @@ -228,5 +228,5 @@ def _get_adapter_plugin_names() -> Iterator[str]: yield plugin_name -__version__ = "1.8.0b3" +__version__ = "1.9.0a1" installed = get_installed_version() diff --git a/core/setup.py b/core/setup.py index 5baa2eb062e..0e782e954d5 100644 --- a/core/setup.py +++ b/core/setup.py @@ -25,7 +25,7 @@ package_name = "dbt-core" -package_version = "1.8.0b3" +package_version = "1.9.0a1" description = """With dbt, data analysts and engineers can build analytics \ the way engineers build applications.""" diff --git a/docs/eli64/behavior-change-flags.md b/docs/eli64/behavior-change-flags.md index 3d59e75ecab..ad8b0e4fb93 100644 --- a/docs/eli64/behavior-change-flags.md +++ b/docs/eli64/behavior-change-flags.md @@ -4,30 +4,29 @@ User documentation: https://docs.getdbt.com/reference/global-configs/legacy-beha ## Rules for introducing a new flag -1. **Naming.** All behavior change flags should be named so that their default value changes from **False → True**. This makes it significantly easier to document, talk about, and understand. - * If the flag is prohibiting something that we previously allowed, use the verb “require.” Examples: +1. **Naming.** All behavior change flags should be named so that their default value changes from **False → True**. This makes it significantly easier for us to document them and talk about them consistently, and it's more intuitive for end users. + * (a) If the flag is prohibiting something that we previously allowed, use the verb "require." Examples: * `require_resource_names_without_spaces` * `require_explicit_package_overrides_for_builtin_materializations` - * All flags should be of boolean type, and False by default when introduced: `bool = False`. -2. **Documentation.** Start with the docs! What is the change? Who might be affected? What action will users need to take to mitigate this change? At this point, the dates for flag Introduction + Maturity are “TBD.” + * (b) All flags should be of boolean type, and False by default when introduced: `bool = False`. +2. **Documentation.** Start with the docs. What is the change? Who might be affected? What action will users need to take to mitigate this change? At this point, the dates for flag Introduction + Maturity are "TBD." 3. **Deprecation warnings**. As a general rule, **all** behavior changes should be accompanied by a deprecation warning. - * Always use our standard deprecations module: [https://github.com/dbt-labs/dbt-core/blob/main/core/dbt/deprecations.py](https://github.com/dbt-labs/dbt-core/blob/main/core/dbt/deprecations.py) - * This serves two purposes: Signalling the change to the user, and collecting telemetry so we can understand blast radius among users with telemtry enabled. - * These warning messages should link back to documentation: [https://docs.getdbt.com/reference/global-configs/legacy-behaviors](https://docs.getdbt.com/reference/global-configs/legacy-behaviors#deprecate_package_materialization_builtin_override) - * Even for additive behaviors that are not “breaking changes,” there is still an opportunity to signal these changes for users, and to gather an estimate of the impact. E.g. `source_freshness_run_project_hooks` should still include a proactive message any time someone runs the `source freshness` command in a project that has `on-run-*` hooks defined. - * The call site for these deprecation warnings should be as close as possible to the place where we’re evaluating conditional logic based on the project flag. Essentially, any time we check the flag value and it returns `False`, we should raise a deprecation warning while preserving the legacy behavior. (In the future, we might be able to streamline more of this boilerplate code.) - * If users want to silence these deprecation warnings, they can do so via `warn_error_options.silence`. Explicitly setting the flag to `False` in `dbt_project.yml` is not sufficient to silence the warning. + * (a) Always use our standard deprecations module: [https://github.com/dbt-labs/dbt-core/blob/main/core/dbt/deprecations.py](https://github.com/dbt-labs/dbt-core/blob/main/core/dbt/deprecations.py) + * (b) This serves two purposes: Signalling the change to the user, and collecting telemetry so we can understand blast radius among users with telemtry enabled. + * (c) These warning messages should link back to documentation: [https://docs.getdbt.com/reference/global-configs/legacy-behaviors](https://docs.getdbt.com/reference/global-configs/legacy-behaviors#deprecate_package_materialization_builtin_override) + * (d) Even for additive behaviors that are not "breaking changes," there is still an opportunity to signal these changes for users, and to gather an estimate of the impact. E.g. `source_freshness_run_project_hooks` should still include a proactive message any time someone runs the `source freshness` command in a project that has `on-run-*` hooks defined. + * (e) The call site for these deprecation warnings should be as close as possible to the place where we’re evaluating conditional logic based on the project flag. Essentially, any time we check the flag value and it returns `False`, we should raise a deprecation warning while preserving the legacy behavior. (In the future, we might be able to streamline more of this boilerplate code.) + * (f) If users want to silence these deprecation warnings, they can do so via [`warn_error_options.silence`](https://docs.getdbt.com/reference/global-configs/warnings). Explicitly setting the flag to `False` in `dbt_project.yml` is not sufficient to silence the warning. 4. **Exceptions.** If the behavior change is to raise an exception that prohibits behavior which was previously permitted (e.g. spaces in model names), the exception message should also link to the docs on legacy behaviors. 5. **Backports.** Whenever possible, we should backport both the deprecation warning and the flag to the previous version of dbt Core. -6. **Open a GitHub issue** in the dbt-core repository that is the implementation ticket for switching the default from `false` to `true`. Add the `behavior_change_flag` issue label, and add it to the GitHub milestone for the next minor version. (This is true in most cases, see below for exceptional considerations.) During planning, we will bundle up the “introduced” behavior changes into an epic/tasklist that schedules their maturation. +6. **Open a GitHub issue** in the dbt-core repository that is the implementation ticket for switching the default from `false` to `true`. Add the `behavior_change_flag` issue label, and add it to the GitHub milestone for the next minor version. (This is true in most cases, see below for exceptional considerations.) During planning, we will bundle up the "introduced" behavior changes into an epic/tasklist that schedules their maturation. ## After introduction -1. **Mature flag(s) by switching value from `False` → `True` in dbt-core `main`.** - * This should land in **the next minor (`1.X.0`) release of dbt-core**. - If the behavior change is mitigating a security vulnerability, and the next minor release is still planned for several months away, we still backport the fix + flag (off by default) to supported OSS versions, and we strongly advise all users to opt into the flag sooner. -2. **Removing support for legacy behavior.** - * As a general rule, we will not entirely remove support for any legacy behaviors until dbt v2.0. - * We are not committing to supporting them forever (à la Rust editions). But we are also not taking them away willy-nilly. - * On a case-by-case basis, if there is a strong compelling reason to remove a legacy behavior and we see minimal in-the-wild usage (<1% of relevant projects), we can remove it entirely. This needs to be communicated well in advance — at least 2 minor versions after introduction in dbt Core. - * These are *project configurations*, not feature flags. While they add complexity to our codebase, such is the price of maintaining v1.* software. +1. **Maturing flag(s) by switching value from `False` → `True` in dbt-core `main`.** + * (a) This should land in **the next minor (`1.X.0`) release of dbt-core**. + * (b) If the behavior change is mitigating a security vulnerability, and the next minor release is still planned for several months away, we still backport the fix + flag (off by default) to supported OSS versions, and we strongly advise all users to opt into the flag sooner. +2. **Removing support for legacy behaviors.** + * (a) As a general rule, we will not entirely remove support for any legacy behaviors until dbt v2.0. At the same time, we are not committing to supporting them forever (à la Rust editions). We need to strike the right balance between _too fast_ and _never_. + * (b) On a case-by-case basis, if there is a strong compelling reason to remove a legacy behavior and we see minimal in-the-wild usage (<1% of relevant projects), we can remove it entirely. This needs to be communicated well in advance — at least 2 minor versions after introduction in dbt Core. + * (d) These are project configurations, not temporary feature flags. They add complexity to our codebase; that complexity compounds the more we have, and the longer we have them. Such is the price of maintaining mature v1.* software. diff --git a/tests/functional/artifacts/test_run_results.py b/tests/functional/artifacts/test_run_results.py index ba2fff9db1f..dea947f342b 100644 --- a/tests/functional/artifacts/test_run_results.py +++ b/tests/functional/artifacts/test_run_results.py @@ -42,6 +42,22 @@ def test_timing_exists(self, project): assert len(results.results[0].timing) > 0 +class TestRunResultsSerializableInContext: + @pytest.fixture(scope="class") + def models(self): + return {"model.sql": good_model_sql} + + @pytest.fixture(scope="class") + def project_config_update(self): + return { + "on-run-end": ["{% for result in results %}{{ log(result.to_dict()) }}{% endfor %}"] + } + + def test_results_serializable(self, project): + results = run_dbt(["run"]) + assert len(results.results) == 1 + + # This test is failing due to the faulty assumptions that run_results.json would # be written multiple times. Temporarily disabling. @pytest.mark.skip() diff --git a/tests/functional/configs/test_custom_node_colors_configs.py b/tests/functional/configs/test_custom_node_colors_configs.py index 1ca28d67795..7772e3d44ca 100644 --- a/tests/functional/configs/test_custom_node_colors_configs.py +++ b/tests/functional/configs/test_custom_node_colors_configs.py @@ -1,5 +1,6 @@ import pytest +from dbt.exceptions import ConfigUpdateError from dbt.tests.util import get_manifest, run_dbt from dbt_common.dataclass_schema import ValidationError @@ -304,7 +305,7 @@ def test__invalid_color_config_block( self, project, ): - with pytest.raises(ValidationError): + with pytest.raises((ValidationError, ConfigUpdateError)): run_dbt(["compile"]) diff --git a/tests/functional/defer_state/test_defer_state.py b/tests/functional/defer_state/test_defer_state.py index b823c8e1f78..994ece5aa61 100644 --- a/tests/functional/defer_state/test_defer_state.py +++ b/tests/functional/defer_state/test_defer_state.py @@ -230,6 +230,26 @@ def test_run_defer_iff_not_exists(self, project, unique_schema, other_schema): assert len(results) == 2 assert other_schema not in results[0].node.compiled_code + # again with --favor-state, but this time select both the seed and the view + # because the seed is also selected, the view should select from the seed in our schema ('other_schema') + results = run_dbt( + [ + "build", + "--state", + "state", + "--select", + "seed view_model", + "--resource-type", + "seed model", + "--defer", + "--favor-state", + "--target", + "otherschema", + ] + ) + assert len(results) == 2 + assert other_schema in results[1].node.compiled_code + class TestDeferStateDeletedUpstream(BaseDeferState): def test_run_defer_deleted_upstream(self, project, unique_schema, other_schema): diff --git a/tests/unit/test_graph_selector_methods.py b/tests/unit/graph/test_selector_methods.py similarity index 97% rename from tests/unit/test_graph_selector_methods.py rename to tests/unit/graph/test_selector_methods.py index bc717f90ce8..28ed9202f86 100644 --- a/tests/unit/test_graph_selector_methods.py +++ b/tests/unit/graph/test_selector_methods.py @@ -27,8 +27,10 @@ TagSelectorMethod, TestNameSelectorMethod, TestTypeSelectorMethod, + UnitTestSelectorMethod, VersionSelectorMethod, ) +from tests.unit.utils import replace_config from tests.unit.utils.manifest import ( make_exposure, make_group, @@ -38,10 +40,9 @@ make_saved_query, make_seed, make_semantic_model, + make_unit_test, ) -from .utils import replace_config - def search_manifest_using_method(manifest, method, selection): selected = method.search( @@ -586,6 +587,24 @@ def test_select_saved_query_by_tag(manifest: Manifest) -> None: search_manifest_using_method(manifest, method, "any_tag") +def test_select_unit_test(manifest: Manifest) -> None: + test_model = make_model("test", "my_model", "select 1 as id") + unit_test = make_unit_test("test", "my_unit_test", test_model) + manifest.unit_tests[unit_test.unique_id] = unit_test + methods = MethodManager(manifest, None) + method = methods.get_method("unit_test", []) + + assert isinstance(method, UnitTestSelectorMethod) + assert not search_manifest_using_method(manifest, method, "not_test_unit_test") + assert search_manifest_using_method(manifest, method, "*nit_test") == {unit_test.search_name} + assert search_manifest_using_method(manifest, method, "test.my_unit_test") == { + unit_test.search_name + } + assert search_manifest_using_method(manifest, method, "my_unit_test") == { + unit_test.search_name + } + + @pytest.fixture def previous_state(manifest): writable = copy.deepcopy(manifest).writable_manifest() diff --git a/tests/unit/test_deps.py b/tests/unit/test_deps.py index 1ca640c50c3..339bbbc5d23 100644 --- a/tests/unit/test_deps.py +++ b/tests/unit/test_deps.py @@ -791,6 +791,19 @@ def test_dependency_resolution(self): self.assertEqual(resolved[1].name, "dbt-labs-test/b") self.assertEqual(resolved[1].version, "0.2.1") + def test_private_package_raise_error(self): + package_config = PackageConfig.from_dict( + { + "packages": [ + {"private": "dbt-labs-test/a", "subdirectory": "foo-bar"}, + ], + } + ) + with self.assertRaisesRegex( + dbt.exceptions.DependencyError, "Cannot resolve private package" + ): + resolve_packages(package_config.packages, mock.MagicMock(project_name="test"), {}) + def test_dependency_resolution_allow_prerelease(self): package_config = PackageConfig.from_dict( { diff --git a/third-party-stubs/mashumaro/jsonschema/builder.pyi b/third-party-stubs/mashumaro/jsonschema/builder.pyi index 98bbc860298..8f973240a85 100644 --- a/third-party-stubs/mashumaro/jsonschema/builder.pyi +++ b/third-party-stubs/mashumaro/jsonschema/builder.pyi @@ -16,7 +16,7 @@ def build_json_schema( class JSONSchemaDefinitions(DataClassJSONMixin): definitions: Dict[str, JSONSchema] - def __post_serialize__(self, d: Dict[Any, Any]) -> List[Dict[str, Any]]: ... # type: ignore + def __post_serialize__(self, d: Dict[Any, Any], context: Optional[Dict]) -> List[Dict[str, Any]]: ... # type: ignore def __init__(self, definitions) -> None: ... class JSONSchemaBuilder: diff --git a/third-party-stubs/mashumaro/jsonschema/models.pyi b/third-party-stubs/mashumaro/jsonschema/models.pyi index b67db67b20b..6022d3d129f 100644 --- a/third-party-stubs/mashumaro/jsonschema/models.pyi +++ b/third-party-stubs/mashumaro/jsonschema/models.pyi @@ -106,8 +106,8 @@ class JSONSchema(DataClassJSONMixin): serialize_by_alias: bool aliases: Incomplete serialization_strategy: Incomplete - def __pre_serialize__(self) -> JSONSchema: ... - def __post_serialize__(self, d: Dict[Any, Any]) -> Dict[Any, Any]: ... + def __pre_serialize__(self, context: Optional[Dict]) -> JSONSchema: ... + def __post_serialize__(self, d: Dict[Any, Any], context: Optional[Dict]) -> Dict[Any, Any]: ... def __init__( self, schema, diff --git a/third-party-stubs/mashumaro/mixins/dict.pyi b/third-party-stubs/mashumaro/mixins/dict.pyi index 877283960a9..c6ec9accad1 100644 --- a/third-party-stubs/mashumaro/mixins/dict.pyi +++ b/third-party-stubs/mashumaro/mixins/dict.pyi @@ -1,4 +1,4 @@ -from typing import Any, Dict, Mapping, Type, TypeVar +from typing import Any, Dict, Mapping, Type, TypeVar, Optional T = TypeVar("T", bound="DataClassDictMixin") @@ -11,5 +11,5 @@ class DataClassDictMixin: def __pre_deserialize__(cls: Type[T], d: Dict[Any, Any]) -> Dict[Any, Any]: ... @classmethod def __post_deserialize__(cls: Type[T], obj: T) -> T: ... - def __pre_serialize__(self: T) -> T: ... - def __post_serialize__(self, d: Dict[Any, Any]) -> Dict[Any, Any]: ... + def __pre_serialize__(self: T, context: Optional[Dict]) -> T: ... + def __post_serialize__(self, d: Dict[Any, Any], context: Optional[Dict]) -> Dict[Any, Any]: ...