juan_luis_cano_rodriguez
05/05/2022, 11:51 AMmeltano run tap mapper target
, does this effectively replace meltano elt tap target --job-id=job-id
? I don't see a --job-id
in meltano run
, so I'm not sure how the former tracks state.
in addition, I'm getting a BrokenPipeError
when I try to run my mapper, details in thread 👇juan_luis_cano_rodriguez
05/05/2022, 11:53 AMmeltano invoke meltano-map-transformer --about
, I get
2022-05-05T11:51:35.438136Z [info ] Environment 'dev' is active
time=2022-05-05 11:51:36 name=meltano-map-transformer level=INFO message=meltano-map-transformer v[could not be detected], Meltano SDK v0.4.2)
Traceback (most recent call last):
File "/project-dir/meltano/.meltano/mappers/meltano-map-transformer/venv/bin/meltano-map-transform", line 8, in <module>
sys.exit(StreamTransform.cli())
File "/project-dir/meltano/.meltano/mappers/meltano-map-transformer/venv/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/project-dir/meltano/.meltano/mappers/meltano-map-transformer/venv/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/project-dir/meltano/.meltano/mappers/meltano-map-transformer/venv/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/project-dir/meltano/.meltano/mappers/meltano-map-transformer/venv/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/project-dir/meltano/.meltano/mappers/meltano-map-transformer/venv/lib/python3.9/site-packages/singer_sdk/mapper_base.py", line 140, in cli
config_dict = merge_config_sources(
File "/project-dir/meltano/.meltano/mappers/meltano-map-transformer/venv/lib/python3.9/site-packages/singer_sdk/configuration/_dict_config.py", line 83, in merge_config_sources
config.update(read_json_file(config_path))
TypeError: 'NoneType' object is not iterable
and looks like the same error appears when I do meltano elt tap mapper target
. this is my relevant config:
plugins:
mappers:
- name: meltano-map-transformer
variant: meltano
pip_url: git+<https://github.com/MeltanoLabs/meltano-map-transform.git>
environments:
- name: dev
config:
plugins:
mappings:
- name: alias-tables
config:
stream_maps:
app_users:
__alias__: orchest_cloud_users
app_instances:
__alias__: orchest_cloud_instances
juan_luis_cano_rodriguez
05/05/2022, 12:20 PMjuan_luis_cano_rodriguez
05/05/2022, 12:41 PMstream_maps
supported without the need to use mappers, but despite https://gitlab.com/meltano/sdk/-/issues/301 appearing as fixed, I can't make them work. will keep trying later 😉thomas_briggs
05/05/2022, 1:07 PMthomas_briggs
05/05/2022, 1:10 PMmeltano run
does replace meltano elt
. You don't have to specify a job_id with the 'run' command because Meltano creates it for you in that case.thomas_briggs
05/05/2022, 1:16 PMmeltano invoke
?thomas_briggs
05/05/2022, 1:16 PM--about
switch appears to be broken though 🤨juan_luis_cano_rodriguez
05/05/2022, 2:04 PM--about
juan_luis_cano_rodriguez
05/05/2022, 2:04 PMI believe stream_maps only works if the tap you're working with is based on the Meltano SDK...I see, that makes sense (because I didn't see any mention of it in the Singer spec)
juan_luis_cano_rodriguez
05/05/2022, 3:20 PMmapping_name
extra config.
https://gitlab.com/meltano/meltano/-/merge_requests/2481 introduced the whole code and hasn't been touched since. will update the bugjuan_luis_cano_rodriguez
05/05/2022, 3:28 PM--about
got fixed but meltano run
now reports Error: Ambiguous mapping name alias-tables, found multiple matches.
. giving up for today, will revisit this in a few daysjuan_luis_cano_rodriguez
05/05/2022, 11:49 PMmeltano invoke meltano-map-transformer --about
being broken, meltano run tap mapper-name target
works 👍 couldn't reproduce the BrokenPipeError
anymore, probably I had a bad config somewhere
• __alias__
is also working well, but I was using the wrong table name (say, users
instead of public-users
)taylor
05/06/2022, 3:12 PMjuan_luis_cano_rodriguez
05/06/2022, 4:06 PMalex
05/18/2022, 9:50 AMmeltano-map-transformer
: TypeError: 'NoneType' object is not iterable
, both when I try to run it as part of a pipeline (meltano run tap meltano-map-transform target
) or with meltano invoke meltano-map-transform --about
What changes did you apply to your config to fix the issue when running the pipeline?juan_luis_cano_rodriguez
05/18/2022, 10:26 AMmeltano invoke meltano-map-transform --about
is broken, don't rely on it
• meltano run tap meltano-map-transform target
should work if properly configured, this is how the relevant section of my meltano.yml
looks like:
plugins:
extractors: ...
loaders: ...
mappers:
- name: meltano-map-transformer
variant: meltano
pip_url: git+<https://github.com/MeltanoLabs/meltano-map-transform.git>
mappings:
- name: alias-tables
config:
stream_maps:
public-app_users:
__alias__: cloud_users
public-app_instances:
__alias__: cloud_instances
public-posthog_event:
__alias__: telemetry_events
__else__: null
alex
05/18/2022, 1:18 PMcolumn_name: null
), but at least it’s working now (using __else__: null
)