Skip to content

Commit

Permalink
Don't fail if not tables are present
Browse files Browse the repository at this point in the history
  • Loading branch information
rajaths010494 committed Feb 8, 2023
1 parent d5d7af4 commit a531e63
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ def make_drop_statements(task_instance: Any):
for temp_table in temp_tables:
temp_table = "DROP TABLE IF EXISTS " + temp_table["TABLE_NAME"] + ";"
delete_temp_tables += temp_table
print(len(delete_temp_tables))
if len(delete_temp_tables) == 0:
delete_temp_tables = "Select 1"
return delete_temp_tables


Expand Down

0 comments on commit a531e63

Please sign in to comment.