tag:github.com,2008:https://github.com/pascal-ce/dbt-utils/releases Tags from dbt-utils 2022-06-15T19:44:17Z tag:github.com,2008:Repository/511955470/0.8.6 2022-06-15T19:44:17Z 0.8.6 dbeatty10 tag:github.com,2008:Repository/511955470/0.8.5 2022-05-17T17:34:16Z 0.8.5 dbeatty10 tag:github.com,2008:Repository/511955470/0.8.4 2022-04-08T02:03:10Z 0.8.4 joellabes tag:github.com,2008:Repository/511955470/0.8.3 2022-04-07T22:44:47Z dbt utils 0.8.3 (#534) <p>dbt utils 0.8.3 (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/534">dbt-labs#534</a>)</p> <p>* Fix/timestamp withought timezone (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/458">dbt-labs#458</a>)</p> <p>* timestamp and changelog updates</p> <p>* changelog fix</p> <p>* Add context for why change to no timezone</p> <p>Co-authored-by: Joel Labes &lt;joel.labes@dbtlabs.com&gt;</p> <p>* also ignore dbt_packages (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/463">dbt-labs#463</a>)</p> <p>* also ignore dbt_packages</p> <p>* Update CHANGELOG.md</p> <p>* Update CHANGELOG.md</p> <p>Co-authored-by: Joel Labes &lt;joel.labes@dbtlabs.com&gt;</p> <p>* date_spine: transform comment to jinja (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/462">dbt-labs#462</a>)</p> <p>* Have union_relations raise exception when include parameter results in no columns (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/473">dbt-labs#473</a>)</p> <p>* Raise exception if no columns in column_superset</p> <p>* Add relation names to compiler error message</p> <p>* Add `union_relations` fix to changelog</p> <p>* Added case for handling postgres foreign tables... (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/476">dbt-labs#476</a>)</p> <p>* Add link for fewer_rows_than schema test in docs (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/465">dbt-labs#465</a>)</p> <p>* Added case for handling postgres foreign tables (tables which are external to current database and are imported into current database from remote data stores by using Foreign Data Wrappers functionallity).</p> <p>* Reworked getting of postges table_type.</p> <p>* Added needed changes to CHANGELOG.</p> <p>Co-authored-by: José Coto &lt;jlcoto@users.noreply.github.com&gt; <br />Co-authored-by: Taras Stetsiak &lt;tstetsiak@health-union.com&gt;</p> <p>* Enhance usability of star macro by only generating column aliases when prefix and/or suffix is specified (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/468">dbt-labs#468</a>)</p> <p>* The star macro should only produce column aliases when there is either a prefix or suffix specified.</p> <p>* Enhanced the readme for the star macro.</p> <p>* Add new integration test</p> <p>Co-authored-by: Nick Perrott &lt;nperrott@roiti.com&gt; <br />Co-authored-by: Josh Elston-Green <br />Co-authored-by: Joel Labes &lt;joel.labes@dbtlabs.com&gt;</p> <p>* fix: extra brace typo in insert_by_period_materialization (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/480">dbt-labs#480</a>)</p> <p>* Support quoted column names in sequential_values test (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/479">dbt-labs#479</a>)</p> <p>* Add any value (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/501">dbt-labs#501</a>)</p> <p>* Add link for fewer_rows_than schema test in docs (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/465">dbt-labs#465</a>)</p> <p>* Update get_query_results_as_dict example to demonstrate accessing columnar results as dictionary values (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/474">dbt-labs#474</a>)</p> <p>* Update get_qu <br />ery_results_as_dict example to demonstrate accessing columnar results as dictionary values</p> <p>* Use slugify in example</p> <p>* Fix slugify example with dbt_utils. package prefix</p> <p>Co-authored-by: Elize Papineau &lt;elize.papineau@dbtlabs.com&gt;</p> <p>* Add note about not_null_where deprecation to Readme (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/477">dbt-labs#477</a>)</p> <p>* Add note about not_null_where deprecation to Readme</p> <p>* Add docs to unique_where test</p> <p>* Update pull_request_template.md to reference `main` vs `master` (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/496">dbt-labs#496</a>)</p> <p>* Correct coalesce -&gt; concatenation typo (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/495">dbt-labs#495</a>)</p> <p>* add any_value cross-db macro</p> <p>* Missing colon in test</p> <p>* Update CHANGELOG.md</p> <p>Co-authored-by: José Coto &lt;jlcoto@users.noreply.github.com&gt; <br />Co-authored-by: Elize Papineau &lt;elizepapineau@gmail.com&gt; <br />Co-authored-by: Elize Papineau &lt;elize.papineau@dbtlabs.com&gt; <br />Co-authored-by: Joe Ste.Marie &lt;stemarie.joe@gmail.com&gt; <br />Co-authored-by: Niall Woodward &lt;niall@niallrees.com&gt;</p> <p>* Fix changelog</p> <p>* Second take at fixing pivot to allow single quotes (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/503">dbt-labs#503</a>)</p> <p>* fix pivot : in pivoted column value, single quote must be escaped (on postgresql) <br />else ex. syntax error near : when color = 'blue's'</p> <p>* patched expected</p> <p>* single quote escape : added dispatched version of the macro to support bigquery &amp; snowflake</p> <p>* second backslash to escape in Jinja, change case of test file columns</p> <p>Let's see if other databases allow this</p> <p>* explicitly list columns to compare</p> <p>* different tests for snowflake and others</p> <p>* specific comparison seed</p> <p>* Don't quote identifiers for apostrophe, to avoid BQ and SF problems</p> <p>* Whitespace management for macros</p> <p>* Update CHANGELOG.md</p> <p>Co-authored-by: Marc Dutoo &lt;marc.dutoo@gmail.com&gt;</p> <p>* Add bool or cross db (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/504">dbt-labs#504</a>)</p> <p>* Create bool_or cross-db func</p> <p>* Forgot a comma</p> <p>* Update CHANGELOG.md</p> <p>* Code review tweaks</p> <p>* Fix union_relations error when no include/exclude provided (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/509">dbt-labs#509</a>)</p> <p>* Update CHANGELOG.md</p> <p>* Add _is_ephemeral test to get_column_values (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/518">dbt-labs#518</a>)</p> <p>* Add _is_ephemeral test</p> <p>Co-authored-by: Elize Papineau &lt;elize.papineau@dbtlabs.com&gt;</p> <p>* Add deduplication macro (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/512">dbt-labs#512</a>)</p> <p>* Update README.md</p> <p>* Mutually excl range examples in disclosure triangle</p> <p>* Fix union_relations error when no include/exclude provided</p> <p>* Fix union_relations error when no include/exclude provided (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/509">dbt-labs#509</a>)</p> <p>* Update CHANGELOG.md</p> <p>* Add dedupe macro</p> <p>* Add test for dedupe macro</p> <p>* Add documentation to README</p> <p>* Add entry to CHANGELOG</p> <p>* Implement review</p> <p>* Typed materialized views as views (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/525">dbt-labs#525</a>)</p> <p>* Typed materialized views as views</p> <p>* Update get_relations_by_pattern.sql</p> <p>* Moving fix from get_tables_by_pattern_sql</p> <p>reverting changes to this file to add a fix to the macro get_tables_by_pattern_sql</p> <p>* removing quoting from table_type</p> <p>removing quoting from table_type as this was causing an error when calling this macro within get_tables_by_pattern_sql</p> <p>* calling get_table_types_sql for materialized views</p> <p>calling get_table_types_sql macro to handle materialized views in sources.</p> <p>* Add `alias` argument to `deduplicate` macro (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/526">dbt-labs#526</a>)</p> <p>* Add `alias` argument to `deduplicate</p> <p>* Test `alias` argument</p> <p>* Rename `alias` to `relation_alias`</p> <p>* Fix/use generic test naming style instead of schema test (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/521">dbt-labs#521</a>)</p> <p>* Updated Rreferences to 'schema test' in README along with small improvements to test descriptions. Updates were also carried out in folder structure and integration README</p> <p>* Updated references to 'schema test' in Changelog</p> <p>* updated changelog with changes to documentation and fproject file structure</p> <p>* Apply suggestions from code review</p> <p>Update macro descriptions to be "asserts that"</p> <p>* Update CHANGELOG.md</p> <p>* Update README.md</p> <p>Co-authored-by: Joel Labes &lt;joel.labes@dbtlabs.com&gt;</p> <p>* Remove extraneous whitespace (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/529">dbt-labs#529</a>)</p> <p>* rm whitespace from date_trunc</p> <p>* datediff</p> <p>* rm uncessary whitespace control</p> <p>* change log</p> <p>* fix CHANGELOG</p> <p>* address comments</p> <p>* Feature/add listagg macro (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/530">dbt-labs#530</a>)</p> <p>* Update README.md</p> <p>* Mutually excl range examples in disclosure triangle</p> <p>* Fix union_relations error when no include/exclude provided</p> <p>* Fix union_relations error when no include/exclude provided (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/509">dbt-labs#509</a>)</p> <p>* Update CHANGELOG.md</p> <p>* Add to_condition to relationships where</p> <p>* very minor nit - update "an new" to "a new" (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/519">dbt-labs#519</a>)</p> <p>* add quoting to split_part (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/528">dbt-labs#528</a>)</p> <p>* add quoting to split_part</p> <p>* update docs for split_part</p> <p>* typo</p> <p>* corrected readme syntax</p> <p>* revert and update to just documentation</p> <p>* add new line</p> <p>* Update README.md</p> <p>* Update README.md</p> <p>* Update README.md</p> <p>Co-authored-by: Joel Labes &lt;joel.labes@dbtlabs.com&gt;</p> <p>* add macro to get columns (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/516">dbt-labs#516</a>)</p> <p>* add macro to get columns</p> <p>* star macro should use get_columns</p> <p>* add adapter.</p> <p>* swap adapter for dbt_utils</p> <p>Co-authored-by: Joel Labes &lt;joel.labes@dbtlabs.com&gt;</p> <p>* update documentation</p> <p>* add output_lower arg</p> <p>* update name to get_filtered_columns_in_relation from get_columns</p> <p>* add tests</p> <p>* forgot args</p> <p>* too much whitespace removal</p> <p> ----------- <br /> Actual: <br /> ----------- <br /> ---&gt;"field_3"as "test_field_3"&lt;---</p> <p> ----------- <br /> Expected: <br /> ----------- <br /> ---&gt;"field_3" as "test_field_3"&lt;---</p> <p>* didnt mean to move a file that i did not create. moving things back.</p> <p>* remove lowercase logic</p> <p>* limit_zero</p> <p>Co-authored-by: Joel Labes &lt;joel.labes@dbtlabs.com&gt;</p> <p>* Add listagg macro and integration test</p> <p>* remove type in listagg macro</p> <p>* updated integration test</p> <p>* Add redshift to listagg macro</p> <p>* remove redshift listagg</p> <p>* explicitly named group by column</p> <p>* updated default values</p> <p>* Updated example to use correct double vs. single quotes</p> <p>* whitespace control</p> <p>* Added redshift specific macro</p> <p>* Remove documentation</p> <p>* Update integration test so less likely to accidentally work</p> <p>Co-authored-by: Joel Labes &lt;joel.labes@dbtlabs.com&gt;</p> <p>* default everything but measure to none</p> <p>* added limit functionality for other dbs</p> <p>* syntax bug for postgres</p> <p>* update redshift macro</p> <p>* fixed block def control</p> <p>* Fixed bug in redshift</p> <p>* Bug fix redshift</p> <p>* remove unused group_by arg</p> <p>* Added additional test without order by col</p> <p>* updated to regex replace</p> <p>* typo</p> <p>* added more integration_tests</p> <p>* attempt to make redshift less complicated</p> <p>* typo</p> <p>* update redshift</p> <p>* replace to substr</p> <p>* More explicit versions with added complexity</p> <p>* handle special characters</p> <p>Co-authored-by: Joel Labes &lt;joel.labes@dbtlabs.com&gt; <br />Co-authored-by: Jamie Rosenberg &lt;james.rosenberg@canva.com&gt; <br />Co-authored-by: Pat Kearns &lt;pat.kearns@fishtownanalytics.com&gt;</p> <p>* patch default behaviour in get_column_values (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/533">dbt-labs#533</a>)</p> <p>* Update changelog, add missing quotes around get_table_types_sql</p> <p>* rm whitespace</p> <p>Co-authored-by: Joe Markiewicz &lt;74217849+fivetran-joemarkiewicz@users.noreply.github.com&gt; <br />Co-authored-by: Anders &lt;swanson.anders@gmail.com&gt; <br />Co-authored-by: Mikaël Simarik &lt;mikael.simarik@gmail.com&gt; <br />Co-authored-by: Graham Wetzler &lt;graham@wetzler.dev&gt; <br />Co-authored-by: Taras &lt;32882370+Aesthet@users.noreply.github.com&gt; <br />Co-authored-by: José Coto &lt;jlcoto@users.noreply.github.com&gt; <br />Co-authored-by: Taras Stetsiak &lt;tstetsiak@health-union.com&gt; <br />Co-authored-by: nickperrott &lt;46330920+nickperrott@users.noreply.github.com&gt; <br />Co-authored-by: Nick Perrott &lt;nperrott@roiti.com&gt; <br />Co-authored-by: Ted Conbeer &lt;tconbeer@users.noreply.github.com&gt; <br />Co-authored-by: Armand Duijn &lt;armandduijn@users.noreply.github.com&gt; <br />Co-authored-by: Elize Papineau &lt;elizepapineau@gmail.com&gt; <br />Co-authored-by: Elize Papineau &lt;elize.papineau@dbtlabs.com&gt; <br />Co-authored-by: Joe Ste.Marie &lt;stemarie.joe@gmail.com&gt; <br />Co-authored-by: Niall Woodward &lt;niall@niallrees.com&gt; <br />Co-authored-by: Marc Dutoo &lt;marc.dutoo@gmail.com&gt; <br />Co-authored-by: Judah Rand &lt;17158624+judahrand@users.noreply.github.com&gt; <br />Co-authored-by: Luis Leon &lt;98919783+luisleon90@users.noreply.github.com&gt; <br />Co-authored-by: Brid Moynihan &lt;moynihanbridgit@gmail.com&gt; <br />Co-authored-by: SunriseLong &lt;44146580+SunriseLong@users.noreply.github.com&gt; <br />Co-authored-by: Grace Goheen &lt;53586774+graciegoheen@users.noreply.github.com&gt; <br />Co-authored-by: Jamie Rosenberg &lt;james.rosenberg@canva.com&gt; <br />Co-authored-by: Pat Kearns &lt;pat.kearns@fishtownanalytics.com&gt; <br />Co-authored-by: James McNeill &lt;55981540+jpmmcneill@users.noreply.github.com&gt;</p> joellabes tag:github.com,2008:Repository/511955470/0.8.2 2022-03-03T01:24:19Z 0.8.2: Fix union_relations error when no include/exclude provided <p>Fix union_relations error when no include/exclude provided</p> <p>* Fix union_relations error when no include/exclude provided (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/509">dbt-labs#509</a>)</p> <p>* Update CHANGELOG.md</p> joellabes tag:github.com,2008:Repository/511955470/0.8.1 2022-02-23T02:53:49Z 0.8.1 joellabes tag:github.com,2008:Repository/511955470/0.8.0 2021-12-02T21:57:26Z 0.8.0 joellabes tag:github.com,2008:Repository/511955470/0.7.6 2021-12-02T21:43:50Z 0.7.6 joellabes tag:github.com,2008:Repository/511955470/0.7.5 2021-12-02T02:02:45Z 0.7.5 joellabes tag:github.com,2008:Repository/511955470/0.7.4 2021-11-11T02:57:31Z dbt 0.7.4 release (#441) <p>dbt 0.7.4 release (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/441">dbt-labs#441</a>)</p> <p>* Update require-dbt-version to be 1.0</p> <p>* Fix SQL 42000 on Exasol (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/420">dbt-labs#420</a>)</p> <p>" SQL-Error [42000]: syntax error, unexpected '*' " <br />If you specify the * in the unioned with their respectiv names &lt;name&gt;.* you do not receive the SQL Error posted above. This should not inflict any further problems since it is redundant for most DBs.</p> <p>* Minor readme link fixes (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/431">dbt-labs#431</a>)</p> <p>* minor readme link fixes</p> <p>* changelog addition</p> <p>Co-authored-by: Joel Labes &lt;joel.labes@dbtlabs.com&gt;</p> <p>* 0.7.4 changelog (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/432">dbt-labs#432</a>)</p> <p>* Update CHANGELOG.md</p> <p>* Note branch name change</p> <p>* use `limit_zero` macro instead of `limit 0` (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/437">dbt-labs#437</a>)</p> <p>* Utils 0.7.4b1 (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/433">dbt-labs#433</a>)</p> <p>* Update require-dbt-version to be 1.0</p> <p>* Fix SQL 42000 on Exasol (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/420">dbt-labs#420</a>)</p> <p>" SQL-Error [42000]: syntax error, unexpected '*' " <br />If you specify the * in the unioned with their respectiv names &lt;name&gt;.* you do not receive the SQL Error posted above. This should not inflict any further problems since it is redundant for most DBs.</p> <p>* Minor readme link fixes (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/431">dbt-labs#431</a>)</p> <p>* minor readme link fixes</p> <p>* changelog addition</p> <p>Co-authored-by: Joel Labes &lt;joel.labes@dbtlabs.com&gt;</p> <p>* 0.7.4 changelog (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/432">dbt-labs#432</a>)</p> <p>* Update CHANGELOG.md</p> <p>* Note branch name change</p> <p>Co-authored-by: Timo Kruth &lt;timo_kruth@gmx.de&gt; <br />Co-authored-by: Joe Markiewicz &lt;74217849+fivetran-joemarkiewicz@users.noreply.github.com&gt;</p> <p>* standard convention</p> <p>* Update integration_tests/tests/jinja_helpers/test_slugify.sql</p> <p>Taking the liberty of committing on your behalf so that the CI job starts again</p> <p>* Change limit_zero to be a macro</p> <p>Co-authored-by: Joel Labes &lt;joel.labes@dbtlabs.com&gt; <br />Co-authored-by: Timo Kruth &lt;timo_kruth@gmx.de&gt; <br />Co-authored-by: Joe Markiewicz &lt;74217849+fivetran-joemarkiewicz@users.noreply.github.com&gt;</p> <p>* Add col_name alias to else state too (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/437">dbt-labs#437</a>)</p> <p>* Remove extra semicolon in `insert_by_period` materialization (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/439">dbt-labs#439</a>)</p> <p>* Remove extra semicolon in `insert_by_period` materialization.</p> <p>`create_table_as()` generates a SQL statement that already ends with a semicolon, so the extra semicolon after a `create_table_as()` call in the `insert_by_period` materialization ends up being an empty SQL statement, and at least when using Snowflake this causes the dbt run to fail with a "cannot unpack non-iterable NoneType object" error.</p> <p>* Update changelog for PR 439.</p> <p>* Use the relation object passed into get_column_values, instead of making our own (<a class="issue-link js-issue-link" href="https://github.com/dbt-labs/dbt-utils/pull/440">dbt-labs#440</a>)</p> <p>* Use the relation object passed into get_column_values, instead of making our own</p> <p>* Rename variables in get column value test to be clearer</p> <p>* Update CHANGELOG.md</p> <p>* Update CHANGELOG.md</p> <p>Co-authored-by: Timo Kruth &lt;timo_kruth@gmx.de&gt; <br />Co-authored-by: Joe Markiewicz &lt;74217849+fivetran-joemarkiewicz@users.noreply.github.com&gt; <br />Co-authored-by: Anders &lt;swanson.anders@gmail.com&gt; <br />Co-authored-by: Sean Rose &lt;sean.s.rose@gmail.com&gt;</p> joellabes