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

scop, scdep: Rename IndexValidator to Validator #89662

Merged
merged 2 commits into from
Oct 10, 2022

Conversation

Xiang-Gu
Copy link
Contributor

@Xiang-Gu Xiang-Gu commented Oct 10, 2022

I've recently done work to enable adding/dropping check constraints in the declarative
schema changer. It is a big PR with many commits. I think it's nicer to separate them
further into multiple PRs.

This is the first PR in that effort, which is merely renaming and should be easy to review:
commit 1: ValidateCheckConstraint now uses ConstraintID, instead of constraint name;

commit 2: Rename IndexValidator to Validator.
We previously had a file under scdep called index_validator.go where we implement
logic for validating an index. Now that we are going to validate a check constraint, we
renamed them so they will also validate check constraints.

Informs #89665
Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

This PR renames `IndexValidator` in package `scexec` to `Validator`
because we are going to enable it to validate a check constraint in the
next few commits.
@Xiang-Gu Xiang-Gu force-pushed the rename-IndexValidator-to-Validator branch from b082e96 to 239786a Compare October 10, 2022 16:11
Copy link
Contributor

@ajwerner ajwerner left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, 13 of 13 files at r2, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @Xiang-Gu)

@Xiang-Gu Xiang-Gu marked this pull request as ready for review October 10, 2022 16:19
@Xiang-Gu Xiang-Gu requested a review from a team as a code owner October 10, 2022 16:19
@Xiang-Gu Xiang-Gu requested a review from a team October 10, 2022 16:19
@Xiang-Gu
Copy link
Contributor Author

Thanks for the quick review!

bors r+

@craig
Copy link
Contributor

craig bot commented Oct 10, 2022

Build succeeded:

@craig craig bot merged commit 94e2a2b into cockroachdb:master Oct 10, 2022
@Xiang-Gu Xiang-Gu deleted the rename-IndexValidator-to-Validator branch October 11, 2022 14:19
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