generated from amazon-archives/__template_Custom
-
Notifications
You must be signed in to change notification settings - Fork 286
Open
Description
Is your feature request related to a problem? Please describe.
My suggestion to solve #6278 is to provide a toJsonString() function that a pipeline author could provide into length() to get the length of an event when serialized as a JSON string.
This is not currently possible because Data Prepper expressions do not allow composing functions.
This can be useful for other functions. Some possible examples:
- Get the length of a joined string:
length(join(/names)) - Make a decision if a metadata field starts with a certain substring:
startsWith(getMetadata("mymetadata"), "someprefix")
Describe the solution you'd like
Update Data Prepper expressions to support function composition:
f(g(x))
Describe alternatives you've considered (Optional)
N/A
Additional context
Proposal to use this feature for a current ask:
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
In progress