DBT models don't replace tables or views #376
Replies: 5 comments 7 replies
-
That's surprising-- is it something you could post somewhere so I could try to reproduce it? |
Beta Was this translation helpful? Give feedback.
-
yeah I just need a version of your |
Beta Was this translation helpful? Give feedback.
-
yeah I seem to be able to run |
Beta Was this translation helpful? Give feedback.
-
1. First run, no problem(base) (venv) PS C:\Users\Use\OneDrive\Development\dbt-course\learn_duckdb> dbt build Second run(base) (venv) PS C:\Users\Use\OneDrive\Development\dbt-course\learn_duckdb> dbt build Run with full refresh(base) (venv) PS C:\Users\Use\OneDrive\Development\dbt-course\learn_duckdb> dbt build --full-refresh |
Beta Was this translation helpful? Give feedback.
-
i tried to repro on my windows machine, but was able to run versions:
I suppose there could be a regression between |
Beta Was this translation helpful? Give feedback.
-
I was checking out the duckdb connector for dbt and tried to replicate a dbt-snowflake tutorial.
After making the necessary change to the SQL code, I found that
dbt run
fails after the first run, even with--full-refresh
,Upon further investigation, I found that the SQL that gets executed is of the form:
create or replace ...
with the snowflake adapter, burcreate ...
with the duckdb adapter.This causes the model to fail, when it tries to create objects that already exits.
Is this intended behaviour, or am I missing a config somewhere?
I'm using:
dbt-core 1.7.11
dbt-duckdb 1.7.3
Beta Was this translation helpful? Give feedback.
All reactions