pub(crate) fn mark_chunk_ref_by_vnode<S: StateStore, SD: ValueRowSerde>(
chunk: &StreamChunk,
backfill_state: &BackfillState,
pk_in_output_indices: PkIndicesRef<'_>,
upstream_table: &ReplicatedStateTable<S, SD>,
pk_order: &[OrderType],
) -> StreamExecutorResult<StreamChunk>
Expand description
Mark chunk:
For each row of the chunk, forward it to downstream if its pk <= current_pos
for the
corresponding vnode
, otherwise ignore it.
We implement it by changing the visibility bitmap.