Edgar Ramírez (Arch.dev)
05/19/2025, 6:55 PMEdgar Ramírez (Arch.dev)
05/19/2025, 6:55 PMmeltano.yml look like?Bruno Arnabar
05/19/2025, 7:03 PMBruno Arnabar
05/19/2025, 7:31 PMversion: 1
default_environment: dev
project_id: stream_maps_test
environments:
- name: dev
- name: staging
- name: prod
plugins:
extractors:
- name: tap-mssql
variant: wintersrd
pip_url: tap-mssql
config:
transform: run
stream_maps: '{"dbo-section": {"time_category_code": "__NULL__", "receipt_notes": "__NULL__"}}'
stream_map_config: '{}'
loaders:
- name: target-csv
variant: meltanolabs
pip_url: meltanolabs-target-csvBruno Arnabar
05/19/2025, 7:34 PMBruno Arnabar
05/19/2025, 7:37 PMversion: 1
default_environment: dev
project_id: 65760e5d-06ef-484c-9474-c326328ebc1c
environments:
- name: dev
- name: staging
- name: prod
plugins:
extractors:
- name: tap-mssql
variant: wintersrd
pip_url: tap-mssql
loaders:
- name: target-csv
variant: meltanolabs
pip_url: meltanolabs-target-csv
mappers:
- name: meltano-map-transformer
variant: meltano
pip_url: meltano-map-transform
config:
stream_maps:
dbo-section:
time_category_code: __NULL__
receipt_notes: __NULL__
activate_wait_list: __NULL__Edgar Ramírez (Arch.dev)
05/19/2025, 9:45 PMmappers:
- name: meltano-map-transformer
variant: meltano
pip_url: meltano-map-transform
mappings:
- name: remove-fields
config:
stream_maps:
dbo-section:
time_category_code: __NULL__
receipt_notes: __NULL__
activate_wait_list: __NULL__
Then run it as meltano run tap-mssql remove-fields target-csvBruno Arnabar
05/20/2025, 3:40 PMmeltano add mapper meltano-map-transformer
meltano config meltano-map-transformer set mappings '[{
"name": "remove-fields",
"config": {
"stream_maps": {
"dbo-section": {
"time_category_code": "__NULL__",
"receipt_notes": "__NULL__",
"activate_wait_list": "__NULL__"
}
}
}
}]'
it sets the mappings nested within a config block, instead of being a direct child of the mappers plugin. Creating a yml like this:
mappers:
- name: meltano-map-transformer
variant: meltano
pip_url: meltano-map-transform
config:
mappings:
- name: remove-fields
config:
stream_maps:
dbo-section:
time_category_code: __NULL__
receipt_notes: __NULL__
activate_wait_list: __NULL__
namely:
config:
mappings:
- name: remove-fields
config:
For now I have hardcoded the solution as you pointed out and that is functioning but if anyone is aware of how to modify the mappings through CLI without nesting it into the config - that would be greatly appreciated!
@robin_spilner @kenny_morrisEdgar Ramírez (Arch.dev)
05/20/2025, 6:10 PMmeltano config meltano-map-transformer set _mappings ... should work (notice the leading _ in the setting name)Bruno Arnabar
05/20/2025, 6:11 PMrobin_spilner
05/20/2025, 7:20 PMEdgar Ramírez (Arch.dev)
05/20/2025, 10:28 PMBruno Arnabar
05/20/2025, 11:21 PMEdgar Ramírez (Arch.dev)
05/21/2025, 12:48 AMChad
05/25/2025, 11:09 PM