Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BTheunissen committed Sep 26, 2024
1 parent a2ab8b1 commit 4aebb00
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions tap_iceberg/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ def get_records(self, context: dict | None = None) -> Iterable[dict]:
self.replication_key,
start_value,
)
# Convert to timezone-less isoformat string.
if isinstance(start_value, str):
start_value = (
datetime.fromisoformat(start_value).replace(tzinfo=None).isoformat()
)
filter_expression = GreaterThan(self.replication_key, start_value)
batch_reader = self._iceberg_table.scan(
row_filter=filter_expression,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"bookmarks": {
"test_namespace-test_table": {
"replication_key": "updated_at",
"replication_key_value": "2024-07-23T00:00:00.000000+00:00",
"replication_key_value": "2024-07-23T00:00:00.000000",
}
}
},
Expand Down

0 comments on commit 4aebb00

Please sign in to comment.