Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
125236: colexecdisk: fix incorrect context capture in partitionerToOperator r=yuzefovich a=yuzefovich This commit fixes recently exposed minor issue with how `partitionerToOperator` captures the context. In particular, these operators are reused multiple times by the external sort and the hash-based partitioner for each new partition, and previously these operator would capture the context that was provided on the first call to `Init`. In case of the external sort, that context comes from the ordered synchronizer which has a tracing span that is finished after each partition, so the captured context would have already finished span that can be problematic down the line. The fix in this commit is to make the operator resettable so that the new context is captured every time the operator is reused. Calling `Reset` is already in place in the hash-based partitioner (because other operators are reused there too), and this commit adds a call in the external sort. Fixes: #125177. Release note: None 125272: randgen: ignore virtual columns in foreign key mutator r=yuzefovich a=yuzefovich We currently don't support FK references to / from virtual columns, so we need to adjust the FK mutator after a recent change in fef5968. Fixes: #125145. Release note: None Co-authored-by: Yahor Yuzefovich <yahor@cockroachlabs.com>
- Loading branch information