Skip to content

Commit

Permalink
Add unit tests for SQL process_results
Browse files Browse the repository at this point in the history
automatic commit by git-black, original commits:
  564fe62
  • Loading branch information
techytushar authored and iknox-fa committed Feb 8, 2022
1 parent fb0b2e9 commit ec0690e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dbt/adapters/sql/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def process_results(
col_name = column_names[idx]
if col_name in unique_col_names:
unique_col_names[col_name] += 1
column_names[idx] = f'{col_name}_{unique_col_names[col_name]}'
column_names[idx] = f"{col_name}_{unique_col_names[col_name]}"
else:
unique_col_names[column_names[idx]] = 1
return [dict(zip(column_names, row)) for row in rows]
Expand Down

0 comments on commit ec0690e

Please sign in to comment.