bug: _parse_timestamps_in_record
throws exception for key not present in schema
#1836
Labels
_parse_timestamps_in_record
throws exception for key not present in schema
#1836
Singer SDK Version
0.19.0
Is this a regression?
Python Version
NA
Bug scope
Targets (data type handling, batching, SQL object generation, etc.)
Operating System
macOS, Linux
Description
We use the meltanolabs variant of the target-postgres loader with the ets variant of the tap-spreadsheets-anywhere extractor.
Tap-spreadsheets-anywhere supports dynamic schema inference from randomly selected sample files. This is very useful as we do a lot of loading CSV+JSONL files from AWS S3, for instance.
Our meltano runs are frequently erroring when a KeyError is thrown here
sdk/singer_sdk/sinks/core.py
Line 362 in d372080
It would be great if this function could catch the KeyError and only raise an exception if truly necessary - in the scenarios I've seen, I believe the KeyError could have been swallowed with no impact.
Code
The text was updated successfully, but these errors were encountered: