Skip to content

Commit

Permalink
support MicrobatchConcurrency capability
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleArk committed Nov 27, 2024
1 parent 8e027d8 commit 7259135
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions dbt/adapters/snowflake/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class SnowflakeAdapter(SQLAdapter):
Capability.TableLastModifiedMetadata: CapabilitySupport(support=Support.Full),
Capability.TableLastModifiedMetadataBatch: CapabilitySupport(support=Support.Full),
Capability.GetCatalogForSingleRelation: CapabilitySupport(support=Support.Full),
Capability.MicrobatchConcurrency: CapabilitySupport(support=Support.Full),
}
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@
{%- set unique_key = config.get('unique_key') -%}
{% set incremental_strategy = config.get('incremental_strategy') or 'default' %}
{% set tmp_relation_type = dbt_snowflake_get_tmp_relation_type(incremental_strategy, unique_key, language) %}
{% set tmp_relation = make_temp_relation(this).incorporate(type=tmp_relation_type) %}

{% set tmp_relation_suffix = '__dbt_tmp' if not model.batch else '__dbt_tmp_' ~ model.batch.id %}
{% set tmp_relation = make_temp_relation(this, suffix=tmp_relation_suffix).incorporate(type=tmp_relation_type) %}

{% set grant_config = config.get('grants') %}

Expand Down

0 comments on commit 7259135

Please sign in to comment.