Skip to content

Conversation

qiancai
Copy link
Collaborator

@qiancai qiancai commented Sep 10, 2025

First-time contributors' checklist

What is changed, added or deleted? (Required)

Add new variable named "tidb_opt_skew_distinct_agg" and explain it

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.

  • master (the latest development version)
  • v9.0 (TiDB 9.0 versions)
  • v8.5 (TiDB 8.5 versions)
  • v8.1 (TiDB 8.1 versions)
  • v7.5 (TiDB 7.5 versions)
  • v7.1 (TiDB 7.1 versions)
  • v6.5 (TiDB 6.5 versions)
  • v6.1 (TiDB 6.1 versions)
  • v5.4 (TiDB 5.4 versions)

What is the related PR or file link(s)?

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Need modification after applied to another branch
  • Might cause conflicts after applied to another branch

@qiancai qiancai added area/planner Indicates that the Issue or PR belongs to the area of SQL planner or optimizer. translation/from-docs This PR is translated from a PR in pingcap/docs. v9.0-beta.3 This PR/issue applies to TiDB v9.0-beta.3. labels Sep 10, 2025
@ti-chi-bot ti-chi-bot bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Sep 10, 2025
@qiancai qiancai requested a review from elsa0520 September 10, 2025 07:12
@qiancai qiancai self-assigned this Sep 10, 2025
Copy link

ti-chi-bot bot commented Sep 10, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from qiancai. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 10, 2025
- 类型:浮点数
- 取值范围:`[0, 1]`
- 默认值:`0.8`
- 该变量用于指定 TiDB 优化器的伪选择率。在某些情况下,当优化器无法根据统计信息推导出谓词选择率时,优化器将使用此伪选择率作为替代值。**不建议**修改此值。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 该变量用于指定 TiDB 优化器的伪选择率。在某些情况下,当优化器无法根据统计信息推导出谓词选择率时,优化器将使用此伪选择率作为替代值**不建议**修改此值。
- 该变量用于指定 TiDB 优化器的默认选择率。在某些情况下,当优化器无法根据统计信息推导出谓词选择率时,优化器将使用此默认选择率作为替代值**不建议**修改此值。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/planner Indicates that the Issue or PR belongs to the area of SQL planner or optimizer. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. translation/from-docs This PR is translated from a PR in pingcap/docs. v9.0-beta.3 This PR/issue applies to TiDB v9.0-beta.3.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants