diff --git a/macros/sql/union.sql b/macros/sql/union.sql index ac289e2f..354ce49b 100644 --- a/macros/sql/union.sql +++ b/macros/sql/union.sql @@ -115,7 +115,11 @@ from {{ relation }} {% if where -%} - where {{ where }} + {% if where is string -%} + where {{ where }} + {% else %} + where {{ where[loop.index0] }} + {%- endif %} {%- endif %} )