opt: wrong index alteration recommendation when multiple invisible indexes exist #108490
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
Describe the problem
When there are multiple invisible indexes in a table,
ALTER INDEX ... VISIBLE
index recommendations may suggest making the wrong index visible.To Reproduce
On master or 23.1, run
cockroach demo
, and then run the following:This produces:
Notice that the index recommendation is to make
idx_v_invisible
, which is not useful for the given query.Expected behavior
We should recommend to make
idx_j_invisible
visible instead.Jira issue: CRDB-30491
The text was updated successfully, but these errors were encountered: