Skip to content

Commit

Permalink
missing space before AND clause
Browse files Browse the repository at this point in the history
  • Loading branch information
spicy-sauce committed May 19, 2024
1 parent 9cfc402 commit 6e5199f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/datayoga_core/blocks/relational/write/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def generate_upsert_stmt(self) -> Any:
relational_utils.construct_table_reference(self.tbl, with_brackets=True),
", ".join([f"{sa.bindparam(column)}" for column in self.business_key_columns]),
", ".join([f"[{column}]" for column in self.business_key_columns]),
"AND ".join([f"target.[{column}] = source.[{column}]" for column in self.business_key_columns]),
" AND ".join([f"target.[{column}] = source.[{column}]" for column in self.business_key_columns]),
", ".join([f"[{column}]" for column in self.columns]),
", ".join([f"{sa.bindparam(column)}" for column in self.columns]),
", ".join([f"target.[{column}] = {sa.bindparam(column)}" for column in self.mapping_columns])
Expand All @@ -166,7 +166,7 @@ def generate_upsert_stmt(self) -> Any:
WHEN MATCHED THEN UPDATE SET %s
""" % (
relational_utils.construct_table_reference(self.tbl),
"AND ".join([f"target.{column} = :{column}" for column in self.business_key_columns]),
" AND ".join([f"target.{column} = :{column}" for column in self.business_key_columns]),
", ".join([f"{column}" for column in self.columns]),
", ".join([f"{sa.bindparam(column)}" for column in self.columns]),
", ".join([f"target.{column} = {sa.bindparam(column)}" for column in self.mapping_columns])
Expand Down

0 comments on commit 6e5199f

Please sign in to comment.