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

add remove_brackets option to flatten-processor (#4616) #4653

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

timo-mue
Copy link
Contributor

Description

adds a new option remove_brackets to the flatten processor.

{
  "key1": {
    "key2": [
      {
        "key3": "value1",
        "key4": "value2"
      },
      {
        "key3": "value3",
        "key4": "value4"
      }
    ]
  }
}

transforms to

{
  "key1.key2.key3": ["value1", "value3"],
  "key1.key2.key4": ["value2", "value4"]
}

Issues Resolved

Resolves #4616

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

)

Signed-off-by: Timo Mueller <timo.mueller@tower.telekom-cloudcenter.de>
Copy link
Member

@dlvenable dlvenable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @timo-mue for this contribution!

@oeyh , Would you also be able to review this PR?

Copy link
Collaborator

@oeyh oeyh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks @timo-mue

@oeyh oeyh merged commit 0aba83b into opensearch-project:main Jun 21, 2024
45 of 47 checks passed
kkondaka pushed a commit to kkondaka/kk-data-prepper-f2 that referenced this pull request Jul 23, 2024
) (opensearch-project#4653)

Signed-off-by: Timo Mueller <timo.mueller@tower.telekom-cloudcenter.de>
Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
kkondaka pushed a commit to kkondaka/kk-data-prepper-f2 that referenced this pull request Jul 23, 2024
) (opensearch-project#4653)

Signed-off-by: Timo Mueller <timo.mueller@tower.telekom-cloudcenter.de>
Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
kkondaka pushed a commit to kkondaka/kk-data-prepper-f2 that referenced this pull request Jul 30, 2024
) (opensearch-project#4653)

Signed-off-by: Timo Mueller <timo.mueller@tower.telekom-cloudcenter.de>
Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
kkondaka pushed a commit to kkondaka/kk-data-prepper-f2 that referenced this pull request Aug 8, 2024
) (opensearch-project#4653)

Signed-off-by: Timo Mueller <timo.mueller@tower.telekom-cloudcenter.de>
Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
kkondaka pushed a commit to kkondaka/kk-data-prepper-f2 that referenced this pull request Aug 12, 2024
) (opensearch-project#4653)

Signed-off-by: Timo Mueller <timo.mueller@tower.telekom-cloudcenter.de>
Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
kkondaka pushed a commit to kkondaka/kk-data-prepper-f2 that referenced this pull request Aug 14, 2024
) (opensearch-project#4653)

Signed-off-by: Timo Mueller <timo.mueller@tower.telekom-cloudcenter.de>
Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flatten processor: option for keys wihout brackets
3 participants