Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion target_postgres/singer_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ def update_schema(self, schema, key_properties):

# The validator can handle _many_ more things than our simplified schema, and is, in general handled by third party code
self.validator = Draft4Validator(schema, format_checker=FormatChecker())


# Some taps do not provide 'properties' key, which causes the next block to fail
if not (self.schema and 'properties' in self.schema):
return

properties = self.schema['properties']

if singer.RECEIVED_AT not in properties:
Expand Down