admin管理员组文章数量:1122846
The problem I'm having
i try to make a merge into from a source to another table in snwoflake using dbt cloud
this is the DDL and the line that i insert in snowflake
CREATE TABLE TRAV_DWH_DEV.TRAV_ISILOG.trav_test_macro (
id INT,
prenom STRING,
age INT
);
INSERT INTO TRAV_DWH_DEV.TRAV_ISILOG.trav_test_macro (id, prenom, age) VALUES
(1, 'axel', 30),
(2, 'francois', 25),
(3, 'hafsa', 40);
CREATE TABLE TRAV_DWH_DEV.TRAV_ISILOG.trav_test_macro_silver (
id INT,
prenom STRING,
age INT
);
INSERT INTO TRAV_DWH_DEV.TRAV_ISILOG.trav_test_macro_silver (id, prenom, age) VALUES
(1, 'axel', 30),
(2, 'francois', 25);
SELECT * FROM TRAV_DWH_DEV.TRAV_ISILOG.trav_test_macro_silver;
this is my code in dbt in the models folder
{{
config(
materialized='incremental',
unique_key='ID',
incremental_strategy='merge',
dest_table='TRAV_DWH_DEV.TRAV_ISILOG.trav_test_macro_silver'
)
}}
select * from {{ref('stg_trav__trav_test_macro')}}
when i click on preview i have the line from my source and when i click to compile i only have a select * statements.
but when i type dbt build the models is running without an issue but the new line from source is not add neither the update for francois (the age)
Where i'm wrong ?
本文标签: issue with snowflake merge into incrementalstrategy in DBTStack Overflow
版权声明:本文标题:issue with snowflake merge into incremental_strategy in DBT - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736299641a1930530.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论