Skip to content

Commit 5717b10

Browse files
authored
Fix union_relations error when no include/exclude provided
* Fix union_relations error when no include/exclude provided (#509) * Update CHANGELOG.md
1 parent 168396f commit 5717b10

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# dbt-utils v0.8.2
2+
## Fixes
3+
- Fix union_relations error from [#473](https://github.com/dbt-labs/dbt-utils/pull/473) when no include/exclude parameters are provided ([#505](https://github.com/dbt-labs/dbt-utils/issues/505), [#509](https://github.com/dbt-labs/dbt-utils/pull/509))
4+
15
# dbt-utils v0.8.1
26

37
## New features

macros/sql/union.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161

6262
{%- set ordered_column_names = column_superset.keys() -%}
6363

64-
{%- if not column_superset.keys() -%}
64+
{% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}
6565
{%- set relations_string -%}
6666
{%- for relation in relations -%}
6767
{{ relation.name }}

0 commit comments

Comments
 (0)