Skip to content

Commit

Permalink
Reinstate intsert_into_metadata_table macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Firman, Max committed Sep 29, 2023
1 parent 5154c39 commit 80bc228
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration_test_project/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ vars:

models:
+persist_docs:
columns: '{{ target.name != "dremio" }}'
relation: '{{ target.name != "dremio" }}'
columns: '{{ target.type != "dremio" }}'
relation: '{{ target.type != "dremio" }}'
seeds:
+quote_columns: false

Expand Down
9 changes: 9 additions & 0 deletions macros/upload_results/insert_into_metadata_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,14 @@

{%- endmacro %}

{% macro dremio__insert_into_metadata_table(relation, fields, content) -%}
{% set insert_into_table_query %}
insert into {{ relation }}
{{ content }}
{% endset %}

{% do run_query(insert_into_table_query) %}
{%- endmacro %}

{% macro default__insert_into_metadata_table(relation, fields, content) -%}
{%- endmacro %}

0 comments on commit 80bc228

Please sign in to comment.