Skip to content

Commit

Permalink
Add newline around SQL in incremental materialization to guard agains…
Browse files Browse the repository at this point in the history
…t line comments.
  • Loading branch information
elexisvenator committed Sep 20, 2018
1 parent ea974fd commit 6652647
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@

{% set tmp_table_sql -%}
{# We are using a subselect instead of a CTE here to allow PostgreSQL to use indexes. -#}
select * from ({{ sql }}) as dbt_incr_sbq
select * from (
{{ sql }}
) as dbt_incr_sbq
where ({{ sql_where }})
or ({{ sql_where }}) is null
{%- endset %}
Expand Down

0 comments on commit 6652647

Please sign in to comment.