Closed mk-oliver-s closed 1 year ago
well that sucks, I'm sure I can repro that pretty easily... 👀
Yep, easy to repro, but it looks like we match the behavior of other dbt adapters based on my reading of the code here: https://github.com/dbt-labs/dbt-core/blob/main/core/dbt/include/global_project/macros/materializations/seeds/helpers.sql#L33
If you run dbt seed --full-refresh
, the error goes away; the issue is that a seed table is only truncate
'd by default, not dropped entirely, and it seems like that applies to any of the adapters.
Indeed, just confirming what @jwills read in the source - the Docs verify that behavior as designed.
Ahh ok, cool!
Thanks for quick responses and maintaining this project!! :D
If I have seeds that look like this
and then change to look like this
then I get
And the table must be manually deleted in order to work around.