From 6c524c4ca9d0b20991d82b76b2f7e78600f11a22 Mon Sep 17 00:00:00 2001 From: jeremyyeo Date: Fri, 17 Jun 2022 14:22:37 +1200 Subject: [PATCH] add --- dbt/snowflake/dbt_project.yml | 6 ++++-- dbt/snowflake/models/baz.sql | 2 -- dbt/snowflake/models/fct_revenue.sql | 1 + dbt/snowflake/models/publish/my_union_model.sql | 10 ---------- dbt/snowflake/models/staging/bar.sql | 2 -- dbt/snowflake/models/staging/foo.sql | 2 -- dbt/snowflake/packages.yml | 4 ++-- 7 files changed, 7 insertions(+), 20 deletions(-) delete mode 100644 dbt/snowflake/models/baz.sql create mode 100644 dbt/snowflake/models/fct_revenue.sql delete mode 100644 dbt/snowflake/models/publish/my_union_model.sql delete mode 100644 dbt/snowflake/models/staging/bar.sql delete mode 100644 dbt/snowflake/models/staging/foo.sql diff --git a/dbt/snowflake/dbt_project.yml b/dbt/snowflake/dbt_project.yml index 6a2476d..55017a4 100644 --- a/dbt/snowflake/dbt_project.yml +++ b/dbt/snowflake/dbt_project.yml @@ -12,7 +12,9 @@ clean-targets: - "dbt_packages" models: - +materialized: view my_dbt_project: + +materialized: table + dbt_artifacts: + +schema: dbt_artifacts staging: - schema: stg + +schema: dbt_artifacts_staging diff --git a/dbt/snowflake/models/baz.sql b/dbt/snowflake/models/baz.sql deleted file mode 100644 index 6dfda62..0000000 --- a/dbt/snowflake/models/baz.sql +++ /dev/null @@ -1,2 +0,0 @@ - -select 'baz' as user_id diff --git a/dbt/snowflake/models/fct_revenue.sql b/dbt/snowflake/models/fct_revenue.sql new file mode 100644 index 0000000..231a988 --- /dev/null +++ b/dbt/snowflake/models/fct_revenue.sql @@ -0,0 +1 @@ +select 100 as revenue diff --git a/dbt/snowflake/models/publish/my_union_model.sql b/dbt/snowflake/models/publish/my_union_model.sql deleted file mode 100644 index 8bc479b..0000000 --- a/dbt/snowflake/models/publish/my_union_model.sql +++ /dev/null @@ -1,10 +0,0 @@ -with all_models as ( - {{ - dbt_utils.union_relations( - relations = [ref('foo'), ref('bar')], - exclude = ['_loaded_at'] - ) - }} -) - -select * from all_models diff --git a/dbt/snowflake/models/staging/bar.sql b/dbt/snowflake/models/staging/bar.sql deleted file mode 100644 index d991d66..0000000 --- a/dbt/snowflake/models/staging/bar.sql +++ /dev/null @@ -1,2 +0,0 @@ - -select 'bar' as user_id diff --git a/dbt/snowflake/models/staging/foo.sql b/dbt/snowflake/models/staging/foo.sql deleted file mode 100644 index 3e56f64..0000000 --- a/dbt/snowflake/models/staging/foo.sql +++ /dev/null @@ -1,2 +0,0 @@ - -select 'foo' as user_id \ No newline at end of file diff --git a/dbt/snowflake/packages.yml b/dbt/snowflake/packages.yml index 89c68a0..36f1358 100644 --- a/dbt/snowflake/packages.yml +++ b/dbt/snowflake/packages.yml @@ -1,3 +1,3 @@ packages: - - package: dbt-labs/dbt_utils - version: 0.8.4 + - package: brooklyn-data/dbt_artifacts + version: 0.8.0