data-prepper icon indicating copy to clipboard operation
data-prepper copied to clipboard

Add null support to DataPrepperExpressions

Open sbayer55 opened this issue 4 years ago • 1 comments

Is your feature request related to a problem? Please describe. Today if a JsonPointer results in a null value an exception is thrown. Using Data Prepper Expression Syntax null values cannot be hard coded. As of Data Prepper 1.3.0 all operators are not null safe.

Describe the solution you'd like Add support for a null keyword.

Example:

/status_code in {null, 400, 404}

Describe alternatives you've considered (Optional) Handling null values with exceptions.

Additional context n/a

sbayer55 avatar Mar 02 '22 16:03 sbayer55

We will support equal and not-equal operators with "null" keyword initially. Support for "in" operator may be added later.

kkondaka avatar Oct 19 '22 17:10 kkondaka

Closed by #1946

dlvenable avatar Nov 14 '22 21:11 dlvenable