cockroachdb / cockroachdb/cockroach

stats: handle NULLs and exclusive end bounds in `spanToBounds`

Open
#168,079 0 comments 0 reactions 1 assignee Claimed by @yuzefovich View on GitHub
A-sql-table-stats C-cleanup E-quick-win T-sql-queries
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

In the original version of `spanToBounds`, for simplicity, we don't handle the case when a span has `NULL` as one of its bounds - we should consider addressing that.

Also for simplicity we assume that all bounds are inclusive even though in some cases (when the span EndKey contains just the single index key column) we could make an exclusive end bound.

Jira issue: CRDB-62777

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.