Rindle docs and package mapSkip to main content

COMPARATOR_VERSION

Constant COMPARATOR_VERSION 

Source
pub const COMPARATOR_VERSION: u32 = 2;
Expand description

The compare_values/compare_rows algorithm-contract version (§4/§5.5). Bump this whenever the total order changes (null handling, float/total_cmp, the bytewise BINARY string order, cross-type rules). A receiver MUST refuse a subscription whose comparator_version differs — its reconstruction would silently corrupt.

v2 (design 226 Stage B): mixed Int/Float comparison became exact (compare_int_f64) instead of as f64 widening. Below 2^53 the order is bit-identical to v1; the bump is the accepted hard fleet break (226 §5.2) — no negotiation or compatibility window.