<#2283 feat: Support using the stream name or alia...
# meltano-repo-activity
g
#2283 feat: Support using the stream name or alias in the context of a stream map Issue created by edgarrmondragon Feature scope Taps (catalog, state, stream maps, tests, etc.) Description Allow users to reference the stream name or alias in stream maps under a special key, similar to
record
and `config`: { "stream_maps": { "countries": { "source_table": "__stream_name__", "source_key": "code", "source_data": "record", "__key_properties__": ["source_key"], "__else__": "__NULL__" } } } This should be relatively easy to add in sdk/singer_sdk/mapper.py Lines 331 to 334 in</meltano/sdk/commit/2d3bf565c4d89b448a2a7a242ef449fd4bd43170|2d3bf56> | names = record.copy() # Start with names from record properties | | ------------------------------------------------------------------------------ | | names["_"] = record # Add a shorthand alias in case of reserved words in names | | names["record"] = record # ...and a longhand alias | | names["config"] = self.map_config # Allow map config access within transform | meltano/sdk