New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Config does not support inheritance for mappers #8222
Comments
It looks like this bug may have been introduced by #7992. |
@pnadolny13 can you take a look at this? |
@peterspiro can you share more about what your use case is for inheriting mappers? Mappers work a little different than the extractors/loaders in that they are referred to by their mapping name vs their plugin name, so you wouldnt ever execute the I also dont think plugin inheritance is supported by mappers, potentially because inheritance is usually for reusing a plugin with multiple different configs but in the mapper case thats already the default since It sounds like you're using inheritance to define and configure the same mapper in multiple files though. Maybe more details on your use case would clarify but I tested this "hack" and it does seem to work the way you want, multiple definitions of the same mapper plugin each with a single mapping config in it so you'd be able to put these in different yaml files.
|
@pnadolny13 I'm actually just trying to place my mapping definitions in files other than I'd be happy to use your hack for this, but it only seems to work if I place both config sections in |
Also tested on meltano 3.1.0 and I get the same behavior. |
Meltano Version
3.1.0
Python Version
3.9
Bug scope
Configuration (settings parsing, validation, etc.)
Operating System
OSX
Description
I’d like to use mapper configs that inherit from
meltano-map-transformer
, so that I can distribute them across multiple yaml files, which I already do for my extractors and loaders.However, the config below produces the error:
even though the mapping is only declared once, in the inheriting section.
I don't get the error if I omit inheritance and instead place the
mappings
sub-section in themeltano.yml
config section, omitting the second section.Code
The text was updated successfully, but these errors were encountered: