dbt-core 1.2.0-b1 - June 24, 2022
Features
- Add selector method when reading selector definitions (#4821, #4827)
- Add set and zip function to contexts (#2345, #5107)
- Adds itertools to modules Jinja namespace (#5130, #5140)
- allow target as an option in profile_template.yml (#5179, #5184)
- seed: Add new macro get_csv_sql (#5206, #5207)
- Grants as Node Configs (#5189, #5230)
- Adds file selectors and support for file selectors in the default method selector (#5240, #5241)
- Move cross-db macros from dbt-utils into dbt-core global project (#4813, #5265)
- Prettify duration message at the end of execution (#5253, #5364)
- Early return from dbt init if no available adapters (#5365, #5366)
Fixes
- Adding new cols to check_cols in snapshots (#3146, #4893)
- Truncate relation names when appending a suffix that will result in len > 63 characters using make_temp_relation and make_backup_relation macros (#2869, #4921)
- Restore ability to utilize
updated_at
for check_cols snapshots (#5076, #5077) - Use yaml renderer (with target context) for rendering selectors (#5131, #5136)
- Fix retry logic to return values after initial try (#5023, #5137)
- Scrub secret env vars from CommandError in exception stacktrace (#5151, #5152)
- Ensure the metric name does not contain spaces (#4572, #5173)
- When parsing 'all_sources' should be a list of unique dirs (#5120, #5176)
- Add warning if yaml contains duplicate keys (#5114, #5146)
- Modifying the drop_test_schema to work better with Redshift issues around locked tables and current transactions (#5200, #5198)
- Fix column comparison in snapshot_check_all_get_existing_columns for check-strategy snapshots with explicit check_cols defined (#5222, #5223)
- Changed how
--select state:modified
detects changes for macros nodes depend on (#5202, #5224) - Fix column comparison in snapshot_check_all_get_existing_columns to use adapter.get_columns_in_relation (#5222, #5232)
- Remove docs file from manifest when removing doc node (#4146, #5270)
- Remove duplicate dbt script entry (#5314, #5304)
- Change node ancestor/descendant algo, fixes issue where downstream models aren't run when using networkx >= 2.8.1 (#5286, #5326)
- Fixing Windows color regression (#5191, #5327)
- Define compatibility for older manifest versions when using state: selection methods (#5213, #5346)
- Remove duplicate key checking introduced in 1.2.0a1 (#5331, #5403)
Under the Hood
- Migrating 005_simple_seed to the new test framework. (#200, #5013)
- Convert 029_docs_generate tests to new framework (#5035, #5058)
- Move package deprecation check outside of package cache (#5068, #5069)
- removal of scaffold first attempt and create_adapter_plugin.py as they are deprecated new scaffold can be found https://github.com/dbt-labs/dbt-database-adapter-scaffold (#4980, #5117)
- Mypy -> 0.942 + fixed import logic to allow for full mypy coverage (#4805, #5171)
- Converted dbt list tests to pytest (#5049, #5178)
- Fix: Call str and repr for UnsetProfileConfig without a RuntimeException (#5081, #5209)
- Improve tracking error logging message (#5197, #5211)
- Clean up materialization logic: more consistent relation names, loading from cache (#2869, #4921)
- Use the default Python version for local dev and test instead of requiring Python 3.8 (#5257, #5269)
- Fix test for context set function (#5266, #5272)
- Fix pip upgrade step in CI for Windows (#5321, #5320)
- Fix unit test test_graph_selection (#5323, #5324)
- Update context readme + clean up context code" (#4796, #5334)
- removed script meant for snowflake to snowflake (#5361, #5362)
Dependencies
- Bump ubuntu from 20.04 to 22.04 (#4904, #5141)
- Bumping hologram version (#5219, #5218)
- Bump python from 3.10.3-slim-bullseye to 3.10.5-slim-bullseye in /docker (#4904, #5367)
Contributors
- @GtheSheep (#4893)
- @NicolasPA (#5211)
- @adamantike (#5207)
- @alexrosenfeld10 (#5184)
- @bd3dowling (#5140)
- @danieldiamond (#4827)
- @dbeatty10 (#5265, #5077)
- @dependabot[bot] (#5141, #5367)
- @epapineau (#4921)
- @groodt (#5304)
- @jared-rimmer (#5364)
- @jeremyyeo (#5107, #5146, #5403)
- @jwills (#5241, #5269)
- @tomasfarias (#5209)
- @ulisesojeda (#5366)