Skip to content

Commit

Permalink
Replicate logic from FULL_TABLE to INCREMENTAL sync (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
butkeraites-hotglue authored Sep 12, 2024
1 parent b11a7cb commit 299015d
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,15 @@ def sync(self, catalog_entry):

# Zip columns and row data.
for raw_row in output:
row = dict(zip(columns, raw_row))
row = {}
for c, v in zip(columns, raw_row):
if isinstance(v, dict):
row[c] = v.get("value")
if "id" in v:
row[f"{c}Id"] = v.get("id")
else:
row[c] = v

if not row.get("Amount"):
# If a row is missing the amount, skip it
continue
Expand Down

0 comments on commit 299015d

Please sign in to comment.