This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Run this command in your terminal: dbt run-operation drop_dbt_cloud_pull_request_schemas | |
--Write this as a file in your dbt project directory: macros/drop_dbt_cloud_pull_request_schemas.sql | |
--Original Source: https://github.com/randypitcherii/hashmap_randy_pitcher_workspace/blob/master/dbt/macros/cleanup/drop_old_relations.sql | |
{% macro drop_dbt_cloud_pull_request_schemas() %} | |
{% set cleanup_query %} | |
-- CTE to query the snowflake information schema to get all the tables and views in scope for cleanup | |
WITH | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2019-07-08T21:42:32.794Z","extensionVersion":"v3.3.1"} |
NewerOlder