Modulesยง
- metadata ๐
Structsยง
- Create
Flow Data - The serializable data.
- Create
Flow Procedure - The procedure of flow creation.
Enumsยง
- Create
Flow State - The state of CreateFlowProcedure.
- Flow
Type - The type of flow.
Constantsยง
- DEFER_
ON_ MISSING_ SOURCE_ KEY - The flow option key for creating pending flow metadata when source tables do not exist.
- FLOW_
EXPERIMENTAL_ ENABLE_ INCREMENTAL_ READ_ KEY - FLOW_
SCHEDULED_ ๐TIME_ MILLIS_ EXTENSION_ KEY - INTERNAL_
EVAL_ OFFSET_ KEY - Internal transient key used to pass the typed
EVAL OFFSET(whole seconds) from the operator to meta throughCreateFlowExpr.flow_options. Inserted by the operator only after user option validation; parsed and stripped byCreateFlowTask::try_from. Must never be accepted as a user-provided option and must never be persisted intoFlowInfoValue.optionsor be visible in user runtime options / SHOW CREATE. - INTERNAL_
EVAL_ SCHEDULE_ KEY - Internal transient key used to pass the serialized
FlowScheduleConfigfrom meta to flownode throughCreateRequest.flow_options. This key must never be accepted as a user-provided option and must never be persisted intoFlowInfoValue.options. TODO(discord9): Replace this transient flow_options transport with a typed field in the flow create request.
Functionsยง
- ceil_
to_ ๐boundary - Computes the ceiling of
timeto the next schedule boundary aligned withanchor + k * interval. All values are Unix timestamps in seconds. - ceil_
to_ ๐whole_ sec - Rounds a
Utcinstant up to the next whole second (Unix seconds), with nanosecond precision. - ceil_
whole_ ๐sec_ from_ parts - Pure ceiling computation factored out of
ceil_to_whole_secso the overflow path is testable:chrono::DateTime<Utc>cannot represent instants neari64::MAXseconds, but the arithmetic below guards it anyway. - defer_
on_ missing_ source - effective_
eval_ schedule_ from_ flow_ info - Returns the effective typed schedule config for flow metadata.
- get_
flow_ type_ from_ options - resolve_
schedule_ ๐defaults_ into_ task - Resolve
FlowScheduleConfigintotask.eval_schedule. - user_
runtime_ ๐flow_ options - validate_
flow_ options - without_
scheduled_ ๐time_ extension