DBT models don't replace tables or views #376
Replies: 9 comments 36 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'm now getting a similar issue but on mac OSX also on DuckDB Exactly the same issue basically, also first run going perfect and second run getting these errors |
Beta Was this translation helpful? Give feedback.
-
I pushed up a change to the dummy project @matsonj shared that shows the issue (at least when I run it) |
Beta Was this translation helpful? Give feedback.
-
Thanks for the hard work all, looking forward to see the solution 😀
…On Thu, 3 Oct 2024, 07:47 Jacob Matson, ***@***.***> wrote:
Confirmed on my end. Lower case works.
—
Reply to this email directly, view it on GitHub
<#376 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AP4NCDTZUYEXJC6ERS5LZ5DZZTK53AVCNFSM6AAAAABGERTAL2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAOBSG44DSMQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thanks all for reporting/creating a repro! This was fixed in #453 |
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