If you want to acquire the state of a row batch, the usual pattern is something like:
AcquireState() checks to see if the allocated space for tuple ptrs is the same in both batches - this is calculated by capacity * num_tuples_per_row * sizeof(Tuple*), and is fixed in the constructor.
But capacity can change after construction, by calling MarkCapacity(). If this happens, dest will allocate too little memory for the tuple ptrs, and AcquireState() will hit a DCHECK.
The solution seems to be recording the maximum capacity in the c'tor, and using that when constructing dest.