Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: change overwrite mode #536

Merged
merged 2 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pipelines/rj_smfp/dump_db_sigma/flows.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
"""
Database dumping flows for SMFP SIGMA system
Database dumping flows for SMFP SIGMA system.
"""

from copy import deepcopy
Expand Down
7 changes: 3 additions & 4 deletions pipelines/utils/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,10 @@ def create_table_and_upload_to_gcs(
f"{storage_path}\n"
f"{storage_path_link}"
) # pylint: disable=C0301
tb.delete(mode="all")
# delete only staging table and let DBT overwrite the prod table
tb.delete(mode="staging")
log(
"MODE OVERWRITE: Sucessfully DELETED TABLE:\n"
f"{table_staging}\n"
f"{tb.table_full_name['prod']}"
"MODE OVERWRITE: Sucessfully DELETED TABLE:\n" f"{table_staging}\n"
) # pylint: disable=C0301

# the header is needed to create a table when dosen't exist
Expand Down
Loading