meltano / sdk

Write 70% less code by using the SDK to build custom extractors and loaders that adhere to the Singer standard: https://sdk.meltano.com
https://sdk.meltano.com
Apache License 2.0
95 stars 69 forks source link

bug: Mapping crashing with empty stream #1924

Open edgarrmondragon opened 1 year ago

edgarrmondragon commented 1 year ago

Singer SDK Version

0.31.1

Is this a regression?

Python Version

NA

Bug scope

Mapping (stream maps, flattening, etc.)

Operating System

NA

Description

https://github.com/MeltanoLabs/meltano-map-transform/issues/164

Code

No response

edgarrmondragon commented 5 months ago

Fixing this should be as simple as using .get(...) in https://github.com/meltano/sdk/blob/46c14f6003baf658be0dcc25f1307c7007f5be27/singer_sdk/mapper.py#L489-L490