Skip to main content
Temporal stage showing time-window grouping with drift detection
The Temporal stage groups documents into time windows (hour, day, week, month, quarter, year) and computes aggregations per window. It can also detect drift between consecutive windows, flagging spikes or drops that exceed a threshold.
Stage Category: REDUCE (Groups results by time)Transformation: N documents → M time-window results (with optional drift detection)

When to Use

When NOT to Use

Parameters

Aggregation Types

Drift Detection

Drift detection compares a metric between consecutive windows and computes the percent change.

Timestamp Formats

The stage parses timestamps automatically: Documents with missing or unparseable timestamps are skipped (counted in num_documents_skipped).

Configuration Examples

Output Schema

Window Results

Window Key Formats

Performance

Common Pipeline Patterns

Search + Temporal Analysis

Brand Monitoring with Spike Detection

Error Handling

  • Aggregate - Statistical aggregations without time grouping
  • Group By - Group documents by any field
  • Sample - Statistical sampling