Skip to content

Commit

Permalink
Change macro drop_table to be different as default macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
binhnq94 committed Sep 29, 2023
1 parent bf2a328 commit deb9964
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dev/dags/cosmos_seed_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
for seed in ["raw_customers", "raw_payments", "raw_orders"]:
DbtRunOperationOperator(
task_id=f"drop_{seed}_if_exists",
macro_name="drop_table",
macro_name="drop_table_by_name",
args={"table_name": seed},
project_dir=DBT_ROOT_PATH / "jaffle_shop",
profile_config=profile_config,
Expand Down
2 changes: 1 addition & 1 deletion dev/dags/dbt/jaffle_shop/macros/drop_table.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{%- macro drop_table(table_name) -%}
{%- macro drop_table_by_name(table_name) -%}
{%- set drop_query -%}
DROP TABLE IF EXISTS {{ target.schema }}.{{ table_name }} CASCADE
{%- endset -%}
Expand Down
6 changes: 0 additions & 6 deletions dev/dags/dbt/jaffle_shop_python/macros/drop_table.sql

This file was deleted.

0 comments on commit deb9964

Please sign in to comment.