You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}
{% set incremental_strategy = config.get('incremental_strategy') or 'default' %}
{% set incremental_predicates = config.get('incremental_predicates', none) %}
{% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}
{% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': tmp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'predicates': incremental_predicates }) %}
{% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}
Take stock of remaining discrepancies between default + spark incremental materializations, identify opportunities for further refactor + eventual deduplication
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Refactor incremental materialization, using new incremental_strategy foundations
[CT-957] Refactor incremental materialization, using new incremental_strategy foundations
Jul 29, 2022
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days.
Since dbt-core dbt-adapters has default definitions of append and delete+insert, it should be trivial for dbt-spark to support both of those during implementation of this issue.
Follow up to #402, which implemented the minimal version to keep the current code working
See dbt-labs/dbt-snowflake#196 for reference implementation:
valid_incremental_strategies
The text was updated successfully, but these errors were encountered: