From 4f9f3afa9a2516239f061bd2c6fbf06afa61be8a Mon Sep 17 00:00:00 2001 From: Drew Banin Date: Thu, 11 Jul 2019 11:27:47 -0400 Subject: [PATCH 1/2] update signature for 0.14.0 compat --- macros/materializations/insert_by_period_materialization.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macros/materializations/insert_by_period_materialization.sql b/macros/materializations/insert_by_period_materialization.sql index 618ff063..dfe8d77f 100644 --- a/macros/materializations/insert_by_period_materialization.sql +++ b/macros/materializations/insert_by_period_materialization.sql @@ -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, @@ -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) -%} From 1094a6a5a2ea7be551344e6772ae97c254203218 Mon Sep 17 00:00:00 2001 From: Drew Banin Date: Thu, 11 Jul 2019 11:28:29 -0400 Subject: [PATCH 2/2] bump supported dbt version --- dbt_project.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbt_project.yml b/dbt_project.yml index 7527aacd..ab80c26c 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -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" \ No newline at end of file +log-path: "logs"