Skip to content

Commit c103a7b

Browse files
committed
Ignore empty values with getFieldValue and copy_from
1 parent 7eaaa20 commit c103a7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/AppendProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public String getCopyFrom() {
7171
public IngestDocument execute(IngestDocument document) throws Exception {
7272
String path = document.renderTemplate(field);
7373
if (copyFrom != null) {
74-
Object fieldValue = document.getFieldValue(copyFrom, Object.class);
74+
Object fieldValue = document.getFieldValue(copyFrom, Object.class, ignoreEmptyValues);
7575
document.appendFieldValue(path, IngestDocument.deepCopy(fieldValue), allowDuplicates, ignoreEmptyValues);
7676
} else {
7777
document.appendFieldValue(path, value, allowDuplicates, ignoreEmptyValues);

0 commit comments

Comments
 (0)