pingcap / tidb

TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://www.pingcap.com/tidb-serverless/
https://pingcap.com
Apache License 2.0
36.32k stars 5.72k forks source link

Call For Participation: add memory trace for all the AggFuncs #19369

Closed b41sh closed 3 years ago

b41sh commented 3 years ago

Description

This issue is used to track the memory usage of AggFunc in HashAggExec as discussed in #14705 and #14103. We need to implement the method of the AggFunc interface and return memDelta to identify memory usage of each function.

type AggFunc interface {
    AllocPartialResult() (pr PartialResult, memDelta int64)
    UpdatePartialResult(sctx sessionctx.Context, rowsInGroup []chunk.Row, pr PartialResult) (memDelta int64, err error)
    MergePartialResult(sctx sessionctx.Context, src, dst PartialResult) (memDelta int64, err error)
}

All aggregation functions are shown below, you can choose the ones you are interested in. Feel free to join us in the #sig-exec to discuss.

SIG slack channel

sig-exec

Score

Mentor

Recommended Skills

ekexium commented 3 years ago

/label sig/execution

mmyj commented 3 years ago

pick sum agg functions

mmyj commented 3 years ago

pick value agg functions

AntiKnot commented 3 years ago

/pick-up count agg functions

ti-challenge-bot[bot] commented 3 years ago

Pick up success.

ti-challenge-bot[bot] commented 3 years ago

This issue os already picked by SailerNote.

ti-challenge-bot[bot] commented 3 years ago

This issue os already picked by SailerNote.

ti-challenge-bot[bot] commented 3 years ago

This issue os already picked by SailerNote.

ti-challenge-bot[bot] commented 3 years ago

This issue os already picked by SailerNote.

ti-challenge-bot[bot] commented 3 years ago

This issue os already picked by SailerNote.

xiaodong-ji commented 3 years ago

pick max min agg functions

AntiKnot commented 3 years ago

pick count agg functions

cloudhuang commented 3 years ago

pick group concat agg functions

ti-challenge-bot[bot] commented 3 years ago

This issue os already picked by SailerNote.

asiafrank commented 3 years ago

/pick-up row number agg functions

ti-challenge-bot[bot] commented 3 years ago

This issue os already picked by SailerNote.

asiafrank commented 3 years ago

/pick-up count agg functions

ti-challenge-bot[bot] commented 3 years ago

This issue os already picked by SailerNote.

TszKitLo40 commented 3 years ago

/pick-up max min agg functions

ti-challenge-bot[bot] commented 3 years ago

This issue os already picked by SailerNote.

asiafrank commented 3 years ago

/pick-up first row agg functions

ti-challenge-bot[bot] commented 3 years ago

This issue os already picked by SailerNote.

TszKitLo40 commented 3 years ago

/pick-up value agg functions

ti-challenge-bot[bot] commented 3 years ago

This issue os already picked by SailerNote.

asiafrank commented 3 years ago

/pick-up var pop agg functions

ti-challenge-bot[bot] commented 3 years ago

This issue os already picked by SailerNote.

TszKitLo40 commented 3 years ago

/pick-up rank agg functions

ti-challenge-bot[bot] commented 3 years ago

This issue os already picked by SailerNote.

TszKitLo40 commented 3 years ago

/pick-up row number agg functions

ti-challenge-bot[bot] commented 3 years ago

This issue os already picked by SailerNote.

Howie59 commented 3 years ago

/pick-up ntile agg functions

ti-challenge-bot[bot] commented 3 years ago

This issue os already picked by SailerNote.

TszKitLo40 commented 3 years ago

/pick-up json object agg functions

ti-challenge-bot[bot] commented 3 years ago

This issue os already picked by SailerNote.

TszKitLo40 commented 3 years ago

/pick-up percent rank agg functions

ti-challenge-bot[bot] commented 3 years ago

This issue os already picked by SailerNote.

TszKitLo40 commented 3 years ago

/pick-up group concat agg functions

ti-challenge-bot[bot] commented 3 years ago

This issue os already picked by SailerNote.

Howie59 commented 3 years ago

/pick-up first row agg functions

ti-challenge-bot[bot] commented 3 years ago

This issue os already picked by SailerNote.

TszKitLo40 commented 3 years ago

/pick-up bit agg functions

ti-challenge-bot[bot] commented 3 years ago

This issue os already picked by SailerNote.

TszKitLo40 commented 3 years ago

/pick-up var pop agg functions

ti-challenge-bot[bot] commented 3 years ago

This issue os already picked by SailerNote.

TszKitLo40 commented 3 years ago

/pick-up cume distinct agg functions

ti-challenge-bot[bot] commented 3 years ago

This issue os already picked by SailerNote.

hi-rustin commented 3 years ago

/help cc: @TszKitLo40 @Howie66 @asiafrank @xiaodong-ji

Pick Up Rules

ti-challenge-bot[bot] commented 3 years ago

Usage:

      /command [argument]

The commands are:

      /ping            ping the bot       /pick-up      pick up the issue       /give-up      give up the issue       /reward score      reward the score to PR


You can find more details on challenge-bot-docs.

If you think there is a problem, you can report bug on report-a-bug.

If you think the bot is dead, please contact Rustin-Liu to fix it.

XuHuaiyu commented 3 years ago

@SailerNote @TszKitLo40 @Howie66 @asiafrank @xiaodong-ji

We'll create an individual issue for each item in the description, you may pick up the work later.

AntiKnot commented 3 years ago

/give-up