Closed rmloveland closed 3 years ago
@justinj FYI
We have marked this issue as stale because it has been inactive for 18 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 5 days to keep the issue queue tidy. Thank you for your contribution to CockroachDB!
this has been fixed
Describe the problem
Working on docs for CBO index selection in the face of zone configs and lease preferences (https://github.com/cockroachdb/docs/issues/4586). As part of that, ran a query on a basically empty table (see below), which led to the wrong index being selected.
Quoth Andy Kimball:
To Reproduce
What I was trying to accomplish is:
Cluster startup:
SQL code: