Skip to main content

Module temporal

Module temporal 

Source
Expand description

Bitemporal scope types threaded through the SQL planner.

A TemporalScope captures the user-facing FOR SYSTEM_TIME AS OF <ms> / FOR VALID_TIME CONTAINS <ms> / FOR VALID_TIME FROM <ms> TO <ms> qualifiers. It is extracted from raw SQL by crate::parser::preprocess::temporal before sqlparser-rs sees the statement, threaded through plan_sql into each SqlPlan::Scan, and finally honored by the engine’s Data Plane handler.

All timestamps are milliseconds since Unix epoch. The edge store converts to HLC ordinal via nodedb_types::ms_to_ordinal_upper. A TemporalScope::default() value is equivalent to “current state” (no temporal qualifier) — every scan site must construct one even when the query is not temporal.

Structs§

TemporalScope
Combined bitemporal qualifier for a scan.

Enums§

ValidTime
Valid-time qualifier attached to a scan.