Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
spicy-sauce committed Nov 29, 2023
1 parent f7b8e9e commit 2624056
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/datayoga_core/blocks/relational/write/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,12 @@ def generate_upsert_stmt(self) -> Any:
relational_utils.construct_table_reference(self.tbl),
", ".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]),
# " 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])
", ".join([f"target.{column} = {sa.bindparam(column)}" for column in self.mapping_columns])
# ", ".join([f'target."{column}" = {sa.bindparam(column)}' for column in self.mapping_columns])
))

def execute(self, statement: Any, records: List[Dict[str, Any]]):
Expand Down

0 comments on commit 2624056

Please sign in to comment.