Skip to main content

LIR_VERSION

Constant LIR_VERSION 

Source
pub const LIR_VERSION: u64 = 1;
Expand description

Version of the stable LIR serialization format.

Once a version has shipped, meaning a released Materialize durably stores pinned plans in it, bump this when the serialized representation of LirRelationExpr or anything it transitively contains changes, or when a scalar function’s declared properties change. Whether the current version has shipped is recorded in LIR_VERSION_POLICY. Two snapshot tests key off it: the schema snapshot in tests/lir_schema.rs against tests/snapshots/lir_v{LIR_VERSION}.json, and the function property registry in tests/func_registry.rs against tests/snapshots/func_registry.json with a per-version digest in tests/snapshots/func_registry_digests.json.