-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix expression index's document again. #6950
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. |
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
@@ -186,6 +186,14 @@ DROP INDEX idx1 ON t1; | |||
``` | |||
|
|||
> **注意:** | |||
> | |||
> 表达式索引涉及众多表达式,为了确保正确性,只有经过充分测试的函数才允许直接创建,这些函数可以查询变量 `tidb_allow_function_for_expression_index` 了解。对于未经过充分测试的函数,其存在正确性风险, 我们将其视为实验特性,不建议在生产环境中使用。如果仍然希望使用,可以在 [TiDB 配置文件](/tidb-configuration-file.md#allow-expression-index-从-v400-版本开始引入)中进行以下设置: |
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.
> 表达式索引涉及众多表达式,为了确保正确性,只有经过充分测试的函数才允许直接创建,这些函数可以查询变量 `tidb_allow_function_for_expression_index` 了解。对于未经过充分测试的函数,其存在正确性风险, 我们将其视为实验特性,不建议在生产环境中使用。如果仍然希望使用,可以在 [TiDB 配置文件](/tidb-configuration-file.md#allow-expression-index-从-v400-版本开始引入)中进行以下设置: | |
> 表达式索引涉及众多表达式,为了确保正确性,只有经过充分测试的函数才允许直接创建,这些函数可以通过查询变量 `tidb_allow_function_for_expression_index` 得到。对于未经过充分测试的函数,由于尚未完成充分的测试,我们将其视为实验特性,不建议在生产环境中使用。如果仍然希望使用,可以在 [TiDB 配置文件](/tidb-configuration-file.md#allow-expression-index-从-v400-版本开始引入)中进行以下设置: |
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.
这里直接把 GA 的函数列出来吧。
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
@bb7133: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments. In response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
### `tidb_allow_function_for_expression_index` <span class="version-mark">从 v5.2.0 版本开始引入</span> | ||
|
||
- 作用域:NONE | ||
- 这个变量用于显示创建表达式索引所允许使用的函数。 |
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.
同样,推荐很奇怪。这里有些歧义,推荐有“让用户用的意思”,如果不符合用户的需求,也“推荐” 的话就不合适了。
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
### `tidb_allow_function_for_expression_index` <span class="version-mark">从 v5.2.0 版本开始引入</span> | ||
|
||
- 作用域:NONE | ||
- 这个变量用于显示创建表达式索引所允许使用的函数。 |
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.
同样,推荐很奇怪。这里有些歧义,推荐有“让用户用的意思”,如果不符合用户的需求,也“推荐” 的话就不合适了。
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
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
/merge |
@TomShawn: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/remove-status LGT1 |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 0504bf1
|
In response to a cherrypick label: new pull request created: #6976. |
Signed-off-by: wjhuang2016 huangwenjun1997@gmail.com
First-time contributors' checklist
What is changed, added or deleted? (Required)
Which TiDB version(s) do your changes apply to? (Required)
Tips for choosing the affected version(s):
By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.
For details, see tips for choosing the affected versions (in Chinese).
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?