Skip to content

reinitialize primary key after ALTER#516

Merged
alexey-milovidov merged 1 commit intomasterfrom
fix-primary-key-alter
Feb 21, 2017
Merged

reinitialize primary key after ALTER#516
alexey-milovidov merged 1 commit intomasterfrom
fix-primary-key-alter

Conversation

@ztlpn
Copy link
Contributor

@ztlpn ztlpn commented Feb 20, 2017

data.initPrimaryKey();
}
/// Reinitialize primary key because primary key column types might have changed.
data.initPrimaryKey();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could calculate if the PK column types have really changed and reinitialize only in that case.
But just doing it in any case is simpler and shouldn't do any harm.

@alexey-milovidov alexey-milovidov merged commit 7090d08 into master Feb 21, 2017
@ztlpn ztlpn deleted the fix-primary-key-alter branch March 17, 2017 16:42
lgbo-ustc pushed a commit to bigo-sg/ClickHouse that referenced this pull request Apr 8, 2025
Fix rebase issue:
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <[email protected]>
baibaichen pushed a commit to baibaichen/ClickHouse that referenced this pull request Apr 22, 2025
Fix rebase issue:
- 20250416 ClickHouse#78485
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <[email protected]>
baibaichen pushed a commit to baibaichen/ClickHouse that referenced this pull request Jun 8, 2025
Fix rebase issue:
- 20250604 ClickHouse#79649
- 20250502 ClickHouse#79180
- 20250416 ClickHouse#78485
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <[email protected]>
baibaichen pushed a commit to baibaichen/ClickHouse that referenced this pull request Jun 8, 2025
Fix rebase issue:
- 20250604 ClickHouse#79649
- 20250502 ClickHouse#79180
- 20250416 ClickHouse#78485
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <[email protected]>
baibaichen pushed a commit to baibaichen/ClickHouse that referenced this pull request Jun 8, 2025
Fix rebase issue:
- 20250604 ClickHouse#79649
- 20250502 ClickHouse#79180
- 20250416 ClickHouse#78485
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <[email protected]>
baibaichen pushed a commit to baibaichen/ClickHouse that referenced this pull request Jun 8, 2025
Fix rebase issue:
- 20250604 ClickHouse#79649
- 20250502 ClickHouse#79180
- 20250416 ClickHouse#78485
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <[email protected]>
lgbo-ustc pushed a commit to bigo-sg/ClickHouse that referenced this pull request Sep 17, 2025
Fix rebase issue:
- 20250728 ClickHouse#84180
- 20250713 ClickHouse#82949
- 20250703 ClickHouse#82934
- 20250626 ClickHouse#80931
- 20250604 ClickHouse#79649
- 20250502 ClickHouse#79180
- 20250416 ClickHouse#78485
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <[email protected]>
lgbo-ustc pushed a commit to bigo-sg/ClickHouse that referenced this pull request Oct 29, 2025
Fix rebase issue:
- 20250728 ClickHouse#84180
- 20250713 ClickHouse#82949
- 20250703 ClickHouse#82934
- 20250626 ClickHouse#80931
- 20250604 ClickHouse#79649
- 20250502 ClickHouse#79180
- 20250416 ClickHouse#78485
- 20250306 ClickHouse#76662

Co-authored-by: liuneng1994 <[email protected]>
Onyx2406 pushed a commit to Onyx2406/ClickHouse that referenced this pull request Mar 19, 2026
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants