Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql/stats: add panic-catching to GetTableStats
This patch adds panic-catching logic to `GetTableStats`, so that "safe" panics (out-of-bounds, assertion etc.) can be propagated as a returned error. This allows some code-paths to ignore the returned error, so that execution can proceed even there's an unexpected error in the stats code. This prevents situations where it becomes impossible to query a table because of a stats bug. Informs #113645 Release note: None
- Loading branch information