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

Added validations in include and exclude keys #3181

Merged
merged 1 commit into from
Aug 18, 2023

Conversation

asifsmohammed
Copy link
Collaborator

@asifsmohammed asifsmohammed commented Aug 16, 2023

Description

  • Remove adding / at start of key and removing / at end of key.
  • Adds validations to not support / in keys

Issues Resolved

partially resolves #3163

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.

});
excludeKeys.forEach(key -> {
if(key.contains("/"))
throw new InvalidPluginConfigurationException("exclude_keys cannot contain /");
Copy link
Member

Choose a reason for hiding this comment

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

Does this mean we don't support nested keys? seems like it should be supported like we do for delete_entries processor

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We decided not to support it for now, and add it later.
#3163 (comment)

Copy link
Member

Choose a reason for hiding this comment

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

We already do not support it.

So this change just validates that users don't try to use this. See this comment and thread for more details:

#3163 (comment)

@asifsmohammed asifsmohammed merged commit f61604b into opensearch-project:main Aug 18, 2023
45 checks passed
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.

[BUG] Include/exclude_keys not working with Avro codec output in S3 Sink
3 participants