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-agg-max
description: Largest non-null value of the field.
kind: operator
category: AGG
operator: AGG_MAX
type: reference
applies_to: process, compose, predict
examples_tags: [financial, streaming-friendly]

Use when

Largest value of a numeric or date field, over all rows or per group.

Questions it answers:

  • What is the latest order date in each region?
  • Is any order value implausibly large?

Use something else:

  • AGG_MIN when you want the smallest value.
  • AGG_PERCENTILE when one extreme row would mislead and you want a high value that ignores it.
  • AGG_RANGE when you want the distance between smallest and largest.

Params

None.

Inputs

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

Output

Scalar float64. Per-group when wired under a grouper.

Components

Universal floor {n, n_null} plus operator-specific:

KeyTypeNotes
maxfloat64Largest non-null value observed
  • Mergeability: Mergeable
  • Streaming: per-chunk emits running max

Gotchas

  • Null rows skipped; n_null counts them.
  • All-null cohort → emits NaN.

See