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
Copy file name to clipboardExpand all lines: data-prepper-plugins/mutate-event-processors/src/main/java/org/opensearch/dataprepper/plugins/processor/mutateevent/AddEntryProcessor.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -313,7 +313,7 @@ private Object retrieveValue(final AddEntryProcessorConfig.Entry entry, final Ev
Copy file name to clipboardExpand all lines: data-prepper-plugins/mutate-event-processors/src/main/java/org/opensearch/dataprepper/plugins/processor/mutateevent/AddEntryProcessorConfig.java
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -214,7 +214,7 @@ public boolean getFlattenKey(){
214
214
215
215
publicStringgetAddWhen() { returnaddWhen; }
216
216
217
-
@AssertTrue(message = "Either value or format or expression must be specified, and only one of them can be specified")
217
+
@AssertTrue(message = "Exactly one of value, format, or value_expression must be specified")
218
218
publicbooleanhasValueOrFormatOrExpression() {
219
219
returnStream.of(value, format, valueExpression).filter(n -> n!=null).count() == 1;
220
220
}
@@ -250,7 +250,6 @@ public Entry(final String key,
250
250
if (metadataKey != null && iterateOn != null) {
251
251
thrownewIllegalArgumentException("iterate_on cannot be applied to metadata");
252
252
}
253
-
254
253
if (iterateOn == null && addToElementWhen != null) {
255
254
thrownewInvalidPluginConfigurationException("add_to_element_when only applies when iterate_on is configured.");
Copy file name to clipboardExpand all lines: data-prepper-plugins/mutate-event-processors/src/test/java/org/opensearch/dataprepper/plugins/processor/mutateevent/AddEntryProcessorTests.java
+91Lines changed: 91 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1088,6 +1088,96 @@ public void testAddFlattenedNestedEntryIterateOn() {
0 commit comments