-
Notifications
You must be signed in to change notification settings - Fork 202
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
Recursive #3198
Recursive #3198
Conversation
Signed-off-by: Kat Shen <[email protected]>
Signed-off-by: Kat Shen <[email protected]>
Signed-off-by: Kat Shen <[email protected]>
Signed-off-by: Kat Shen <[email protected]>
Signed-off-by: Kat Shen <[email protected]>
…g bugs with recursing Signed-off-by: Kat Shen <[email protected]>
… cases Signed-off-by: Kat Shen <[email protected]>
Signed-off-by: Kat Shen <[email protected]>
Signed-off-by: Kat Shen <[email protected]>
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
…e to have length = 1, switch bracket check logic to pattern matching Signed-off-by: Kat Shen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks better. Some comments on regex match and coding style.
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
Also please fix the build failure due to checkStyle:
|
Signed-off-by: Kat Shen <[email protected]>
Signed-off-by: Kat Shen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just minor nits. Otherwise LGTM
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/keyvalue/KeyValueProcessor.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Kat Shen <[email protected]>
* readme and config Signed-off-by: Kat Shen <[email protected]> * clarify readme Signed-off-by: Kat Shen <[email protected]> * working on recursive implementation, resolving issues Signed-off-by: Kat Shen <[email protected]> * resolve errors Signed-off-by: Kat Shen <[email protected]> * inner string parse logic done, working on splitter logic Signed-off-by: Kat Shen <[email protected]> * write recursive implementation and reorganize code for clarity, fixing bugs with recursing Signed-off-by: Kat Shen <[email protected]> * basic implementation done and working, cleaning code and testing edge cases Signed-off-by: Kat Shen <[email protected]> * resolve duplicate value test failures and add basic recursive test Signed-off-by: Kat Shen <[email protected]> * write tests and specify configs in regards to recursive Signed-off-by: Kat Shen <[email protected]> * switch transform_key config functionality, specify that splitters have to have length = 1, switch bracket check logic to pattern matching Signed-off-by: Kat Shen <[email protected]> * clean code Signed-off-by: Kat Shen <[email protected]> * fix errors Signed-off-by: Kat Shen <[email protected]> * fix nits Signed-off-by: Kat Shen <[email protected]> --------- Signed-off-by: Kat Shen <[email protected]> Co-authored-by: Kat Shen <[email protected]>
Description
A boolean specifying whether to drill down into values and recursively get more key-value pairs from it. The extra key-value pairs will be stored as subkeys of the root key.
Issues Resolved
Resolves #888
Check List
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.