-
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
*: add a tidb system variable tidb_hash_join_concurrency #6244
Conversation
sessionctx/variable/tidb_vars.go
Outdated
@@ -138,6 +100,47 @@ const ( | |||
TiDBEnableStreaming = "tidb_enable_streaming" | |||
) | |||
|
|||
// TiDB session and global system variable names. |
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.
session or global
is better.
/run-all-tests |
sessionctx/variable/session.go
Outdated
@@ -406,6 +410,15 @@ func (s *SessionVars) GetStatusFlag(flag uint16) bool { | |||
return s.Status&flag > 0 | |||
} | |||
|
|||
// GetHashJoinConcurrency gets the value of SessionVars.HashJoinConcurrency. | |||
func (s *SessionVars) GetHashJoinConcurrency() uint { |
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.
can we remove this func and initialize HashJoinConcurrency
in other places, thus we can use HashJoinConcurrency
like other session variables ?
Please resolve the conflicts and fix CI. |
Conflicts: sessionctx/variable/tidb_vars.go
/run-integration-common-test |
/run-integration-common-test tidb-test=pr/496 |
/run-integration-common-test tidb-test=pr/496 tidb-private-test=pr/8 |
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.
LGTM
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.
LGTM
/run-all-tests tidb-test=pr/496 tidb-private-test=pr/8 |
/run-integration-common-test tidb-test=pr/496 tidb-private-test=pr/8 |
This commit adds a tidb system variable called tidb_hash_join_concurrency,
thus we can change the value of hash join concurrency without restarting the tidb server.
PTAL @zz-jason @winoros