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: change RequireActiveIndex to IncludeNonActiveIndex #94046

Merged
merged 1 commit into from
Dec 21, 2022

Conversation

knz
Copy link
Contributor

@knz knz commented Dec 21, 2022

Amends #93942.

The default value of a bool field should encode the common case. The common case for index resolution should be to include only active indexes. So this patch changes RequireActiveIndex (false is non-common case) to IncludeNonActiveIndex (false becomes common case).

Release note: None
Informs: #94128
Epic: CRDB-22701

The default value of a `bool` field should encode the common case. The
common case for index resolution should be to include only active
indexes. So this patch changes `RequireActiveIndex` (`false` is
non-common case) to `IncludeNonActiveIndex` (`false` becomes common
case).

Release note: None
@knz knz requested review from chengxiong-ruan and a team December 21, 2022 11:28
@knz knz requested review from a team as code owners December 21, 2022 11:28
@knz knz requested a review from yuzefovich December 21, 2022 11:28
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@chengxiong-ruan chengxiong-ruan left a comment

Choose a reason for hiding this comment

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

very nice (again).

craig bot pushed a commit that referenced this pull request Dec 21, 2022
94048: catalog: properly propagate flags r=chengxiong-ruan a=knz

First commit from #94046.

Needed for #93644.

Without this patch, it's still not possible to look up offline tables
and non-active indexes.

Release note: None
Epic: None

Co-authored-by: Raphael 'kena' Poss <[email protected]>
@craig craig bot merged commit 28a6abc into cockroachdb:master Dec 21, 2022
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