Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: column family span generation bugfix
PR cockroachdb#38301 inadvertently introduced a bug that unfortunately wasn't caught by any tests - in the process of improving the tight span generation for tables with column families, it accidentally started throwing away all but the spans for the final constraint passed in from the optimizer. This small omission has serious consequences: queries that have a disjunction of spans to examine (like `SELECT * FROM t WHERE key IN (values...)`) will return incorrect results if the table being queried has multiple column families (in certain cases) - it'll look like rows are missing. This will be problematic for mutations as well. Note that this bug was never present in a non-alpha release. Release note (bug fix): restore correct result generation for queries with index disjunctions on tables with multiple column families. Release justification: critical bugfix, low risk
- Loading branch information