diff --git a/system-variables.md b/system-variables.md index f27cb58b8f76e..4b2e2dc999f46 100644 --- a/system-variables.md +++ b/system-variables.md @@ -5866,6 +5866,19 @@ For details, see [Identify Slow Queries](/identify-slow-queries.md). +### tiflash_hashagg_preaggregation_mode New in v8.3.0 + +- Scope: SESSION | GLOBAL +- Persists to cluster: Yes +- Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): Yes +- Type: Enumeration +- Default value: `force_preagg` +- Value options: `force_preagg`, `force_streaming`, `auto` +- This variable controls the pre-aggregation strategy used during the first stage of two-stage or three-stage HashAgg operations pushed down to TiFlash: + - `force_preagg`: TiFlash forces pre-aggregation during the first stage of HashAgg. This behavior is consistent with the behavior before v8.3.0. + - `force_streaming`: TiFlash directly sends data to the next stage of HashAgg without pre-aggregation. + - `auto`: TiFlash automatically chooses whether to perform pre-aggregation based on the current workload's aggregation degree. + ### tikv_client_read_timeout New in v7.4.0 - Scope: SESSION | GLOBAL