Statistical grouping

Updated at:

This topic describes how to use the statistical grouping operator.

Purpose

The statistical grouping operator persists request objects and then aggregates the data based on the specified configurations.

Scenarios

Compute pipeline

Compute engine

Supported

Offline

MaxCompute

Yes

Hive

Yes

HiveStorage

Yes

RDS/MySQL

Yes

Spark

Yes

Usage notes

Grouping field

The Grouping field specifies the field by which to group data. This setting is optional, and you can select one or more fields. The operator then groups field values from the current request with data from historical requests. For example, if you select "gender" as the grouping field, the operator creates groups for "male", "female", and empty values.

Statistics

Aggregation items perform grouping and aggregation on data filtered by the aggregation scope. You can use expressions in aggregation items.

Note

You can configure multiple aggregation items at once.

Statistical scope

The aggregation scope defines the filter conditions. The statistical grouping operator does not aggregate request data that does not meet these conditions. The aggregation scope supports logical calculations and nested multilayer conditions. You can use expressions in the conditions.