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

sql/schemachanger: forward fit compatibility changes for 22.2 rules #96273

Merged
merged 1 commit into from
Feb 2, 2023

Conversation

fqazi
Copy link
Collaborator

@fqazi fqazi commented Jan 31, 2023

Informs: #95849

Previously, some constraint-related rules in the 22.2 set incorrectly used logic for 23.X. This patch addresses those to get compatibility back. Additionally, some minor clean-up in rules-related helpers to ensure proper compatibility.

With this change, a manual diff shows both branches are now equal in terms of rules (outside of renames). A roachtest will be coming soon to assert this.

Epic: none
Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@fqazi fqazi force-pushed the reforwardFitRules branch 2 times, most recently from 4d26906 to a420256 Compare January 31, 2023 20:00
Previously, some of the constraint related rules in the 22.2 set
were incorrectly using logic for 23.X. This patch addresses those
to get compatibility back. Additionally, some minor clean up in
rules related helpers to ensure proper compatibility.

With this change a manual diff shows both branches are now equal
in terms of rules.

Epic: none
Release note: None
@fqazi fqazi force-pushed the reforwardFitRules branch from a420256 to 372b2f4 Compare January 31, 2023 20:04
@fqazi fqazi marked this pull request as ready for review January 31, 2023 21:55
@fqazi fqazi requested a review from a team January 31, 2023 21:55
@postamar
Copy link

postamar commented Feb 1, 2023

outside of renames

I'd like us to keep using the same names from one version to the next. I think it's fine to backport rule name changes from master into 22.2 to achieve this.

@fqazi
Copy link
Collaborator Author

fqazi commented Feb 2, 2023

I'd like us to keep using the same names from one version to the next. I think it's fine to backport rule name changes from master into 22.2 to achieve this.

This is linked to element renames, but I think this is fine to backport it doesn't impact binary compatibility either. I'll backport that stuff as a part of the roachtest work (debug command + test).

@postamar TFTR!

@fqazi
Copy link
Collaborator Author

fqazi commented Feb 2, 2023

bors r+

@craig
Copy link
Contributor

craig bot commented Feb 2, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Feb 2, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Feb 2, 2023

Build succeeded:

@craig craig bot merged commit 22244a7 into cockroachdb:master Feb 2, 2023
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.

3 participants