Function mz_storage::upsert::upsert
source ยท pub(crate) fn upsert<G: Scope, FromTime>(
input: &Collection<G, (UpsertKey, Option<Result<Row, UpsertError>>, FromTime), Diff>,
upsert_envelope: UpsertEnvelope,
resume_upper: Antichain<G::Timestamp>,
previous: Collection<G, Result<Row, DataflowError>, Diff>,
previous_token: Option<Vec<PressOnDropButton>>,
source_config: SourceExportCreationConfig,
instance_context: &StorageInstanceContext,
storage_configuration: &StorageConfiguration,
dataflow_paramters: &DataflowParameters,
backpressure_metrics: Option<BackpressureMetrics>,
) -> (Collection<G, Result<Row, DataflowError>, Diff>, Stream<G, (usize, HealthStatusUpdate)>, Stream<G, Infallible>, PressOnDropButton)
Expand description
Resumes an upsert computation at resume_upper
given as inputs a collection of upsert commands
and the collection of the previous output of this operator.
Returns a tuple of
- A collection of the computed upsert operator and,
- A health update stream to propagate errors