Expand description
The upsert-v2 source stash: the consolidating diff, the stash batcher
types, and the UpsertStashArm.
Structs§
- Chunked
Arm 🔒 - The chunked flavor: time-major
UpsertChunkBatcherstash,FeedbackSpinefeedback arrangement, bulk-probe drain. - Upsert
Diff 🔒 - Upsert
Diff 🔒Container - Derived columnar container for a struct.
- Upsert
Diff 🔒Reference - Derived columnar reference for a struct.
Traits§
- Upsert
Stash 🔒Arm - The pieces of the upsert-v2 operator that depend on the stash
representation: the stash batcher, the feedback arrangement’s spine, and
how the drain reads prior state.
build_upsert_operatorholds the operator loop and calls through this trait at those points.
Functions§
- flush_
through 🔒 - The shared body of the arms’
flush: writes each update into a raw column throughrecord, consolidates it throughchunker, and hands each readied chunk topush. - next_
outer 🔒 - The least time past every time sharing
ts’smz_repr::Timestamp, orNonewhen that timestamp is the maximum. - seal_
upper 🔒 - The start of the
mz_repr::Timestampafterpersist_upper’s, capped atinput_upperso no unfinalized time is extracted.
Type Aliases§
- Time
Major 🔒Chunker - The chunker that sorts and consolidates raw input into the time-major
Columnchunks the stash batcher consumes. - Time
Major 🔒Update - One chunked-flavor stash update:
UpsertUpdatewith the time copied into the data, so the batcher sorts by(time, key). - Upsert
Chunk 🔒 - One chunked-flavor stash chunk: a sorted, consolidated run of time-major updates, resident or spilled to the buffer pool.
- Upsert
Chunk 🔒Batcher - The chunked flavor’s stash: differential’s chunk merge batcher over
ColumnChunks. Data is pushed in unsorted. The batcher maintains geometrically-sized sorted chains and consolidates via the UpsertDiff Semigroup automatically. Committed chunks spill their bodies to the process buffer pool (seemz_timely_util::columnar::chunk), so the not-yet-eligible backlog (the snapshot / persist-lag window) pages out of RSS instead of growing it. - Upsert
Update 🔒 - One source-stash update: a key, its dataflow time, and the payload diff.
Ois the columnar order key projected from the sourceFromTime(seeUpsertSourceTime).