You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs: mention EXCHANGE support in mysql compatibility - #22048
This PR updates mysql-compatibility.md to keep the Chinese wording aligned with the English source PR.
It clarifies which partition operations return errors, which partition options are ignored with warnings, and how partition data distribution can differ from MySQL.
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.
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
This documentation update lists the partition operations TiDB rejects and explains how Key and LINEAR partitions differ from MySQL. Two wording points should be fixed. The EXCHANGE PARTITION data-distribution note currently reads as if it applied to KEY tables, which cannot be exchanged. The subpartition warning behavior also differs on 6.5. The global-index link and the Key partition text also need branch-specific edits when the change is applied to older release branches. The risk is low and limited to documentation accuracy.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
标题“docs: mention EXCHANGE support in mysql compatibility”描述了本次变更的核心内容,即在 mysql-compatibility 文档中说明 EXCHANGE 的支持情况。原始摘要显示 PR 主要是列出会报错的分区操作,并补充 SUBPARTITION、LINEAR 关键字及 Key 分区哈希差异的说明。标题仅覆盖 EXCHANGE 这一部分…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Reviewing files that changed from the base of the PR and between b5679a4 and 5e11f4c.
Files selected for processing: 1
mysql-compatibility.md
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please ask for approval from lilin90. 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.
Details
Needs approval from an approver in each of these files:
Reviewing files that changed from the base of the PR and between 5e11f4c and 8ac5a5a.
Files selected for processing: 1
mysql-compatibility.md
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
ti-chi-botBot
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
Nov 27, 2026
Reviewing files that changed from the base of the PR and between 8ac5a5a and 8289d83.
Files selected for processing: 1
mysql-compatibility.md
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
说明 v6.5.0 中含 SUBPARTITION 的 RANGE 分区语句的结果
本文档称 TiDB 会忽略 SUBPARTITION 定义并返回警告。该描述不适用于 v6.5.0 的 RANGE 分区语句。在 v6.5.0 中,含 SUBPARTITION 的 RANGE 语句会返回 treat as normal table 警告,并创建普通表,而不保留一级分区。用户可能误以为表仍是 RANGE 分区表。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is changed, added, or deleted? (Required)
This PR updates
mysql-compatibility.mdto keep the Chinese wording aligned with the English source PR.It clarifies which partition operations return errors, which partition options are ignored with warnings, and how partition data distribution can differ from MySQL.
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)?
AI agent involvement
Do your changes match any of the following descriptions?
Summary by CodeRabbit
REORGANIZE PARTITION、Key 分区表或含全局索引的分区表执行EXCHANGE PARTITION,以及部分分区维护操作时会报错。ALTER TABLE中同时修改分区方式和其他属性,会报错;TiDB 忽略SUBPARTITION和LINEAR关键字并返回警告。TRUNCATE PARTITION、EXCHANGE PARTITION的结果。