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: add Index interface and TableDescriptor methods in catalog #58187

Closed
wants to merge 1 commit into from

Conversation

postamar
Copy link
Contributor

@postamar postamar commented Dec 22, 2020

Previously, the catalog.TableDescriptor interface and its implementing
types would liberally return descpb.IndexDescriptor values, pointers and
slices. In an effort to stop manipulating such protos directly, this
patch introduces a catalog.Index interface to encapsulate it. In order
to enventually propagate this change throughout the code base, this
patch marks some existing catalog.TableDescriptor methods as deprecated
and introduces new ones to eventually replace them.

Partially addresses #57465

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@postamar postamar force-pushed the new-index-interface branch 2 times, most recently from 4955dfa to b112cb4 Compare December 22, 2020 22:07
@postamar postamar changed the title [WIP] New index interface sql: add Index interface and TableDescriptor methods in catalog Dec 22, 2020
@postamar postamar force-pushed the new-index-interface branch 2 times, most recently from 1f2b789 to 183edbd Compare December 22, 2020 22:59
@postamar postamar requested a review from a team December 22, 2020 23:00
@postamar postamar marked this pull request as ready for review December 22, 2020 23:00
Previously, the catalog.TableDescriptor interface and its implementing
types would liberally return descpb.IndexDescriptor values, pointers and
slices. In an effort to stop manipulating such protos directly, this
patch introduces a catalog.Index interface to encapsulate it. In order
to enventually propagate this change throughout the code base, this
patch marks some existing catalog.TableDescriptor methods as deprecated
and introduces new ones to eventually replace them.

Partially addresses cockroachdb#57465.

Release note: None
@postamar
Copy link
Contributor Author

postamar commented Jan 4, 2021

Closed in favour of #58273

@postamar postamar closed this Jan 4, 2021
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