You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Strings in Data Prepper do not allow a $ character. This can be problematic for any situation, but especially when using a regex pattern to get the end of a line.
To Reproduce
Create a pipeline with a route like:
/some_field =~ "^prefix-[a-zA-Z0-9-]+$"
Run Data Prepper.
You will get some cryptic errors.
Caused by: org.opensearch.dataprepper.expression.ExceptionOverview: Multiple exceptions (37)
|-- org.antlr.v4.runtime.LexerNoViableAltException: null
at org.antlr.v4.runtime.atn.LexerATNSimulator.failOrAccept(LexerATNSimulator.java:309)
|-- org.antlr.v4.runtime.InputMismatchException: null
at org.antlr.v4.runtime.DefaultErrorStrategy.sync(DefaultErrorStrategy.java:270)
Change the regex by removing the $. The route works as expected.
Expected behavior
I should be able to run Data Prepper with $ in the strings.
The text was updated successfully, but these errors were encountered:
Describe the bug
Strings in Data Prepper do not allow a
$
character. This can be problematic for any situation, but especially when using a regex pattern to get the end of a line.To Reproduce
Create a pipeline with a route like:
Run Data Prepper.
You will get some cryptic errors.
Change the regex by removing the
$
. The route works as expected.Expected behavior
I should be able to run Data Prepper with
$
in the strings.The text was updated successfully, but these errors were encountered: