Repository navigation
Allow ATTACH PARTITION across explicit and implicit primary keys - #108590
alexey-milovidov merged 1 commit into
Conversation
alexey-milovidov
left a comment
There was a problem hiding this comment.
Looks good, thank you!
|
Workflow [PR], commit [a5997d0] Summary: ✅
AI ReviewSummaryThis PR changes Final VerdictStatus: ✅ Approve |
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered by tests: 6/6 (100.00%) | Lost baseline coverage (was covered on master, now uncovered in this PR): 16 line(s) · Uncovered code |
…tach-partition Allow ATTACH PARTITION across explicit and implicit primary keys
Closes: #68948
Fix
ATTACH PARTITION ... FROMand other PARTITION operations when one of the tables declares thePRIMARY KEYexplicitly and the other inherits it implicitly from theORDER BYand both tables have the same effective primary key.Until now, this was failing with "Tables have different primary key".
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix
ATTACH PARTITION ... FROMrejecting tables whose primary keys are equivalent but declared differently (one explicitPRIMARY KEY, the other implicit fromORDER BY).Version info
26.7.1.331(included in26.7and later)