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
// Split at commas if there's no backslash before the commas, because commas can be part of a function parameter
49
-
finalString[] args = argsStr.split("(?<!\\\\),");
50
49
List<Object> argList = newArrayList<>();
51
-
for (finalStringarg: args) {
52
-
StringtrimmedArg = arg.trim();
53
-
if (trimmedArg.charAt(0) == '/') {
54
-
argList.add(trimmedArg);
55
-
} elseif (trimmedArg.charAt(0) == '"') {
56
-
if (trimmedArg.length() < 2 || trimmedArg.charAt(trimmedArg.length()-1) != '"') {
57
-
thrownewRuntimeException("Invalid string argument: check if any argument is missing a closing double quote or contains comma that's not escaped with `\\`.");
50
+
51
+
// Check if the function has at least one argument
Copy file name to clipboardExpand all lines: data-prepper-expression/src/test/java/org/opensearch/dataprepper/expression/GenericExpressionEvaluator_ConditionalIT.java
Copy file name to clipboardExpand all lines: data-prepper-expression/src/test/java/org/opensearch/dataprepper/expression/GetEventTypeExpressionFunctionTest.java
0 commit comments