-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently for some reason we have some temp test tables and dbt_models__tmp_
- Loading branch information
Showing
5 changed files
with
9 additions
and
13 deletions.
There are no files selected for viewing
9 changes: 0 additions & 9 deletions
9
macros/edr/system/system_utils/clean_dbt_columns_temp_tables.sql
This file was deleted.
Oops, something went wrong.
8 changes: 7 additions & 1 deletion
8
macros/edr/system/system_utils/clean_elementary_temp_tables.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
{% macro clean_elementary_temp_tables() %} | ||
{% do elementary.clean_elementary_test_tables() %} | ||
{% do elementary.edr_log("Deleting dbt_columns temp tables") %} | ||
{% set elementary_database, elementary_schema = elementary.get_package_database_and_schema() %} | ||
{% set dbt_columns_temp_tables_relations = dbt_utils.get_relations_by_pattern(schema_pattern=elementary_schema, table_pattern='%tmp%', database=elementary_database) %} | ||
{% for temp_relation in dbt_columns_temp_tables_relations %} | ||
{% do elementary.edr_log("Deleting temp table - " ~ temp_relation) %} | ||
{% do adapter.drop_relation(temp_relation) %} | ||
{% endfor %} | ||
{% endmacro %} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,3 @@ | |
{% macro athena__has_temp_table_support() %} | ||
{% do return(false) %} | ||
{% endmacro %} | ||
|