Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab Data Team
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab Data
GitLab Data Team
Commits
efc54aeb
Commit
efc54aeb
authored
7 months ago
by
Justin Stark
Browse files
Options
Downloads
Patches
Plain Diff
commit to mr
parent
827cb5e1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
orchestration/drop_snowflake_objects.py
+4
-4
4 additions, 4 deletions
orchestration/drop_snowflake_objects.py
with
4 additions
and
4 deletions
orchestration/drop_snowflake_objects.py
+
4
−
4
View file @
efc54aeb
...
...
@@ -88,7 +88,7 @@ def drop_databases() -> None:
drop_query
=
f
"""
DROP DATABASE
"
{
database
}
"
;
"""
try
:
connection
=
engine
.
connect
()
#
connection.execute(drop_query)
connection
.
execute
(
drop_query
)
except
:
logging
.
info
(
f
"
Failed to drop database:
{
database
}
"
)
finally
:
...
...
@@ -111,11 +111,11 @@ def drop_stale_dev_tables() -> None:
for
database
,
schema
,
table
in
stale_tables
:
fully_qualified_table_name
=
f
'"
{
database
}
"
.
"
{
schema
}
"
.
"
{
table
}
"'
drop_
cmd
=
f
"
DROP TABLE
{
fully_qualified_table_name
}
;
"
logging
.
info
(
f
"
Running:
{
drop_
cmd
}
"
)
drop_
query
=
f
"
DROP TABLE
{
fully_qualified_table_name
}
;
"
logging
.
info
(
f
"
Running:
{
drop_
query
}
"
)
try
:
connection
=
engine
.
connect
()
#
connection.execute(drop_query)
connection
.
execute
(
drop_query
)
except
:
logging
.
info
(
f
"
Failed to drop table:
{
fully_qualified_table_name
}
"
)
finally
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment