modify how dbt performs merges by default (#213)

This commit is contained in:
desmond-hui 2023-10-23 10:04:29 -07:00 committed by GitHub
parent fc5045a44a
commit 8ff2e1aa07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -15,3 +15,9 @@
{% set split_name = node_name.split('__') %}
{{ split_name [1] | trim }}
{%- endmacro %}
{% macro generate_tmp_view_name(model_name) -%}
{% set node_name = model_name.name %}
{% set split_name = node_name.split('__') %}
{{ target.database ~ '.' ~ split_name[0] ~ '.' ~ split_name [1] ~ '__dbt_tmp' | trim }}
{%- endmacro %}

View File

@ -0,0 +1,4 @@
{% macro dbt_snowflake_get_tmp_relation_type(strategy, unique_key, language) %}
-- always table
{{ return('table') }}
{% endmacro %}