Skip to content

Add more description to AUTO_RANDOM (#21863) - #21876

Merged
ti-chi-bot[bot] merged 4 commits into
pingcap:release-8.5from
ti-chi-bot:cherry-pick-21863-to-release-8.5
Aug 12, 2026
Merged

Add more description to AUTO_RANDOM (#21863)#21876
ti-chi-bot[bot] merged 4 commits into
pingcap:release-8.5from
ti-chi-bot:cherry-pick-21863-to-release-8.5

Conversation

@ti-chi-bot

@ti-chi-bot ti-chi-bot commented Aug 12, 2026

Copy link
Copy Markdown
Member

This is an automated cherry-pick of #21863

What is changed, added or deleted? (Required)

close pingcap/docs#23404

Add 2 more descriptions:

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).

  • 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)

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

  • This PR is translated from:
  • Other reference link(s):

AI agent involvement

  • The changes in this PR were primarily made by an AI agent on behalf of the PR author.

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

Summary by CodeRabbit

  • 文档
    • 更新 AUTO_RANDOM 位结构说明,明确 UNSIGNED 属性对符号位的影响。
    • 补充隐式生成值始终为正数及有符号列符号位为 0 的规则。
    • 说明自增位至少为 27 位,并完善有符号、无符号列的计算条件。

djshow832 and others added 4 commits August 12, 2026 02:18
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Grace Cai <qqzczy@126.com>
@ti-chi-bot ti-chi-bot added area/sql-infra Indicates that the Issue or PR belongs to the area of sql-infra and sql-metadata. lgtm size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. type/cherry-pick-for-release-8.5 This PR is cherry-picked to release-8.5 from a source PR. labels Aug 12, 2026
@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: d96aa5b2-b37a-4618-a1fc-6af0fd979073

📥 Commits

Reviewing files that changed from the base of the PR and between a57b643 and fe544aa.

📒 Files selected for processing (1)
  • auto-random.md

📝 Walkthrough

Walkthrough

更新 AUTO_RANDOM 的位结构说明,补充符号位规则、自增位至少 27 位的约束,以及有符号列和无符号列的计算条件。

Changes

AUTO_RANDOM 文档更新

Layer / File(s) Summary
位规则与数量约束
auto-random.md
说明符号位由 UNSIGNED 属性决定,隐式生成值始终为正数,并补充自增位至少 27 位及其计算条件。

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

  • pingcap/docs-cn#21863:同样更新 auto-random.md,说明 AUTO_RANDOM 的符号行为和最小自增位数。
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning 变更补充了默认正值说明,但将位数描述为至少 27 位,未严格对应问题中的大于 27 位要求。 请确认约束边界;如果要求严格大于 27 位,请同步修改文档表述和相关说明。
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed 标题明确说明了对 AUTO_RANDOM 文档进行补充,且与主要变更一致。
Description check ✅ Passed 描述包含变更内容、适用版本和关联问题,已满足模板的主要要求。
Out of Scope Changes check ✅ Passed 变更仅涉及 AUTO_RANDOM 文档说明,未发现与关联问题无关的内容。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@qiancai

qiancai commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

/approve

@ti-chi-bot

ti-chi-bot Bot commented Aug 12, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qiancai

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

The pull request process is described here

Details 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 the approved label Aug 12, 2026
@ti-chi-bot
ti-chi-bot Bot merged commit f85cecc into pingcap:release-8.5 Aug 12, 2026
11 checks passed
@ti-chi-bot
ti-chi-bot Bot deleted the cherry-pick-21863-to-release-8.5 branch August 12, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved area/sql-infra Indicates that the Issue or PR belongs to the area of sql-infra and sql-metadata. lgtm size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. type/cherry-pick-for-release-8.5 This PR is cherry-picked to release-8.5 from a source PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants