Skip to content
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

ddl: support reorganization for global index #18373

Closed
wants to merge 1 commit into from

Conversation

ldeng-ustc
Copy link
Contributor

@ldeng-ustc ldeng-ustc commented Jul 5, 2020

What problem does this PR solve?

Problem Summary:

Support reorganization for global index. It is a preparatory work of #18032 .

What is changed and how it works?

What's Changed:

If parameter isGlobalIndex is set, AddTableIndex function will add index entries on table instead of partitions. So, we can use AddTableIndex to build global indices.

How it Works:

When isGlobalIndex is set, use tableID instead of partitionID as indexTableID and pass it down. AddIndexWorker will use indexTableID to build index.

Related changes

  • No related change.

Check List

Tests

  • Unit test

Side effects

  • No side effect.

Release note

  • No release note.

@ti-srebot ti-srebot added the contribution This PR is from a community contributor. label Jul 5, 2020
@github-actions github-actions bot added the sig/sql-infra SIG: SQL Infra label Jul 5, 2020
@ldeng-ustc ldeng-ustc changed the title ddl: support reorgnization of global index ddl: support reorganization for global index Jul 5, 2020
@ldeng-ustc ldeng-ustc closed this Jul 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution This PR is from a community contributor. sig/sql-infra SIG: SQL Infra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants