-
Couldn't load subscription status.
- Fork 706
planner: Add subquery variables #21943
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4104,6 +4104,24 @@ mysql> desc select count(distinct a) from test.t; | |||||
| - Default value: `OFF` | ||||||
| - This variable controls whether to enable the [Cross-database binding](/sql-plan-management.md#cross-database-binding) feature. | ||||||
|
|
||||||
| ### tidb_opt_enable_no_decorrelate_in_select <span class="version-mark">New in v8.5.4</span> | ||||||
|
|
||||||
| - Scope: SESSION | GLOBAL | ||||||
| - Persists to cluster: Yes | ||||||
| - Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): Yes | ||||||
| - Type: Boolean | ||||||
| - Default value: `OFF` | ||||||
| - This variable controls whether to apply the hint [`NO_DECORRELATE`](/optimizer-hints.md#no_decorrelate) at the session/global level for all queries with a subquery in the select list. | ||||||
|
|
||||||
| ### tidb_opt_enable_semi_join_rewrite <span class="version-mark">New in v8.5.4</span> | ||||||
|
|
||||||
| - Scope: SESSION | GLOBAL | ||||||
| - Persists to cluster: Yes | ||||||
| - Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): No | ||||||
| - Type: Boolean | ||||||
| - Default value: `OFF` | ||||||
| - This variable controls whether to apply the hint [`SEMI_JOIN_REWRITE`](/optimizer-hints.md#semi_join_rewrite) at the session/global level for all queries that contain subqueries. | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The description states that this variable applies to 'all queries that contain subqueries'. However, the documentation for the Also, for better readability, it's better to use 'session or global' instead of 'session/global'.
Suggested change
Style Guide ReferencesFootnotes
|
||||||
|
|
||||||
| ### tidb_opt_fix_control <span class="version-mark">New in v6.5.3 and v7.1.0</span> | ||||||
|
|
||||||
| <CustomContent platform="tidb"> | ||||||
|
|
||||||
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.
For better readability, it's better to use "session or global" instead of "session/global". Also,
SELECTis a SQL keyword and should be enclosed in backticks for consistency.1Style Guide References
Footnotes
Code snippets, command names, options, and paths should be in backticks (
`). ↩