Module fragment

Module fragment 

Source

StructsΒ§

BuildingFragment πŸ”’
The fragment in the building phase, including the StreamFragment from the frontend and several additional helper fields.
CompleteStreamFragmentGraph
A wrapper of StreamFragmentGraph that contains the additional information of pre-existing fragments, which are connected to the graph’s top-most or bottom-most fragments.
DownstreamExternalEdgeId πŸ”’
FragmentBackfillOrder
Adjacency list (G) of backfill orders. G[10] -> [1, 2, 11] means for the backfill node in fragment 10 should be backfilled before the backfill nodes in fragment 1, 2 and 11.
FragmentGraphDownstreamContext
FragmentGraphUpstreamContext
ScanRewriteResult πŸ”’
Output mapping info after rewriting a StreamScan node.
StreamFragmentEdge πŸ”’
The edge in the fragment graph.
StreamFragmentGraph
In-memory representation of a Fragment Graph, built from the StreamFragmentGraphProto from the frontend.

EnumsΒ§

EdgeId πŸ”’
The ID of an edge in the fragment graph. For different types of edges, the ID will be in different variants.
EitherFragment πŸ”’
A fragment that is either being built or already exists. Used for generalize the logic of crate::stream::ActorGraphBuilder.

StaticsΒ§

EMPTY_HASHMAP πŸ”’

FunctionsΒ§

build_new_sink_columns πŸ”’
Build sink column list after removing and appending columns.
check_sink_fragments_support_refresh_schema
clone_fragment πŸ”’
extend_sink_columns πŸ”’
Append new columns to a sink/log-store column list with updated names/ids.
fill_snapshot_backfill_epoch
Fill snapshot epoch for StreamScanNode of SnapshotBackfill. Return true when has change applied.
gen_output_mapping πŸ”’
Generate the output_mapping for DispatchStrategy from given columns.
mv_on_mv_dispatch_strategy πŸ”’
rewrite_log_store_table πŸ”’
Rewrite log store table columns for schema change.
rewrite_project_node πŸ”’
Rewrite Project node input refs and extend with newly added columns.
rewrite_refresh_schema_sink_fragment
rewrite_stream_scan_and_merge πŸ”’
Rewrite StreamScan + Merge to match the new upstream schema.

Type AliasesΒ§

ExtendedFragmentBackfillOrder
UserDefinedFragmentBackfillOrder