- Fix the logic in
get_tables_by_pattern_sqlto ensure non-default arguments are respected (#279)
- Fix the logic in
get_tables_by_pattern_sqlfor matching a schema pattern on BigQuery (#275)
- 🚨 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_tablesandget_tables_by_patternmacros have been removed
- Upgrade your dbt project to v0.18.0 using these instructions.
- Upgrade your
packages.ymlfile to use version0.6.0of this package. Rundbt cleananddbt deps. - If your project uses the
get_tables_by_prefixmacro, replace it withget_relations_by_prefix. All arguments have retained the same name. - If your project uses the
union_tablesmacro, replace it withunion_relations. While the order of arguments has stayed consistent, thetablesargument has been renamed torelations. Further, the default value for thesource_column_nameargument has changed from'_dbt_source_table'to'_dbt_source_relation'— you may want to explicitly define this argument to avoid breaking changes.
-- before:
{{ dbt_utils.union_tables(
tables=[ref('my_model'), source('my_source', 'my_table')],
exclude=["_loaded_at"]
) }}
-- after:
{{ dbt_utils.union_relations(
relations=[ref('my_model'), source('my_source', 'my_table')],
exclude=["_loaded_at"],
source_column_name='_dbt_source_table'
) }}
- If your project uses the
get_tables_by_patternmacro, replace it withget_tables_by_pattern_sql— all arguments are consistent.
- Switch usage of
adapter_macrotoadapter.dispatch, and definedbt_utils_dispatch_list, enabling users of community-supported database plugins to add or override macro implementations specific to their database (#267) - Use
add_ephemeral_prefixinstead 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)
- Remove deprecated macros
get_tables_by_prefixandunion_tables(#268) - Remove
get_tables_by_patternmacro, which is equivalent to theget_tables_by_pattern_sqlmacro (the latter has a more logical name) (#268)
- Improve release process, and fix tests (#251)
- Make deprecation warnings more useful (#258 @tayloramurphy)
- Add more docs for
date_spine(#265 @calvingiles)