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
I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
When trying to use Custom Incremental Strategies, dbt raises an error.
Expected Behavior
The macro which deals with incremental materialization should try to load get_incremental_STRATEGY_sql macros before telling that the strategy is invalid.
{{ config(
materialized="incremental",
incremental_strategy="insert_only",
) }}
SELECT 1 AS foo
Relevant log output
Compilation Error in model my_model (models/my_model.sql)
Invalid incremental strategy provided: insert_only
Expected one of: 'merge', 'insert_overwrite'>in macro dbt_bigquery_validate_get_incremental_strategy (macros/materializations/incremental.sql)
> called by macro materialization_incremental_bigquery (macros/materializations/incremental.sql)
> called by model my_model (models/my_model.sql)
Is this a new bug in dbt-bigquery?
Current Behavior
When trying to use Custom Incremental Strategies, dbt raises an error.
Expected Behavior
The macro which deals with incremental materialization should try to load
get_incremental_STRATEGY_sql
macros before telling that the strategy is invalid.Steps To Reproduce
I followed the documentation for Custom strategies : https://docs.getdbt.com/docs/build/incremental-models#custom-strategies
Create the following macro :
And the follwing model :
Relevant log output
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: