pingcap / pingcap/docs

No mentioning of limitations of EXCHANGE PARTITION when it comes to Index IDs

Open
#19,411 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/sql-infra
Dominant language
Python
Stars
617
Forks
724
Avg merge
2d 10h
Merged PRs (30d)
223

Description

Change Request

Please answer the following questions before submitting your issue. Thanks!

  1. Describe what you find is inappropriate or missing in the existing docs.
    In https://github.com/pingcap/tidb/issues/50906 there is an issue for EXCHANGE PARTITION, when the table structures looks the same, but internally they have different index ids.

  2. Describe your suggestion or addition.
    Add a paragraph about EXCHANGE PARTITION and table structures, including the workaround CREATE TABLE tnp LIKE partitioned_table; alter table tnp remove partitioning; to get exact the same indexes etc.

  3. Provide some reference materials (such as documents and websites) if you could.
    https://docs.pingcap.com/tidb/stable/partitioned-table#partition-management

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the partition-management section at the linked TiDB documentation page and review the referenced TiDB issue about EXCHANGE PARTITION and differing index IDs. Document the limitation and the stated CREATE TABLE LIKE plus REMOVE PARTITIONING workaround; the section should clearly explain when matching visible structures are insufficient.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql
Domain
databases, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.