Discussion about this post

User's avatar
Loukas Apostolidis's avatar

Thanks for another interesting post!!Since command “dbt seed” writes directly in the database, in my team we consider a good practice to not directly use .csv files with the “ref” function but rather create staging models for every csv being used and call them with the “source” function.

This way we follow the dbt best practice that for each source (.csv file) we use one staging model.

The advantage is that any future change in the csv file goes through the staging models and doesn’t disrupt the DAG flow.

Expand full comment
1 more comment...

No posts