pingcap / pingcap/tidb

The error in `groupConcatOrder/topNRows` cannot be accessed from outside

Open
#52,449 2 comments 0 reactions 0 assignees View on GitHub
severity/minor sig/execution type/bug
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

The only assignment to the `(topNRows).err` is:

https://github.com/pingcap/tidb/blob/6a35d5e5078c374e122b47735527f408e6ccb8b3/pkg/executor/aggfuncs/func_group_concat.go#L323-L330

However, the `topNRows` is not a reference receiver, assigning to `h.err` is meaningless. The `err` here is actually not returned outside.

This issue exists from the very beginning https://github.com/pingcap/tidb/pull/16591

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.