Skip to content

Commit

Permalink
Merge pull request #149 from fishtown-analytics/fix/0.14.0-compat
Browse files Browse the repository at this point in the history
Fix/0.14.0 compat
  • Loading branch information
drewbanin authored Jul 15, 2019
2 parents 1cbcc67 + 1094a6a commit 6c545d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: 'dbt_utils'
version: '0.1.0'

require-dbt-version: ">=0.13.0"
require-dbt-version: ">=0.14.0"

target-path: "target"
clean-targets: ["target", "dbt_modules"]
macro-paths: ["macros"]
log-path: "logs"
log-path: "logs"
4 changes: 2 additions & 2 deletions macros/materializations/insert_by_period_materialization.sql
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@

{%- set tmp_identifier = model['name'] ~ '__dbt_incremental_period' ~ i ~ '_tmp' -%}
{%- set tmp_relation = api.Relation.create(identifier=tmp_identifier,
schema=schema, type='table') -%}
schema=schema, type='table') -%}
{% call statement() -%}
{% set tmp_table_sql = dbt_utils.get_period_sql(target_cols_csv,
sql,
Expand All @@ -131,7 +131,7 @@
{{dbt.create_table_as(True, tmp_relation, tmp_table_sql)}}
{%- endcall %}

{{adapter.expand_target_column_types(temp_table=tmp_identifier,
{{adapter.expand_target_column_types(from_relation=tmp_relation,
to_relation=target_relation)}}
{%- set name = 'main-' ~ i -%}
{% call statement(name, fetch_result=True) -%}
Expand Down

0 comments on commit 6c545d9

Please sign in to comment.