name: op-filter-set-equals
description: Keep records whose set field mask exactly equals the supplied label mask.
kind: operator
category: FILTER
operator: FILTER_SET_EQUALS
type: reference
applies_to: process, compose, predict
examples_tags: [cohort-analysis, streaming-friendly]
Use when
Keeps the rows whose multi-select answer is exactly the listed options, no more and no fewer, such as people who use only A.
Questions it answers:
- How many customers use our app and nothing else?
- Which respondents picked exactly these two reasons?
Use something else:
FILTER_SET_CONTAINS_ALLwhen other options are allowed alongside the listed ones.GROUP_SET_VALUEwhen you want to see every combination with its count.
Params
Wire: values is a top-level filterer key (beside field), not under params.
| Name | Type | Default | Description |
|---|---|---|---|
values | array | — | Dictionary labels. Resolved at build time to a single query mask; per-row check is a single equality. |
Inputs
field — admitted types: see ## Contract.
Output
Row-level predicate. Pass when row == query. No emitted column.
Contract
- Types (
field):set_*; any other scalar type isPULSE_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
- Empty
valuesresolves to query=0 — only rows whose set is exactly empty pass. An empty mask is a valid “no selection” set value, distinct from null. - Unknown label in
values→PROCESSING_CONFIG. - Label whose dictionary bit position exceeds the set’s width →
PROCESSING_CONFIG. - Null rows DROP.
See
pulse_examples_search tags=[cohort-analysis]- Skills:
aggregation-design,response-components,op-filter-set-contains-any,op-filter-set-contains-all,op-filter-set-contains-none