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-range
description: Keep records whose numeric field value falls within [low, high] inclusive.
kind: operator
category: FILTER
operator: FILTER_RANGE
type: reference
applies_to: process, compose, predict
examples_tags: [cohort-analysis, streaming-friendly]

Use when

Keeps only the rows whose number lies between a low and a high limit, both limits included.

Questions it answers:

  • What do adults aged 18 to 34 say?
  • What is the average order once impossible values above 10,000 are left out?

Use something else:

  • FILTER_EXPRESSION when you need an open limit, such as strictly above a value.
  • FILTER_DATE_RANGES when the field is a date and you want named periods.

Params

NameTypeDefaultDescription
Values[2]string(required)[low, high] — both parsed via strconv.ParseFloat. Exactly two entries; any other count → PROCESSING_CONFIG.

Inputs

ParamAccepted field types
Fieldnumeric: u8/u16/u32/u64, f32/f64, date, packed_bool, decimal128

Output

Row-level predicate. Pass when low ≤ value ≤ high; drop otherwise. No emitted column.

Components

Floor only — no operator-specific keys. Universal {n_in, n_out, n_null_input} per response-components contract. Mergeable across chunks; counters fold by simple addition.

Gotchas

  • Inclusive bounds on both ends. Open intervals require FILTER_EXPRESSION.
  • Null rows fail the predicate (dropped).
  • date interpreted as the numeric day-since-epoch — pass numeric strings, not formatted dates.

See