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: make SHOW RANGES FOR TABLE include all indexes #93545

Merged
merged 1 commit into from
Dec 14, 2022

Conversation

knz
Copy link
Contributor

@knz knz commented Dec 13, 2022

Informs #80906.
Fixes #93546.
Fixes #82995.
Epic: CRDB-22701

Release note (backward-incompatible change): SHOW RANGES FOR TABLE
now includes rows for all indexes that support the table. Prior to
this change, SHOW RANGES FOR TABLE foo was an alias for SHOW RANGES FOR INDEX foo@primary. This was causing confusion, as it would miss
data for secondary indexes. It is still possible to filter to just the
primary index using SHOW RANGES FOR INDEX foo@primary.

The statement output now also includes the index name.

@knz knz requested a review from ajwerner December 13, 2022 20:19
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@knz knz requested a review from rafiss December 13, 2022 20:20
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: but it'd be nice to have a test.

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @rafiss)

@knz
Copy link
Contributor Author

knz commented Dec 13, 2022

but it'd be nice to have a test.

I'm waiting for CI to tell me where to put it :)

@knz knz force-pushed the 20221213-show-ranges branch 2 times, most recently from 6f5b42e to e65e84a Compare December 13, 2022 22:24
@knz knz marked this pull request as ready for review December 13, 2022 22:47
Release note (backward-incompatible change): `SHOW RANGES FOR TABLE`
now includes rows for all indexes that support the table. Prior to
this change, `SHOW RANGES FOR TABLE foo` was an alias for `SHOW RANGES
FOR INDEX foo@primary`. This was causing confusion, as it would miss
data for secondary indexes. It is still possible to filter to just the
primary index using `SHOW RANGES FOR INDEX foo@primary`.

The statement output now also includes the index name.
@knz
Copy link
Contributor Author

knz commented Dec 14, 2022

bors r=ajwerner

@craig
Copy link
Contributor

craig bot commented Dec 14, 2022

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants