-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
executor: introduce hashRowContainer.GetMatchedRows method #36848
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/e2426a2fc3b6ccf33c1f0debf974548a59f4f537 |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 9e61c37
|
/merge |
@@ -112,10 +112,18 @@ func (c *hashRowContainer) ShallowCopy() *hashRowContainer { | |||
return &newHRC | |||
} | |||
|
|||
// GetMatchedRows get matched rows from probeRow. It can be called | |||
// in multiple goroutines while each goroutine should keep its own | |||
// h and buf. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
”h and buf"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is a copy of GetMatchedRowsAndPtrs.
func (e *HashJoinExec) joinMatchedProbeSideRow2Chunk(workerID uint, probeKey uint64, probeSideRow chunk.Row, hCtx *hashContext, | ||
rowContainer *hashRowContainer, joinResult *hashjoinWorkerResult) (bool, *hashjoinWorkerResult) { | ||
var err error | ||
e.buildSideRows[workerID], e.buildSideRowPtrs[workerID], err = rowContainer.GetMatchedRowsAndPtrs(probeKey, probeSideRow, hCtx, e.buildSideRows[workerID], e.buildSideRowPtrs[workerID]) | ||
e.buildSideRows[workerID], err = rowContainer.GetMatchedRows(probeKey, probeSideRow, hCtx, e.buildSideRows[workerID]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is this change preventing false sharing of e.buildSideRows
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR does not handle the false sharing thing
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-6.2 in PR #36864 |
TiDB MergeCI notify🔴 Bad News! New failing [1] after this pr merged.
|
…ingcap#36848)" This reverts commit 3a74656.
What problem does this PR solve?
Issue Number: close #36847
Problem Summary:
What is changed and how it works?
Introduce the hashRowContainer.GetMatchedRows method since we do not need the Ptr info in HashJoinExec.joinMatchedProbeSideRow2Chunk
Check List
Tests
Before this commit:
TPCDS Q95 costs 126s
After this commit:
TPCDS Q95 costs 113s
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.