File tree 2 files changed +8
-2
lines changed
dbt/include/snowflake/macros/materializations
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change
1
+ kind : Under the Hood
2
+ body : Use new `batch` context variables over `node.config.__dbt_internal` ones
3
+ time : 2024-12-05T14:40:36.373637-05:00
4
+ custom :
5
+ Author : michelleark
6
+ Issue : " 1263"
Original file line number Diff line number Diff line change 57
57
{%- set incremental_predicates = [] if arg_dict .get (' incremental_predicates' ) is none else arg_dict .get (' incremental_predicates' ) - %}
58
58
59
59
{# -- Add additional incremental_predicates to filter for batch --#}
60
- {% if model .config .get( " __dbt_internal_microbatch_event_time_start " ) - %}
60
+ {% if model .batch and model . batch .event_time_start - %}
61
61
{% do incremental_predicates .append (" DBT_INTERNAL_TARGET." ~ model .config .event_time ~ " >= to_timestamp_tz('" ~ model .config .__dbt_internal_microbatch_event_time_start ~ " ')" ) %}
62
62
{% endif %}
63
- {% if model .config .__dbt_internal_microbatch_event_time_end - %}
63
+ {% if model .batch and model . batch .event_time_end - %}
64
64
{% do incremental_predicates .append (" DBT_INTERNAL_TARGET." ~ model .config .event_time ~ " < to_timestamp_tz('" ~ model .config .__dbt_internal_microbatch_event_time_end ~ " ')" ) %}
65
65
{% endif %}
66
66
{% do arg_dict .update ({' incremental_predicates' : incremental_predicates}) %}
You can’t perform that action at this time.
0 commit comments