bug: A field referencing record
in streams maps gets incorrectly mapped to a string type in the schema
#1882
Labels
record
in streams maps gets incorrectly mapped to a string type in the schema
#1882
Singer SDK Version
0.30.0
Is this a regression?
Python Version
NA
Bug scope
Mapping (stream maps, flattening, etc.)
Operating System
NA
Description
Consider the countries sample in the SDK repo and the following stream maps configuration:
Then run
poetry run python samples/sample_tap_countries --config stream_maps.json > mapped_countries.singer.jsonl
Note that in the resulting SCHEMA message, the
_data
field is of typestring
. This is becauserecord
is not recognized as a special name and the type inference logic falls back to the default string type:sdk/singer_sdk/mapper.py
Lines 370 to 384 in 759c77b
This should be relatively easy to fix by adding a new branch
Code
No response
The text was updated successfully, but these errors were encountered: