Skip to content

Commit 23fd24d

Browse files
committed
Move where parameter to last position
Move where parameter to last position
1 parent 3ce9808 commit 23fd24d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,6 @@ relations will be filled with `null` where not present. A new column
845845

846846
**Args:**
847847
* `relations` (required): An array of [Relations](https://docs.getdbt.com/docs/writing-code-in-dbt/class-reference/#relation).
848-
* `where` (optional): Filter conditions to include in the `where` clause.
849848
* `exclude` (optional): A list of column names that should be excluded from
850849
the final query.
851850
* `include` (optional): A list of column names that should be included in the

macros/sql/union.sql

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
{%- macro union_relations(relations, where=none, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation') -%}
2-
{{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, where, column_override, include, exclude, source_column_name)) }}
1+
{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}
2+
{{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}
33
{% endmacro %}
44

5-
{%- macro default__union_relations(relations, where=none, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation') -%}
5+
{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}
66

77
{%- if exclude and include -%}
88
{{ exceptions.raise_compiler_error("Both an exclude and include list were provided to the `union` macro. Only one is allowed") }}

0 commit comments

Comments
 (0)