FilterItemsFilterItems
FilterItemsCertified

Filter a file by retaining only the items that match a given expression.

Filter a file by retaining only the items that match a given expression.

yaml
type: "io.kestra.plugin.core.storage.FilterItems"
yaml
tasks:
   - id: filter
     type: io.kestra.plugin.core.storage.FilterItems
     from: "{{ inputs.file }}"
     filterCondition: " {{ value == null }}"
     filterType: EXCLUDE
     errorOrNullBehavior: EXCLUDE
Properties

The 'pebble' expression used to match items to be included or excluded

The 'pebble' expression should return a BOOLEAN value (i.e. true or false). Values 0, -0, and "" are interpreted as false. Otherwise, any non empty value will be interpreted as true.

The file to be filtered

DefaultFAIL
Possible Values
FAILINCLUDEEXCLUDE

Specifies the behavior when the expression fails to be evaluated on an item or returns null.

Use FAIL to throw the exception and fail the task, INCLUDE to pass the item through, or EXCLUDE to drop the item.

DefaultINCLUDE
Possible Values
INCLUDEEXCLUDE

Specifies the action to perform with items that match the filterCondition predicate

Use INCLUDE to pass the item through, or EXCLUDE to drop the items.

The total number of items that were dropped by the task

The total number of items that were processed by the task

Formaturi

The filtered file URI