name: op-filter-set-contains-all
description: Keep records whose set field has every bit in the supplied label mask set.
kind: operator
category: FILTER
operator: FILTER_SET_CONTAINS_ALL
type: reference
applies_to: process, compose, predict
examples_tags: [cohort-analysis, streaming-friendly]
Use when
Keeps the rows whose multi-select answer includes every listed option, other options allowed, such as people who use both A and B.
Questions it answers:
- How do people who use both our app and our website rate us?
- Which tickets carry both the urgent and the billing tags?
Use something else:
FILTER_SET_CONTAINS_ANYwhen one of the listed options is enough.
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 bitwise AND-eq. |
Inputs
field — admitted types: see ## Contract.
Output
Row-level predicate. Pass when row & query == 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 — every row passes (trivially “contains all of nothing”). - Unknown label in
values→PROCESSING_CONFIG. - Label whose dictionary bit position exceeds the set’s width →
PROCESSING_CONFIG. - Null rows DROP. Use this for AND-of-features survey logic (“respondents who picked X and Y”).
See
pulse_examples_search tags=[cohort-analysis]- Skills:
aggregation-design,response-components,op-filter-set-contains-any,op-filter-set-contains-none,op-filter-set-equals