Module state_match

Source
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 Graphs.
StreamNodeDesc πŸ”’
Helper type for describing a [StreamNode] in error messages.

EnumsΒ§

Error πŸ”’
Error type for failed state table matching.

FunctionsΒ§

match_graph πŸ”’
Matches two Graphs, and returns the match result from each fragment in g1 to g2.
match_graph_internal_tables πŸ”’
Matches two Graphs, and returns the internal table mapping from g1 to g2.

Type AliasesΒ§

Id πŸ”’
Fragment id.
Result πŸ”’