Skip to content

Commit e7c0a0b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 40ed4c4 commit e7c0a0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python-sdk/src/astro/databases/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def get_merge_initialization_query(parameters: tuple) -> str:
205205
it agnostic to database.
206206
"""
207207
constraints = ",".join(parameters)
208-
sql = "ALTER TABLE {{table}} ADD CONSTRAINT airflow UNIQUE ({})".format(constraints)
208+
sql = f"ALTER TABLE {{table}} ADD CONSTRAINT airflow UNIQUE ({constraints})"
209209
return sql
210210

211211
@staticmethod

python-sdk/src/astro/databases/snowflake.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ def get_merge_initialization_query(cls, parameters: tuple) -> str:
10591059
identifier_enclosure = '"'
10601060

10611061
constraints = ",".join([f"{identifier_enclosure}{p}{identifier_enclosure}" for p in parameters])
1062-
sql = "ALTER TABLE {{table}} ADD CONSTRAINT airflow UNIQUE ({})".format(constraints)
1062+
sql = f"ALTER TABLE {{table}} ADD CONSTRAINT airflow UNIQUE ({constraints})"
10631063
return sql
10641064

10651065
def openlineage_dataset_name(self, table: BaseTable) -> str:

0 commit comments

Comments
 (0)