-
Notifications
You must be signed in to change notification settings - Fork 3k
API: Assign the right field ids when merging schema, #5394 #5395
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
Conversation
|
@karuppayya, can you add a description to this PR that documents the problem and how this fixes it? |
rdblue
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks correct to me.
|
@rdblue Just to note this is still actually incorrect as we are using the Imagine I have And then a user drops C so I have Then we do a mergeSchema with I will end up assigning (highestId({A:1, B:2}) + 1) to D (3) I still think we should merge this fix first as it corrects monotonically changing tables |
|
Re-running failed CI jobs |
|
Merged. Thanks, @karuppayya! I've also marked this for inclusion in the next patch release. |
(cherry picked from commit e05f2bb)
Starting with schema:
And then a user drops C, resulting in:
Then do a mergeSchema with
This will end up assigning (highestId({A:1, B:2}) + 1) to D (3)
The table would then have schemas :