Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
122313: stats: set the type resolver when dealing with virtual comp cols r=yuzefovich a=yuzefovich We forgot to set the type resolver on the sema context that we create when dealing with virtual computed columns, and as a result stats collection on tables with such columns now might fail altogether. In a separate change I'll audit all callers of `MakeSemaContext` to prevent such a mistake in the future. Fixes: cockroachdb#122312. Release note (bug fix): CockroachDB could fail to collect table statistics on tables that have virtual computed columns of user-defined type if `sql.stats.virtual_computed_columns.enabled` cluster setting is enabled. The setting is introduced in 23.2.4 version and is disabled by default, so only this particular version is affected with non-default setting. Co-authored-by: Yahor Yuzefovich <[email protected]>
- Loading branch information