GitHub
03/10/2025, 12:13 PMstream_maps
Issue created by ReubenFrankel
### Feature scope
Taps (catalog, state, tests, etc.)
### Description
If I have a bunch of stream properties I want to rename, currently I have to follow the "copy-and-delete" approach as per aliasing properties:
stream_maps:
users:
firstName: first_name
lastName: last_name
first_name: NULL
last_name: NULL
It would be nice to encapsule this into some property-level aliasing construct along with a new scoped __property_name__ variable (adaptation of #2490 (comment))
stream_maps:
users:
__map__: '"".join("_" + char.lower() if char.isupper() else char for char in __property_name__)' # example converting camelCase to snake_case
__map_filter__: # filter specific properties to map with glob expression support; default to all if omitted
- *_name
or this proposal from #2545 (comment)
config:
stream_maps:
{STREAM_NAME}:
__meta__[col['name'].lower()]: colmeltano/sdk