opensearch-project / opensearch-project/data-prepper
Support multiple entries of source + target + map_to_list_when condition in map_to_list processor
@niketan16 is already working on this.
Since Feb 3, 2025.
- Dominant language
- Java
- Stars
- 374
- Forks
- 354
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 8
Description
Is your feature request related to a problem? Please describe.
Allow the map_to_list processor to convert multiple sources (map of key-value pairs) to lists of objects under different map_to_list_when conditions.
Describe the solution you'd like
Modify map_to_list processor to support this new configuration that allows multiple entries of source, target and map_to_list_when(optional) like shown below. The existing configuration is still supported. This is new config under entries needs to be added.
processor:
- map_to_list:
entries:
- source: "my-map"
target: "my-list"
map_to_list_when: "some-key == 'test'"
- source: "my-map2"
target: "my-list2"
map_to_list_when: "some-key2 == 'test2'"
Describe alternatives you've considered (Optional)
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.