pingcap / pingcap/tidb

Support hint for 1 phase and 2 phase aggregate

Open
#34,624 1 comment 0 reactions 1 assignee Claimed by @Reminiscent View on GitHub
type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement

Currently we only have hint AGG_TO_COP to force pushing aggregate to TiKV.

It would be nice if we have hint of
- 1PHASE_AGG: Single phase aggregate, either on TiDB or TiFlash.
- 2PHASE_AGG: 2 phase aggregate. In case of TiKV, that will be TiDB final aggregate + TiKV partial aggregate. In case of TiFlash, that will be TiFlash final aggregate + TiFlash partial aggregate.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.