Skip to content

AppendProcessor 'value' should accept a scalar or array #2308

@andrewkroh

Description

@andrewkroh

🐛 Wrong type

The AppendProcessor should accept either a single value or an array of values for its value field. But the specification only allows for an array of values.

The append processor docs say:

Accepts a single value or an array of values.

The Elasticsearch processor accepts a java Object, and this is the location where it gets used:

https://github.com/elastic/elasticsearch/blob/2292406f66ee1b3bd133bb95aaf2c4d3d27d7265/server/src/main/java/org/elasticsearch/ingest/IngestDocument.java#L672-L676

For example, this Fleet integration pipeline would not match the current spec.

Definition

If possible provide a snippet with the fix.

- value: UserDefinedValue[] 
+ value: UserDefinedValue[] | UserDefinedValue

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions