-
Notifications
You must be signed in to change notification settings - Fork 194
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
Pipeline Configuration Transformation #4446
Merged
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
f43aaf8
Adding templates
srikanthjg 7f80316
Added Dynamic yaml transformer
srikanthjg b549e41
Added Rule evaluator
srikanthjg 769a3ae
Added rule evaluator
srikanthjg 1817b56
Added json walk
srikanthjg 1ba89fb
Add transformation logic
srikanthjg 7ac2c0a
Add dynamic rule
srikanthjg 2060882
Almost working
srikanthjg fc50983
Adding multiple pipelines part1
srikanthjg a63961d
Adding multiple pipelines part2-incomplete
srikanthjg 8b877b5
Works e2e for 1 pipeline
srikanthjg 97472c0
Added multi pipeline template and pipelinemodel support, works for do…
srikanthjg 40750e3
added tests for models and fixed beans, one more fix needed for bean
srikanthjg abe79a1
Fixed IT and beans
srikanthjg 422e3ab
Update bean to have only pipelineDataModel and not parser
srikanthjg b89e3a9
Add banner
srikanthjg 147cd86
Code cleanup and add comments
srikanthjg 6d4ed2b
Support user pipeline configuration dynamic transformation based on
srikanthjg a7badaf
Address comments
srikanthjg 8eb6894
Added Function Call support in templates
srikanthjg b0544f2
Added Function Call support in templates
srikanthjg 5b4825f
Modify documentDB template.
srikanthjg d04768c
Code clean up
srikanthjg 36b1dba
Code clean up
srikanthjg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Works e2e for 1 pipeline
Signed-off-by: srigovs <srigovs@amazon.com>
- Loading branch information
commit 8b877b5d30d332e43587c25b6d057262519e2ec3
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
.../src/main/java/org/opensearch/dataprepper/pipeline/parser/transformer/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## Configuration Transformation | ||
Supports transformation of configuration from user provided configuration to | ||
a transformed configuration based on template and rules. | ||
|
||
## Usage | ||
|
||
User give configuration passes through rules, if the rules are valid, | ||
the template for the transformations are dynamically chosen and applied. | ||
|
||
**User config** | ||
|
||
**Template** | ||
|
||
**Rule** | ||
|
||
**Expected Transformed Config** | ||
|
||
|
||
### Assumptions | ||
1. Deep scan or recursive expressions like`$..` is NOT supported. Always use a more specific expression. | ||
In the event specific variables in a path are not known, use wildcards. | ||
2. User could provide multiple pipelines in their user config but | ||
there can be only one pipeline that can support transformation. | ||
3. There cannot be multiple transformations in a single pipeline. | ||
4. `{{ .. }}` is the placeholder in the template. | ||
`{{ pipeline-name }}` is handled differently as compared to other placeholders | ||
as other placeholders are jsonPaths. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think you are not using this. Please remove.