Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit f069cce

Browse files
committed
lint
1 parent 6c43fcf commit f069cce

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

sqeleton/databases/redshift.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,18 @@ def select_external_table_schema(self, path: DbPath) -> str:
8282
if database:
8383
db_clause = f" AND redshift_database_name = '{database.lower()}'"
8484

85-
return f"""SELECT
85+
return (
86+
f"""SELECT
8687
columnname AS column_name
8788
, CASE WHEN external_type = 'string' THEN 'varchar' ELSE external_type END AS data_type
8889
, NULL AS datetime_precision
8990
, NULL AS numeric_precision
9091
, NULL AS numeric_scale
9192
FROM svv_external_columns
9293
WHERE tablename = '{table.lower()}' AND schemaname = '{schema.lower()}'
93-
""" + db_clause
94+
"""
95+
+ db_clause
96+
)
9497

9598
def query_external_table_schema(self, path: DbPath) -> Dict[str, tuple]:
9699
rows = self.query(self.select_external_table_schema(path), list)

0 commit comments

Comments
 (0)