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-null
description: Keep or drop records based on null state of a field.
kind: operator
category: FILTER
operator: FILTER_NULL
type: reference
applies_to: process, compose, predict
examples_tags: [data-quality, cohort-analysis, streaming-friendly]

Use when

Keeps either the rows where a field is missing or the rows where it is present, to find gaps or set them aside.

Questions it answers:

  • Who skipped the income question, so their other answers can be compared with those who answered?
  • What are the averages over only the rows that have a value?

Use something else:

  • AGG_NULL_COUNT when you only want to count the missing values, not filter on them.

Params

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

NameTypeDefaultDescription
valuesarray(required)One entry: One entry: "is_null" keeps null-valued rows; "is_not_null" keeps non-null rows. Any other value → PROCESSING_CONFIG.

Inputs

  • field — any cohort field type — null state is read from the per-record null bitmap.

Output

Row-level predicate. Pass per the configured mode. No emitted column.

Contract

  • Types: any type.
  • Weight: not read; a weight in force is skipped.
  • Streaming: streamable; components mergeable.
  • Components: n_in, n_out, n_null_input.

Gotchas

  • field is required; empty → SERVICE_VALIDATION. A missing or unknown values entry → PROCESSING_CONFIG at run time; predict passes it.
  • Reads the bitmap only — the underlying type’s sentinel value (e.g. NaN, empty set_*) is NOT treated as null.
  • For “non-null AND in a set”, put this filter (is_not_null) before the value filter.

See