dbt-labs / dbt-spark

dbt-spark contains all of the code enabling dbt to work with Apache Spark and Databricks
https://getdbt.com
Apache License 2.0
395 stars 221 forks source link

add seed truncate and overwrite to avoid append logic on unmanaged databases (#3) #916

Closed machov closed 11 months ago

machov commented 11 months ago

resolves https://github.com/dbt-labs/dbt-spark/issues/112

Problem

The current seed command in dbt-spark appends to existing seeded tables instead overwriting when the database is 'unmanaged' (no location specified from create schema)

Solution

Overwrite all rows from the existing seed tables and replace values.

Checklist