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
145374: ttljob: avoid using different versions of enum; use a desc.Collection tied to the correct txn r=rafiss a=rafiss
### ttl: use a desc.Collection tied to the txn for TTL job metadata
Previously, we would pass in a desc.Collection from the flowCtx while gathering metadata for the TTL job, such as column names and types.
This was incorrect, since it meant that the lease on any descriptors fetched in those transactions would never be released until the job completed.
### ttljob: make an error message slightly more helpful
The new message assures the user that the job will run again.
### ttljob: avoid using different versions of enum
This patch changes the SELECT/DELETE queries so the use the logical string
representation of enums, rather than the encoded datum. This avoids an
issue that was caused by the enum descriptor's version being passed in
as part of the query placeholder argument.
fixes#145908
Informs: https://github.com/cockroachlabs/support/issues/3246
Release note (bug fix): Fixed a bug that could cause the row level TTL
job to fail with a "comparison of two different versions of enum" error
if an ENUM type referenced by the table experienced a schema change.
Co-authored-by: Rafi Shamim <[email protected]>
0 commit comments