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.
/label sig/execution
pick sum agg functions
pick value agg functions
/pick-up count agg functions
Pick up success.
This issue os already picked by SailerNote.
This issue os already picked by SailerNote.
This issue os already picked by SailerNote.
This issue os already picked by SailerNote.
This issue os already picked by SailerNote.
pick max min agg functions
pick count agg functions
pick group concat agg functions
This issue os already picked by SailerNote.
/pick-up row number agg functions
This issue os already picked by SailerNote.
/pick-up count agg functions
This issue os already picked by SailerNote.
/pick-up max min agg functions
This issue os already picked by SailerNote.
/pick-up first row agg functions
This issue os already picked by SailerNote.
/pick-up value agg functions
This issue os already picked by SailerNote.
/pick-up var pop agg functions
This issue os already picked by SailerNote.
/pick-up rank agg functions
This issue os already picked by SailerNote.
/pick-up row number agg functions
This issue os already picked by SailerNote.
/pick-up ntile agg functions
This issue os already picked by SailerNote.
/pick-up json object agg functions
This issue os already picked by SailerNote.
/pick-up percent rank agg functions
This issue os already picked by SailerNote.
/pick-up group concat agg functions
This issue os already picked by SailerNote.
/pick-up first row agg functions
This issue os already picked by SailerNote.
/pick-up bit agg functions
This issue os already picked by SailerNote.
/pick-up var pop agg functions
This issue os already picked by SailerNote.
/pick-up cume distinct agg functions
This issue os already picked by SailerNote.
/help
cc: @TszKitLo40 @Howie66 @asiafrank @xiaodong-ji
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.
@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.
/give-up
Give up success.
@TszKitLo40 @Howie66 @asiafrank @xiaodong-ji
Hi, you can pick up the sub-tasks now.
/pick-up value agg functions
It is not a pickable issue!
@Hunsmore value agg functions have picked up success
/pick-up
It is not a pickable issue!
More
Tip : If you want this issue to be picked, you need to add a challenge-program label to it.
Warning: None
Can we close this issue since all tasks have been finished? @b41sh
Can we close this issue since all tasks have been finished? @b41sh
yes, we can finish it.
@b41sh Could you provide a test report showing that your job work?
We can set up a test environment and run some testing aggregation queries. And the job can be proven by the following two points
show processlist at the same time. Give a comparison chart to show that the memory statistics shown in processlist are close to the memory used by the go language.mem-query-quota, a query that consumes a lot of memory will eventually be killed.
Most helpful comment
@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.