Skip to main content

Drop Key Where Value Equal

Drop a record where the value of the key equals the specified value.

Example

This example shows how to use the DropRecordWhereValueEq transformation to remove a record where the value of a specified key equals a given value.

{
"operation": "drop_record_where_value_eq",
"arguments": {
"key": "field_to_check",
"value": "value_to_check"
}
}

Given the input record:

{
"field_to_check": "value_to_check",
"another_field": "another_value"
}

The record will be dropped and not included in the output.

If the value does not match:

Given the input record:

{
"field_to_check": "different_value",
"another_field": "another_value"
}

The output record will be unchanged:

{
"field_to_check": "different_value",
"another_field": "another_value"
}