Skip to main content
DataStore provides comprehensive aggregation and window function support, leveraging ClickHouse’s powerful SQL aggregation capabilities.

Basic Aggregations

Built-in Methods

Examples:

GroupBy Aggregations

Single Aggregation

Multiple Aggregations

Named Aggregations

Multiple GroupBy Keys


Statistical Aggregations

Examples:

Conditional Aggregations

ClickHouse-specific conditional aggregation functions. Examples:

Collection Aggregations

ClickHouse-specific functions that collect values. Examples:

Window Functions

Ranking Functions

Examples:

Value Functions

Examples:

Cumulative Functions

Examples:

Rolling Windows


F Namespace

The F namespace provides access to ClickHouse functions.

Import

Using F Functions

F with Window Functions


Common Aggregation Patterns

Top N per Group

Running Total

Moving Average

Year-over-Year Comparison

Percentile Ranking


Aggregation Methods Summary

Last modified on July 2, 2026