Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

name: op-filter-exclude
description: Drop records whose field value appears in the supplied `values` list.
kind: operator
category: FILTER
operator: FILTER_EXCLUDE
type: reference
applies_to: process, compose, predict
examples_tags: [cohort-analysis, streaming-friendly]

Use when

Drops the rows whose field holds one of the listed values and keeps the rest, such as removing test accounts.

Questions it answers:

  • What are the totals once internal test accounts are taken out?
  • How do the results change without the store that was closed for refit?

Use something else:

  • FILTER_INCLUDE when you want to keep only the listed values.
  • FILTER_NULL when you want to drop the rows where the field is missing.

Params

Wire: values is a top-level filterer key (beside field), not under params.

NameTypeDefaultDescription
valuesarray(required)Block-list of strings: labels on a categorical field, numbers otherwise.

Inputs

field — admitted types: see ## Contract.

Output

Row-level predicate. Drop when field’s value is in values; pass otherwise. No emitted column.

Contract

  • Types (field): categorical_*, date, datetime, decimal128, f32, f64, packed_bool, u16, u32, u4, u64, u8; any other scalar type is PULSE_FIELD_TYPE_UNSUPPORTED.
  • Weight: not read; a weight in force is skipped.
  • Streaming: streamable; components mergeable.
  • Components: n_in, n_out, n_null_input.

Gotchas

  • Null rows PASS this filter (an include filter drops them).
  • Unknown categorical label in values → PROCESSING_CONFIG at build time, surfaced via predict.

See