You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
156377: sql/inspect: skip hash precheck for non-encodable types r=spilchen a=spilchen
The recent hash precheck optimization for INSPECT (added to speed up index consistency checks) relies on `crdb_internal.datums_to_bytes` to compute row hashes. However, this builtin uses `keyside.Encode` internally, which doesn't support all column types.
When INSPECT encountered tables with TSVECTOR, TSQUERY, or VECTOR (PGVector) columns stored in secondary indexes, the hash precheck would fail with "illegal argument N of type <typename>". This caused INSPECT to fail entirely on these tables.
This commit adds a check to skip the hash precheck if there are any types that cannot be encoded.
Fixes#156175
Epic: CRDB-55075
Release note: none
Co-authored-by: Matt Spilchen <[email protected]>
0 commit comments