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
The run script: delete from "......."."dim_customer" where (customer_code) in ( select (customer_code) from "......."."#dim_customer__dbt_tmp" ); insert into "......."."dim_customer" ("customer_code", "customer_name") ( select "customer_code", "customer_name" from "......."."#dim_customer__dbt_tmp" );
The text was updated successfully, but these errors were encountered:
thanks for the bug report @rezasoltanirezvandeh ! can you share what version of dbt-sqlserver you are using as well as what SQL Server product you are using? Cheers
_(base) reza@dbt:~/Desktop$ dbt --version
installed version: 1.0.7
latest version: 1.1.0
Your version of dbt is out of date! You can find instructions for upgrading here: https://docs.getdbt.com/docs/installation
Plugins:
sqlserver: 1.0.0 - Up to date!
(base) reza@dbt:~/Desktop$_
I checked the dbt-core sources and the "get_merge_sql" macro isn't called on project. Some official adapters reimplement the incremental materialization and use that macro.
I don't know if the effort to support this is gonna pay, as by this comment, they're planning to refactor all the materialization code: dbt-labs/dbt-core#5260 (comment)
Merge strategy in incremental, generates delete and insert into command instead of the merge.
{{ config( as_columnstore= false, materialized= 'incremental', incremental_strategy= 'Merge', unique_key='customer_code' ) }} SELECT customer_code, customer_name FROM {{ref('customer')}}
The run script:
delete from "......."."dim_customer" where (customer_code) in ( select (customer_code) from "......."."#dim_customer__dbt_tmp" ); insert into "......."."dim_customer" ("customer_code", "customer_name") ( select "customer_code", "customer_name" from "......."."#dim_customer__dbt_tmp" );
The text was updated successfully, but these errors were encountered: