Skip to content

Commit a2b6684

Browse files
authored
Fix union_relations error when no include/exclude provided (#509)
1 parent bf79a81 commit a2b6684

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)