Skip to content
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

[Docs]: Document how to configure nested stream maps values with environment variables in Meltano #1073

Closed
edgarrmondragon opened this issue Oct 14, 2022 · 6 comments · Fixed by #2796
Assignees
Labels
Documentation Improvements or additions to documentation plugin/Singer valuestream/SDK
Milestone

Comments

@edgarrmondragon
Copy link
Collaborator

edgarrmondragon commented Oct 14, 2022

Documentation type

How-to guides

Description

Example adapted from the meltano-map-transform README:

plugins:
  extractors:
  - name: tap-csv
    variant: meltanolabs
    pip_url: git+https://github.com/MeltanoLabs/tap-csv.git
    settings:
    - name: stream_maps.customers.email
    - name: stream_maps.customers.email_domain
    - name: stream_maps.customers.email_hash
    - name: stream_maps.customers.__else__
    - name: stream_maps.stream_map_config
    # Note that these don't work: https://github.com/meltano/meltano/issues/6382
    config:
      stream_maps.customers.email: null
      stream_maps.customers.__else__: null
TAP_CSV_STREAM_MAPS_CUSTOMERS_EMAIL_DOMAIN='email.split("@")[-1]'
TAP_CSV_STREAM_MAPS_CUSTOMERS_EMAIL_HASH='md5(config["hash_seed"] + email)'
TAP_CSV_STREAM_MAP_CONFIG_HASH_SEED='01AWZh7A6DzGm6iJZZ2T'
@aaronsteers
Copy link
Contributor

aaronsteers commented Jan 6, 2023

Cross linking this as a workaround/mitigation of:

@stale
Copy link

stale bot commented Jul 18, 2023

This has been marked as stale because it is unassigned, and has not had recent activity. It will be closed after 21 days if no further activity occurs. If this should never go stale, please add the evergreen label, or request that it be added.

@stale stale bot added the stale label Jul 18, 2023
@edgarrmondragon
Copy link
Collaborator Author

Still relevant

@stale stale bot removed the stale label Jul 20, 2023
@edgarrmondragon
Copy link
Collaborator Author

User asking about something like this in Slack:

Are there any good examples of how to use the MELTANO_MAP_TRANSFORMER_STREAM_MAPS environment variable. Meltano Hub mentions it but it’s not immediately apparent to me what it overwrites because there is a separate stream_maps key for each mapping in the meltano.yml file which begs the question: when I use this variable which mapping is it going to control?

Copy link

stale bot commented Dec 1, 2024

This has been marked as stale because it is unassigned, and has not had recent activity. It will be closed after 21 days if no further activity occurs. If this should never go stale, please add the evergreen label, or request that it be added.

@stale stale bot added the stale label Dec 1, 2024
@edgarrmondragon
Copy link
Collaborator Author

Still relevant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements or additions to documentation plugin/Singer valuestream/SDK
Projects
None yet
3 participants