Montreal-Analytics / dbt-snowflake-utils

Snowflake-specific utility macros for dbt projects.
Apache License 2.0
105 stars 36 forks source link

Cleanup Macros for dbt run-operation commands #7

Closed randypitcherii closed 4 years ago

randypitcherii commented 4 years ago

This PR includes:

randypitcherii commented 4 years ago

I know not everyone works with dbt in a way that allows for cleaning up this way, but I think this will be useful for those folks that want a simple way to drop leftover tables without recreating everything they've recently run.

MartinGuindon commented 4 years ago

Hi Randy,

Thank you for your contrib!

I wonder if the dbt-snowflake-utils package is the best fit for these macros as they are not solving a Snowflake-specific problem. Keeping a database/schema clean is a universal challenge and these could easily be made cross-database compatible. Perhaps dbt-utils would be a better home for these?

randypitcherii commented 4 years ago

Not a bad idea, Martin. I was probably overly eager to have a place to share some of the macros I've written and overlooked that just because this is built for Snowflake doesn't mean it belongs in a snowflake utils repo.

Thanks for the suggestion!