<#9105 feat: Permit mapper plugins as valid blocks...
# meltano-repo-activity
g
#9105 feat: Permit mapper plugins as valid blocks Pull request opened by ReubenFrankel ## Description Removes the
block violates set requirements: Expected unique mappings name not the mapper plugin name:
error message to optimistically allow mappers to be invoked directly, without having to instead reference a mapping. As far as I see it, a mapping is just aliased config for mapper plugins. Some mappers will only ever need to perform a single function, so it doesn't makes sense to define a mapping in that case - you may as well just invoke the mapper directly; which is what this PR is addressing. For
meltano-map-transformer
and similar, I believe there is still value in mappings as it prevents you having to
inherit_from
a base
meltano-map-transformer
to define your reusable mappings (although I think they are functionally the same) - i.e. plugins: mappers: - name: meltano-map-transformer variant: meltano pip_url: meltano-map-transform mappings: - name: all-caps config: stream_maps: '*': __alias__: __stream_name__.upper() - name: no-caps config: stream_maps: '*': __alias__: __stream_name__.lower() and plugins: mappers: - name: meltano-map-transformer variant: meltano pip_url: meltano-map-transform - name: all-caps inherit_from: meltano-map-transformer config: stream_maps: '*': __alias__: __stream_name__.upper() - name: no-caps inherit_from: meltano-map-transformer config: stream_maps: '*': __alias__: __stream_name__.lower() ## Related Issues • Partially addresses #3233 • Related to #7992 • Related GitLab issues: • https://gitlab.com/meltano/meltano/-/merge_requests/2481 • https://gitlab.com/meltano/meltano/-/issues/2299 • https://gitlab.com/meltano/meltano/-/issues/3273 meltano/meltano