Skip to content

Commit

Permalink
print query
Browse files Browse the repository at this point in the history
  • Loading branch information
vdelacruzb committed Sep 26, 2024
1 parent 60d6db5 commit edd6718
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clouds/redshift/common/run_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def run_queries(queries):
with conn.cursor() as cursor:
for i in trange(len(queries) if not filter else 1, ncols=97):
query = apply_replacements(queries[i])
print(query)
if (not filter) or (filter in query):
pattern = os.environ['RS_SCHEMA'] + '.(.*?)[(|\n]'
result = re.search(pattern, str(query))
Expand Down

0 comments on commit edd6718

Please sign in to comment.