Specifies the aggregation operation that is used to query the rows that are obtained from the results of an aggregation operation in each group. This operation is similar to the ANY_VALUE(field) function in MySQL.
Request syntax
message TopRowsAggregation {
optional int32 limit = 1;
optional Sort sort = 2;
}Parameter | Type | Required | Description |
limit | int32 | Yes | The maximum number of rows that can be returned for each group. By default, only one row of data is returned. |
sort | No | The sorting method that is used to sort data in groups. |
Response syntax
message TopRowsAggregationResult {
repeated bytes rows = 1;
}Parameter | Type | Required | Description |
rows | bytes | Yes | The row data that is encoded in the PlainBuffer format. For more information, see PlainBuffer. |