show ranges from table
could be serving a user with a misleading info
#82995
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Describe the problem
TLDR; A user may be intuitively expecting all ranges that have keys related to the table. But it does not include ranges for the secondary indexes.
More:
show ranges from table foo
is exactly equivalent toshow ranges from index foo@primary
.I.e. it does not include
show ranges from index foo@secondary_idx
. Seems counterintuitive and most likely not what a user would expect.Suggested resolution:
show ranges from table
should return a superset of all ranges across all indexes, not just PK. Otherwise a justification for havingshow ranges from table
when there isshow ranges from index
is not clear.Jira issue: CRDB-16785
Epic CRDB-22701
The text was updated successfully, but these errors were encountered: