Skip to content

Commit

Permalink
Append __dbt_internal_event_time_start to suffix in `make_temp_rela…
Browse files Browse the repository at this point in the history
…tion` when present
  • Loading branch information
QMalcolm committed Nov 20, 2024
1 parent fb9d085 commit 85a203b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dbt/include/global_project/macros/adapters/relation.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
{% endmacro %}

{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}
{% if suffix == '__dbt_tmp' %}
{% set suffix = suffix ~ '_' ~ base_relation.config.get('__dbt_internal_event_time_start') if base_relation.config.get('__dbt_internal_event_time_start') else suffix %}
{% endif %}

{{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}
{% endmacro %}

Expand Down

0 comments on commit 85a203b

Please sign in to comment.