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

[Feature Request] Mapping String to Array #3964

Closed
Tracked by #3967
adplotzk opened this issue Jan 16, 2024 · 2 comments
Closed
Tracked by #3967

[Feature Request] Mapping String to Array #3964

adplotzk opened this issue Jan 16, 2024 · 2 comments
Labels
plugin - processor A plugin to manipulate data in the data prepper pipeline.

Comments

@adplotzk
Copy link

adplotzk commented Jan 16, 2024

This is a feature request which is requested a processor to implement the following ETL functionality to handle Mapping string to array.

#SOURCE

         "some_source": [
                {
                    "src_key_1": "val_1"
                }
            ]

#TO

        "some_dest": {
            "dest_key_1": ["val_1"]
        }

#MAPPING

    - from_key: "some_source[]/src_key_1/"
      to_key: "some_dest/dest_key_1[]"
      overwrite_if_to_key_exists: true
@dlvenable dlvenable added plugin - processor A plugin to manipulate data in the data prepper pipeline. and removed untriaged labels Jan 16, 2024
@oeyh
Copy link
Collaborator

oeyh commented Jan 19, 2024

This can be achieved with #3867 in combination with rename_keys processor.

@oeyh
Copy link
Collaborator

oeyh commented Feb 12, 2024

Closed via #3867

@oeyh oeyh closed this as completed Feb 12, 2024
@github-project-automation github-project-automation bot moved this from Unplanned to Done in Data Prepper Tracking Board Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin - processor A plugin to manipulate data in the data prepper pipeline.
Projects
Development

No branches or pull requests

3 participants