Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Update flushed_state only if state received from tap (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
koszti authored Nov 4, 2019
1 parent ed14e6f commit 68575f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target_snowflake/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def flush_streams(
# Update flushed streams
if filter_streams:
# update flushed_state position if we have state information for the stream
if stream in state.get('bookmarks', {}):
if state is not None and stream in state.get('bookmarks', {}):
# Create bookmark key if not exists
if 'bookmarks' not in flushed_state:
flushed_state['bookmarks'] = {}
Expand Down

0 comments on commit 68575f2

Please sign in to comment.