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_COUNTwhen 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.
| Name | Type | Default | Description |
|---|---|---|---|
values | array | (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
fieldis required; empty →SERVICE_VALIDATION. A missing or unknownvaluesentry →PROCESSING_CONFIGat run time; predict passes it.- Reads the bitmap only — the underlying type’s sentinel value (e.g.
NaN, emptyset_*) is NOT treated as null. - For “non-null AND in a set”, put this filter (
is_not_null) before the value filter.
See
pulse_examples_search tags=[data-quality]- Skills:
aggregation-design,response-components,cohort-schema-design