Skip to content

Commit

Permalink
Wrap column name in quotes (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbmllgn authored Apr 25, 2023
1 parent ad181ca commit c4cc54f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target_bigquery/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ def clean_up(self) -> None:
f"target.`{f.name}` = source.`{f.name}`" for f in target.schema
)
insert_clause = (
f"INSERT ({', '.join(f.name for f in target.schema)}) "
f"INSERT ({', '.join(f'`{f.name}`' for f in target.schema)}) "
f"VALUES ({', '.join(f'source.`{f.name}`' for f in target.schema)})"
)
self.client.query(
Expand Down

0 comments on commit c4cc54f

Please sign in to comment.