Skip to content

Releases: dbt-labs/dbt-utils

dbt-utils 0.6.5

18 May 22:01
Compare
Choose a tag to compare

Rejoice, ye dbt-utils users, for we have chosen to move all non-breaking changes into a patch release! Yes yes, we know this isn't strictly the way of semver, but we wanted to get as many of these features out to you before releasing 0.7.0, which is going to contain quite a few breaking changes.

So, what's in this release? Glad you asked...

Features

Fixes

  • Handle booleans gracefully in the unpivot macro (#305 @avishalom)
  • Fix a bug in get_relation_by_prefix that happens with Snowflake external tables. Now the macro will retrieve tables that match the prefix which are external tables (#351 @upjohnc)
  • Fix cardinality_equality test when the two tables' column names differed (#334 @joellabes)

Under the hood

  • Fix Markdown formatting for hub rendering (#336 @coapacetic)
  • Reorder readme and improve docs

dbt-utils 0.6.4

11 Jan 14:49
bbba960
Compare
Choose a tag to compare

dbt-utils v0.6.4

This is a patch release with no breaking changes.

Instead we made lots of teeny, tiny, under-the-hood improvements, mostly to help out adapter maintainers and ourselves as utils maintainers :)

Fixes

  • Fix insert_by_period to support dbt v0.19.0, with backwards compatibility for earlier versions (#319, #320)

Under the hood

  • Speed up CI via threads, workflows (#315, #316)
  • Fix equality test when used with ephemeral models + explicit column set (#321)
  • Fix get_query_results_as_dict integration test with consistent ordering (#322)
  • All macros are now properly dispatched, making it possible for non-core adapters to implement a shim package for dbt-utils (#312) Thanks @chaerinlee1 and @swanderz
  • Small, non-breaking changes to accommodate TSQL (can't group by column number references, no real TRUE/FALSE values, aggregation CTEs need named columns) (#310) Thanks @swanderz
  • Make get_relations_by_pattern and get_relations_by_prefix more powerful by returning relation.type (#323)

dbt-utils 0.6.3

04 Jan 15:16
ac78d49
Compare
Choose a tag to compare

This is a patch release with no substantive changes.

Quality of life

  • Bump require-dbt-version: [">=0.18.0", "<0.20.0"]. This package will support dbt v0.19.0 without any breaking changes.
  • Documentation updates (readme + issue/PR templates)

dbt-utils 0.6.2

16 Sep 16:24
dd35625
Compare
Choose a tag to compare

Another day, another bugfix release. Happens to the best of us!

This release fixes a regression that was introduced in 0.6.0.

Fixes

  • Fix the logic in get_tables_by_pattern_sql to ensure non-default arguments are respected (#279)

dbt-utils v0.6.1

14 Sep 14:29
c838953
Compare
Choose a tag to compare

This is a bugfix release

Fixes

  • Handle schema pattern on BigQuery (#275)

dbt-utils v0.6.0

03 Sep 17:59
48567a6
Compare
Choose a tag to compare

dbt-utils v0.6.0

Thanks to our contributors @tayloramurphy and @JoshuaHuntley

Breaking changes

  • 🚨 dbt v0.18.0 or greater is required for this release. If you are not ready to upgrade, consider using a previous release of this package
  • 🚨 The get_tables_by_prefix, union_tables and get_tables_by_pattern macros have been removed

Migration instructions

Migration instructions can be found in the Changelog

Features

  • Switch usage of adapter_macro to adapter.dispatch, and define dbt_utils_dispatch_list,
    enabling users of community-supported database plugins to add or override macro implementations
    specific to their database (#267)
  • Use add_ephemeral_prefix instead of hard-coding a string literal, to support
    database adapters that use different prefixes (#267)
  • Implement a quote_columns argument in the unique_combination_of_columns schema test (#270 @JoshuaHuntley)

Quality of life

  • Remove deprecated macros get_tables_by_prefix and union_tables (#268)
  • Remove get_tables_by_pattern macro, which is equivalent to the get_tables_by_pattern_sql macro (the latter has a more logical name) (#268)

dbt-utils 0.5.1

31 Jul 13:55
47a02bf
Compare
Choose a tag to compare

This is a bug fix release

Quality of life

  • Improve release process, and fix tests (#251)
  • Make deprecation warnings more useful (#258 @tayloramurphy 🙌 )

dbt-utils 0.5.0

09 Jul 20:16
b736cf6
Compare
Choose a tag to compare

New functionality has been included in this release!

Features

  • Throw a nice error when trying to use a macro that requires the information schema on an ephemeral model (#243) (🚨 may cause previously silent errors to no longer be silent)
  • Add unique_where and not_null_where relationship tests (#250 @MartinGuindon)
  • Add distinct argument to the pivot macro (#248 @DylanBaker)
  • Add get_relations_by_pattern macro (#220 @JDW818)

Fixes

Quality of life

  • Replace BigQuery __TABLES_SUMMARY__ with INFORMATION_SCHEMA (#247 @preston-hf)

dbt-utils v0.4.1

09 Jul 19:04
Compare
Choose a tag to compare

This is a bug-fix release

Fixes

  • Ensure surrogate key handles single arg (#242, fixes #241)

0.4.0

15 Jun 17:30
37b3b20
Compare
Choose a tag to compare

🚨 This release contains a breaking change

This package now requires dbt >=0.17.0

Features

Fixes

  • Return a relation in the insert-by-period materialization (#236 @jtalmi)

Under the hood

  • Use python v3.6.3 for integration tests (#233)
  • Add GitHub templates (#217 #222)
  • Update star macro to use adapter.quote (#205 @bjgbeelen)
  • Simplify running the integration tests (#211 @bjgbeelen)
  • Update test scripts to ensure existing profiles are not removed (#231)

🙏 Thank you to all our contributors!