Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
genzgd committed Apr 8, 2024
1 parent 08cee87 commit 84c79a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions dbt/adapters/clickhouse/httpclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ def command(self, sql, **kwargs):
def columns_in_query(self, sql: str, **kwargs) -> List[ClickHouseColumn]:
try:
query_result = self._client.query(
f"SELECT * FROM ( \n"
f"{sql} \n"
f") LIMIT 0",
f"SELECT * FROM ( \n" f"{sql} \n" f") LIMIT 0",
**kwargs,
)
return [
Expand Down
4 changes: 1 addition & 3 deletions dbt/adapters/clickhouse/nativeclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ def command(self, sql, **kwargs):
def columns_in_query(self, sql: str, **kwargs) -> List[ClickHouseColumn]:
try:
_, columns = self._client.execute(
f"SELECT * FROM ( \n"
f"{sql} \n"
f") LIMIT 0",
f"SELECT * FROM ( \n" f"{sql} \n" f") LIMIT 0",
with_column_types=True,
)
return [ClickHouseColumn.create(column[0], column[1]) for column in columns]
Expand Down

0 comments on commit 84c79a2

Please sign in to comment.