Expand description
This module contains the logic for matching the internal state tables of two streaming jobs,
used for replacing a streaming job (typically ALTER MV
) while preserving the existing state.
MacrosΒ§
- bail_
fragment π - Constructs a
Error::Fragment
variant and bails out. - bail_
graph π - Constructs a
Error::Graph
variant and bails out. - bail_
operator π - Constructs a
Error::Operator
variant and bails out. - fragment π
- Constructs a
Error::Fragment
variant. - graph π
- Constructs a
Error::Graph
variant. - operator π
- Constructs a
Error::Operator
variant.
StructsΒ§
- Fragment π
- Node for a fragment in the
Graph
. - Graph
- A streaming job graph thatβs used for state table matching.
- Match π
- The match result of a fragment in the source graph to a fragment in the target graph.
- Matches π
- The successful matching result of two
Graph
s. - Stream
Node πDesc - Helper type for describing a [
StreamNode
] in error messages.
EnumsΒ§
- Error π
- Error type for failed state table matching.
FunctionsΒ§
- match_
graph π - Matches two
Graph
s, and returns the match result from each fragment ing1
tog2
. - match_
graph_ πinternal_ tables - Matches two
Graph
s, and returns the internal table mapping fromg1
tog2
.