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
fixup! importer: set up FunctionResolver for computed column type-checking
Move FunctionResolver setup from makeInputConverter (shared semaCtx) to
NewDatumRowConverter (per-instance) to eliminate a data race. Multiple
parallel import workers were sharing the same semaCtx.FunctionResolver
backed by a *descs.Collection, causing concurrent access to
leasedDescriptors.maybeInitReadTimestamp.
Each DatumRowConverter now creates its own bare-bones descs.Collection
inside a short-lived txn, mirroring the existing per-instance sequence
resolution pattern. Since bare-bones collections lack a lease manager,
we use ByIDWithoutLeased via the new NewDistSQLFunctionResolverFromGetter
constructor.
This also simplifies the makeInputConverter signature back to accepting
*kv.DB instead of descs.DB + *descs.Collection.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments