timestats

timestats [groupby: col storable]*, [groupOrAggregateFunction: expression]+

Evaluates aggregate expressions at each point along the input timeline without merging rows into fixed-width time bins, preserving the input’s temporal kind (Event, Interval, or Resource) and Valid From / Valid To fields.

Grouping

As with other aggregate verbs, arguments are group_by(...), order_by(...), and name: aggregateExpr bindings. When group_by is omitted, the default grouping is the input’s primary key—often one row per entity per timestamp—so you usually pass an explicit group_by(...) when you want coarser rollups.

Output shape

Grouping columns and aggregate result columns appear in the result row type. Valid From and Valid To remain in metadata; those time columns are hidden by default in the emitted schema so metric columns surface first in typical views.

Requires a temporal input; a plain table with no timestamp metadata is rejected. Compare timechart for calendar-aligned buckets and statsby for a single global aggregate or grouped totals without per-timestamp series.

Categories

Accelerable

timestats is always accelerable if the input is accelerable. A dataset that only uses accelerable verbs can be accelerated, making
queries on the dataset respond faster.

Examples

timestats ProcessCount: count(1), group_by(station_id)

Keeps each original event timestamp while computing a rolling-style count per station_id at every instant instead of collapsing into fixed-duration bins.

timestats EventTotal: count(1), group_by(month)

Aggregates event rows at full temporal resolution grouped only by month, contrasting with fixed-width time buckets from timechart.


Did this page help you?