From f52b2aea631fe5c648cee5abe3d9dea5dc053273 Mon Sep 17 00:00:00 2001 From: zzylol Date: Thu, 3 Dec 2026 23:06:59 +0000 Subject: [PATCH 1/3] feat(data_plane): persist exact sum-of-squared-deviations states compactly Pins the planner commit that adds ExactKind::SumOfSquaredDeviations (a standard deviation's or variance's count, mean and sum of squared deviations, 24-byte view record) and gives its state columns a compact form: CompactKind::SumOfSquaredDeviations (code 7), an all-zero empty record as one tag byte, otherwise the count as a varint and the mean and sum as floats; any other record is kept whole. Decoding rebuilds the view bytes exactly. Serde-persisted exact states need no change (the new ScalarState variant round-trips). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01K1M6boFpwkpMtRc1FnZuYi --- Cargo.lock | 36 +++++++++++++-------------- Cargo.toml | 4 +-- data_plane/Cargo.toml | 2 +- data_plane/src/segment.rs | 1 + data_plane/src/state_codec.rs | 46 +++++++++++++++++++++++++++++++++++ 5 files changed, 68 insertions(+), 21 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 92ede5a0c..7f4c96d58 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -333,7 +333,7 @@ dependencies = [ [[package]] name = "asap-accuracy" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=b9c7fdfa09f8854d4ae201183637038ee0f6bd36#b9c7fdfa09f8854d4ae201183637038ee0f6bd36" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" dependencies = [ "asap-types", "asap_sketchlib", @@ -344,7 +344,7 @@ dependencies = [ [[package]] name = "asap-cost" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=b9c7fdfa09f8854d4ae201183637038ee0f6bd36#b9c7fdfa09f8854d4ae201183637038ee0f6bd36" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" dependencies = [ "asap-types", "asap_sketchlib", @@ -356,7 +356,7 @@ dependencies = [ [[package]] name = "asap-executor" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=b9c7fdfa09f8854d4ae201183637038ee0f6bd36#b9c7fdfa09f8854d4ae201183637038ee0f6bd36" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" dependencies = [ "ahash", "arrow", @@ -374,7 +374,7 @@ dependencies = [ [[package]] name = "asap-frontend-common" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=b9c7fdfa09f8854d4ae201183637038ee0f6bd36#b9c7fdfa09f8854d4ae201183637038ee0f6bd36" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" dependencies = [ "asap-types", "serde", @@ -384,7 +384,7 @@ dependencies = [ [[package]] name = "asap-frontend-metricsql" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=b9c7fdfa09f8854d4ae201183637038ee0f6bd36#b9c7fdfa09f8854d4ae201183637038ee0f6bd36" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" dependencies = [ "asap-frontend-common", "asap-types", @@ -395,7 +395,7 @@ dependencies = [ [[package]] name = "asap-frontend-promql" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=b9c7fdfa09f8854d4ae201183637038ee0f6bd36#b9c7fdfa09f8854d4ae201183637038ee0f6bd36" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" dependencies = [ "asap-frontend-common", "asap-types", @@ -405,7 +405,7 @@ dependencies = [ [[package]] name = "asap-frontend-sil" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=b9c7fdfa09f8854d4ae201183637038ee0f6bd36#b9c7fdfa09f8854d4ae201183637038ee0f6bd36" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" dependencies = [ "asap-types", "serde", @@ -415,7 +415,7 @@ dependencies = [ [[package]] name = "asap-frontend-sql" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=b9c7fdfa09f8854d4ae201183637038ee0f6bd36#b9c7fdfa09f8854d4ae201183637038ee0f6bd36" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" dependencies = [ "asap-frontend-common", "asap-sql-function-catalog", @@ -427,7 +427,7 @@ dependencies = [ [[package]] name = "asap-planner" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=b9c7fdfa09f8854d4ae201183637038ee0f6bd36#b9c7fdfa09f8854d4ae201183637038ee0f6bd36" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" dependencies = [ "asap-accuracy", "asap-cost", @@ -450,12 +450,12 @@ dependencies = [ [[package]] name = "asap-sql-function-catalog" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=b9c7fdfa09f8854d4ae201183637038ee0f6bd36#b9c7fdfa09f8854d4ae201183637038ee0f6bd36" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" [[package]] name = "asap-stage0-memo" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=b9c7fdfa09f8854d4ae201183637038ee0f6bd36#b9c7fdfa09f8854d4ae201183637038ee0f6bd36" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" dependencies = [ "asap-types", ] @@ -463,7 +463,7 @@ dependencies = [ [[package]] name = "asap-stage1-pass1-per-computation-candidates" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=b9c7fdfa09f8854d4ae201183637038ee0f6bd36#b9c7fdfa09f8854d4ae201183637038ee0f6bd36" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" dependencies = [ "asap-types", "thiserror 2.0.20", @@ -472,7 +472,7 @@ dependencies = [ [[package]] name = "asap-stage1-pass2-reuse-candidates" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=b9c7fdfa09f8854d4ae201183637038ee0f6bd36#b9c7fdfa09f8854d4ae201183637038ee0f6bd36" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" dependencies = [ "asap-accuracy", "asap-types", @@ -482,7 +482,7 @@ dependencies = [ [[package]] name = "asap-stage2-physical-optimization" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=b9c7fdfa09f8854d4ae201183637038ee0f6bd36#b9c7fdfa09f8854d4ae201183637038ee0f6bd36" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" dependencies = [ "asap-types", ] @@ -490,7 +490,7 @@ dependencies = [ [[package]] name = "asap-stage3-plan-selection" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=b9c7fdfa09f8854d4ae201183637038ee0f6bd36#b9c7fdfa09f8854d4ae201183637038ee0f6bd36" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" dependencies = [ "asap-accuracy", "asap-cost", @@ -505,7 +505,7 @@ dependencies = [ [[package]] name = "asap-types" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=b9c7fdfa09f8854d4ae201183637038ee0f6bd36#b9c7fdfa09f8854d4ae201183637038ee0f6bd36" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" dependencies = [ "asap_sketchlib", "serde", @@ -2489,7 +2489,7 @@ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" [[package]] name = "metricsql_common" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=b9c7fdfa09f8854d4ae201183637038ee0f6bd36#b9c7fdfa09f8854d4ae201183637038ee0f6bd36" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" dependencies = [ "chrono", ] @@ -2497,7 +2497,7 @@ dependencies = [ [[package]] name = "metricsql_parser" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=b9c7fdfa09f8854d4ae201183637038ee0f6bd36#b9c7fdfa09f8854d4ae201183637038ee0f6bd36" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" dependencies = [ "ahash", "chrono", diff --git a/Cargo.toml b/Cargo.toml index f0aed1d6f..a16ef095a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,8 +10,8 @@ version = "0.1.0" # The backend depends on two Planner crates, at one immutable revision: # `asap-planner` to plan and `asap-executor` to execute. Planner IR types # are reached through `asap_executor::planner`. -asap-planner = { git = "https://github.com/ProjectASAP/ASAPPlanner", rev = "b9c7fdfa09f8854d4ae201183637038ee0f6bd36" } -asap-executor = { git = "https://github.com/ProjectASAP/ASAPPlanner", rev = "b9c7fdfa09f8854d4ae201183637038ee0f6bd36" } +asap-planner = { git = "https://github.com/ProjectASAP/ASAPPlanner", rev = "3977f55900b5da7f4ba78911ab45403f677974b5" } +asap-executor = { git = "https://github.com/ProjectASAP/ASAPPlanner", rev = "3977f55900b5da7f4ba78911ab45403f677974b5" } # The sketch library the Planner's executor pins, for the byte encodings of # the sketch states the data plane persists; keep it at the Planner's rev # (draft: ASAPPlanner#1553 head, for SIL intents). diff --git a/data_plane/Cargo.toml b/data_plane/Cargo.toml index ec7bf0b61..c4dface59 100644 --- a/data_plane/Cargo.toml +++ b/data_plane/Cargo.toml @@ -37,7 +37,7 @@ form_urlencoded = "1" [dev-dependencies] # Parses SIL intents for the intent round loop's end-to-end test. -asap-frontend-sil = { git = "https://github.com/ProjectASAP/ASAPPlanner", rev = "b9c7fdfa09f8854d4ae201183637038ee0f6bd36" } +asap-frontend-sil = { git = "https://github.com/ProjectASAP/ASAPPlanner", rev = "3977f55900b5da7f4ba78911ab45403f677974b5" } # Paused time for the intent loop's latency and overrun tests. tokio = { workspace = true, features = ["test-util"] } control_plane.workspace = true diff --git a/data_plane/src/segment.rs b/data_plane/src/segment.rs index 9d287cce9..067471c7a 100644 --- a/data_plane/src/segment.rs +++ b/data_plane/src/segment.rs @@ -1044,6 +1044,7 @@ fn compact_kind(family: &FieldDataType) -> Option { ExactKind::Min | ExactKind::Max => CompactKind::MinMax, ExactKind::Counter => CompactKind::Counter, ExactKind::IRate => CompactKind::LastTwoSamples, + ExactKind::SumOfSquaredDeviations => CompactKind::SumOfSquaredDeviations, }, _ => return None, }) diff --git a/data_plane/src/state_codec.rs b/data_plane/src/state_codec.rs index 06ac3cd5a..3493ead4d 100644 --- a/data_plane/src/state_codec.rs +++ b/data_plane/src/state_codec.rs @@ -41,6 +41,10 @@ pub enum CompactKind { Counter, /// Exact last two samples: two of (`present`, `timestamp`, `value`). LastTwoSamples, + /// Exact sum of squared deviations (a standard deviation's or + /// variance's state): `count` (u64), `mean`, `sum_squared_deviations` + /// (f64); an empty one is all zero. + SumOfSquaredDeviations, } impl CompactKind { @@ -53,6 +57,7 @@ impl CompactKind { Self::MinMax => 4, Self::Counter => 5, Self::LastTwoSamples => 6, + Self::SumOfSquaredDeviations => 7, } } @@ -64,6 +69,7 @@ impl CompactKind { 4 => Self::MinMax, 5 => Self::Counter, 6 => Self::LastTwoSamples, + 7 => Self::SumOfSquaredDeviations, _ => return None, }) } @@ -77,6 +83,7 @@ impl CompactKind { Self::MinMax => 16, Self::Counter => 56, Self::LastTwoSamples => 48, + Self::SumOfSquaredDeviations => 24, }) } } @@ -695,6 +702,13 @@ fn put_record( } } } + (CompactKind::SumOfSquaredDeviations, [0, 0, 0]) => out.ints.push(0), + (CompactKind::SumOfSquaredDeviations, [count, mean, squared_deviations]) if *count > 0 => { + out.ints.push(1); + put_uvarint(&mut out.ints, *count); + out.floats[0].push(*mean); + out.floats[1].push(*squared_deviations); + } _ => return false, } true @@ -818,6 +832,13 @@ fn record( } &words[..6] } + (CompactKind::SumOfSquaredDeviations, 0) => &words[..3], + (CompactKind::SumOfSquaredDeviations, 1) => { + words[0] = reader.uvarint()?; + words[1] = reader.float(0)?; + words[2] = reader.float(1)?; + &words[..3] + } _ => return None, }; view.extend_from_slice(record); @@ -983,6 +1004,31 @@ mod tests { words.iter().flat_map(|w| w.to_le_bytes()).collect() } + /// A sum-of-squared-deviations column (count, mean, sum of squared + /// deviations) decodes to the bytes it was encoded from: an empty + /// record (all zero, one tag byte), records of a large mean and a + /// NaN, and one the executor never writes (count 0, mean non-zero, + /// kept whole). + #[test] + fn compact_sum_of_squared_deviations_columns_rebuild_the_records() { + let f = f64::to_bits; + let states = vec![ + words(&[0, 0, 0]), + words(&[3, f(7.0 / 3.0), f(14.0 / 3.0)]), + words(&[10_000, f(1e9 + 0.25), f(3_367.5)]), + words(&[2, f(f64::NAN), f(f64::NAN)]), + words(&[0, f(1.0), 0]), + ]; + assert_eq!( + round_trip(CompactKind::SumOfSquaredDeviations, &states), + states + ); + assert_eq!( + CompactKind::from_code(CompactKind::SumOfSquaredDeviations.code()), + Some(CompactKind::SumOfSquaredDeviations) + ); + } + /// Every exact record kind decodes to the bytes it was encoded from, /// including records the executor never writes (kept whole). #[test] From 5dc019393030f5201ef98407251bd7045c2000eb Mon Sep 17 00:00:00 2001 From: zzylol Date: Thu, 3 Dec 2026 23:18:00 +0000 Subject: [PATCH 2/3] chore: pin planner a86cb5d6 (ASAPPlanner #1560 head) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01K1M6boFpwkpMtRc1FnZuYi --- Cargo.lock | 36 ++++++++++++++++++------------------ Cargo.toml | 4 ++-- data_plane/Cargo.toml | 2 +- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7f4c96d58..1af15baaa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -333,7 +333,7 @@ dependencies = [ [[package]] name = "asap-accuracy" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" dependencies = [ "asap-types", "asap_sketchlib", @@ -344,7 +344,7 @@ dependencies = [ [[package]] name = "asap-cost" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" dependencies = [ "asap-types", "asap_sketchlib", @@ -356,7 +356,7 @@ dependencies = [ [[package]] name = "asap-executor" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" dependencies = [ "ahash", "arrow", @@ -374,7 +374,7 @@ dependencies = [ [[package]] name = "asap-frontend-common" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" dependencies = [ "asap-types", "serde", @@ -384,7 +384,7 @@ dependencies = [ [[package]] name = "asap-frontend-metricsql" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" dependencies = [ "asap-frontend-common", "asap-types", @@ -395,7 +395,7 @@ dependencies = [ [[package]] name = "asap-frontend-promql" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" dependencies = [ "asap-frontend-common", "asap-types", @@ -405,7 +405,7 @@ dependencies = [ [[package]] name = "asap-frontend-sil" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" dependencies = [ "asap-types", "serde", @@ -415,7 +415,7 @@ dependencies = [ [[package]] name = "asap-frontend-sql" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" dependencies = [ "asap-frontend-common", "asap-sql-function-catalog", @@ -427,7 +427,7 @@ dependencies = [ [[package]] name = "asap-planner" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" dependencies = [ "asap-accuracy", "asap-cost", @@ -450,12 +450,12 @@ dependencies = [ [[package]] name = "asap-sql-function-catalog" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" [[package]] name = "asap-stage0-memo" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" dependencies = [ "asap-types", ] @@ -463,7 +463,7 @@ dependencies = [ [[package]] name = "asap-stage1-pass1-per-computation-candidates" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" dependencies = [ "asap-types", "thiserror 2.0.20", @@ -472,7 +472,7 @@ dependencies = [ [[package]] name = "asap-stage1-pass2-reuse-candidates" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" dependencies = [ "asap-accuracy", "asap-types", @@ -482,7 +482,7 @@ dependencies = [ [[package]] name = "asap-stage2-physical-optimization" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" dependencies = [ "asap-types", ] @@ -490,7 +490,7 @@ dependencies = [ [[package]] name = "asap-stage3-plan-selection" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" dependencies = [ "asap-accuracy", "asap-cost", @@ -505,7 +505,7 @@ dependencies = [ [[package]] name = "asap-types" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" dependencies = [ "asap_sketchlib", "serde", @@ -2489,7 +2489,7 @@ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" [[package]] name = "metricsql_common" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" dependencies = [ "chrono", ] @@ -2497,7 +2497,7 @@ dependencies = [ [[package]] name = "metricsql_parser" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=3977f55900b5da7f4ba78911ab45403f677974b5#3977f55900b5da7f4ba78911ab45403f677974b5" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" dependencies = [ "ahash", "chrono", diff --git a/Cargo.toml b/Cargo.toml index a16ef095a..f0a68ab1a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,8 +10,8 @@ version = "0.1.0" # The backend depends on two Planner crates, at one immutable revision: # `asap-planner` to plan and `asap-executor` to execute. Planner IR types # are reached through `asap_executor::planner`. -asap-planner = { git = "https://github.com/ProjectASAP/ASAPPlanner", rev = "3977f55900b5da7f4ba78911ab45403f677974b5" } -asap-executor = { git = "https://github.com/ProjectASAP/ASAPPlanner", rev = "3977f55900b5da7f4ba78911ab45403f677974b5" } +asap-planner = { git = "https://github.com/ProjectASAP/ASAPPlanner", rev = "a86cb5d6fd204efdff8d4398744900f3ed54f900" } +asap-executor = { git = "https://github.com/ProjectASAP/ASAPPlanner", rev = "a86cb5d6fd204efdff8d4398744900f3ed54f900" } # The sketch library the Planner's executor pins, for the byte encodings of # the sketch states the data plane persists; keep it at the Planner's rev # (draft: ASAPPlanner#1553 head, for SIL intents). diff --git a/data_plane/Cargo.toml b/data_plane/Cargo.toml index c4dface59..fd9bb18c1 100644 --- a/data_plane/Cargo.toml +++ b/data_plane/Cargo.toml @@ -37,7 +37,7 @@ form_urlencoded = "1" [dev-dependencies] # Parses SIL intents for the intent round loop's end-to-end test. -asap-frontend-sil = { git = "https://github.com/ProjectASAP/ASAPPlanner", rev = "3977f55900b5da7f4ba78911ab45403f677974b5" } +asap-frontend-sil = { git = "https://github.com/ProjectASAP/ASAPPlanner", rev = "a86cb5d6fd204efdff8d4398744900f3ed54f900" } # Paused time for the intent loop's latency and overrun tests. tokio = { workspace = true, features = ["test-util"] } control_plane.workspace = true From 32f5d680ef2d1b9e0ee0e1704829e89fa57eac72 Mon Sep 17 00:00:00 2001 From: zzylol Date: Fri, 4 Dec 2026 02:02:50 +0000 Subject: [PATCH 3/3] chore: pin planner 71137c21 (ASAPPlanner #1560 head: global variance nullable) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01K1M6boFpwkpMtRc1FnZuYi --- Cargo.lock | 36 ++++++++++++++++++------------------ Cargo.toml | 4 ++-- data_plane/Cargo.toml | 2 +- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1af15baaa..cc5555a46 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -333,7 +333,7 @@ dependencies = [ [[package]] name = "asap-accuracy" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=71137c2141e79a5911c53482a2baa75dbff80847#71137c2141e79a5911c53482a2baa75dbff80847" dependencies = [ "asap-types", "asap_sketchlib", @@ -344,7 +344,7 @@ dependencies = [ [[package]] name = "asap-cost" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=71137c2141e79a5911c53482a2baa75dbff80847#71137c2141e79a5911c53482a2baa75dbff80847" dependencies = [ "asap-types", "asap_sketchlib", @@ -356,7 +356,7 @@ dependencies = [ [[package]] name = "asap-executor" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=71137c2141e79a5911c53482a2baa75dbff80847#71137c2141e79a5911c53482a2baa75dbff80847" dependencies = [ "ahash", "arrow", @@ -374,7 +374,7 @@ dependencies = [ [[package]] name = "asap-frontend-common" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=71137c2141e79a5911c53482a2baa75dbff80847#71137c2141e79a5911c53482a2baa75dbff80847" dependencies = [ "asap-types", "serde", @@ -384,7 +384,7 @@ dependencies = [ [[package]] name = "asap-frontend-metricsql" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=71137c2141e79a5911c53482a2baa75dbff80847#71137c2141e79a5911c53482a2baa75dbff80847" dependencies = [ "asap-frontend-common", "asap-types", @@ -395,7 +395,7 @@ dependencies = [ [[package]] name = "asap-frontend-promql" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=71137c2141e79a5911c53482a2baa75dbff80847#71137c2141e79a5911c53482a2baa75dbff80847" dependencies = [ "asap-frontend-common", "asap-types", @@ -405,7 +405,7 @@ dependencies = [ [[package]] name = "asap-frontend-sil" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=71137c2141e79a5911c53482a2baa75dbff80847#71137c2141e79a5911c53482a2baa75dbff80847" dependencies = [ "asap-types", "serde", @@ -415,7 +415,7 @@ dependencies = [ [[package]] name = "asap-frontend-sql" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=71137c2141e79a5911c53482a2baa75dbff80847#71137c2141e79a5911c53482a2baa75dbff80847" dependencies = [ "asap-frontend-common", "asap-sql-function-catalog", @@ -427,7 +427,7 @@ dependencies = [ [[package]] name = "asap-planner" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=71137c2141e79a5911c53482a2baa75dbff80847#71137c2141e79a5911c53482a2baa75dbff80847" dependencies = [ "asap-accuracy", "asap-cost", @@ -450,12 +450,12 @@ dependencies = [ [[package]] name = "asap-sql-function-catalog" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=71137c2141e79a5911c53482a2baa75dbff80847#71137c2141e79a5911c53482a2baa75dbff80847" [[package]] name = "asap-stage0-memo" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=71137c2141e79a5911c53482a2baa75dbff80847#71137c2141e79a5911c53482a2baa75dbff80847" dependencies = [ "asap-types", ] @@ -463,7 +463,7 @@ dependencies = [ [[package]] name = "asap-stage1-pass1-per-computation-candidates" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=71137c2141e79a5911c53482a2baa75dbff80847#71137c2141e79a5911c53482a2baa75dbff80847" dependencies = [ "asap-types", "thiserror 2.0.20", @@ -472,7 +472,7 @@ dependencies = [ [[package]] name = "asap-stage1-pass2-reuse-candidates" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=71137c2141e79a5911c53482a2baa75dbff80847#71137c2141e79a5911c53482a2baa75dbff80847" dependencies = [ "asap-accuracy", "asap-types", @@ -482,7 +482,7 @@ dependencies = [ [[package]] name = "asap-stage2-physical-optimization" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=71137c2141e79a5911c53482a2baa75dbff80847#71137c2141e79a5911c53482a2baa75dbff80847" dependencies = [ "asap-types", ] @@ -490,7 +490,7 @@ dependencies = [ [[package]] name = "asap-stage3-plan-selection" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=71137c2141e79a5911c53482a2baa75dbff80847#71137c2141e79a5911c53482a2baa75dbff80847" dependencies = [ "asap-accuracy", "asap-cost", @@ -505,7 +505,7 @@ dependencies = [ [[package]] name = "asap-types" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=71137c2141e79a5911c53482a2baa75dbff80847#71137c2141e79a5911c53482a2baa75dbff80847" dependencies = [ "asap_sketchlib", "serde", @@ -2489,7 +2489,7 @@ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" [[package]] name = "metricsql_common" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=71137c2141e79a5911c53482a2baa75dbff80847#71137c2141e79a5911c53482a2baa75dbff80847" dependencies = [ "chrono", ] @@ -2497,7 +2497,7 @@ dependencies = [ [[package]] name = "metricsql_parser" version = "0.1.0" -source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=a86cb5d6fd204efdff8d4398744900f3ed54f900#a86cb5d6fd204efdff8d4398744900f3ed54f900" +source = "git+https://github.com/ProjectASAP/ASAPPlanner?rev=71137c2141e79a5911c53482a2baa75dbff80847#71137c2141e79a5911c53482a2baa75dbff80847" dependencies = [ "ahash", "chrono", diff --git a/Cargo.toml b/Cargo.toml index f0a68ab1a..713cad6ef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,8 +10,8 @@ version = "0.1.0" # The backend depends on two Planner crates, at one immutable revision: # `asap-planner` to plan and `asap-executor` to execute. Planner IR types # are reached through `asap_executor::planner`. -asap-planner = { git = "https://github.com/ProjectASAP/ASAPPlanner", rev = "a86cb5d6fd204efdff8d4398744900f3ed54f900" } -asap-executor = { git = "https://github.com/ProjectASAP/ASAPPlanner", rev = "a86cb5d6fd204efdff8d4398744900f3ed54f900" } +asap-planner = { git = "https://github.com/ProjectASAP/ASAPPlanner", rev = "71137c2141e79a5911c53482a2baa75dbff80847" } +asap-executor = { git = "https://github.com/ProjectASAP/ASAPPlanner", rev = "71137c2141e79a5911c53482a2baa75dbff80847" } # The sketch library the Planner's executor pins, for the byte encodings of # the sketch states the data plane persists; keep it at the Planner's rev # (draft: ASAPPlanner#1553 head, for SIL intents). diff --git a/data_plane/Cargo.toml b/data_plane/Cargo.toml index fd9bb18c1..4138b9d1d 100644 --- a/data_plane/Cargo.toml +++ b/data_plane/Cargo.toml @@ -37,7 +37,7 @@ form_urlencoded = "1" [dev-dependencies] # Parses SIL intents for the intent round loop's end-to-end test. -asap-frontend-sil = { git = "https://github.com/ProjectASAP/ASAPPlanner", rev = "a86cb5d6fd204efdff8d4398744900f3ed54f900" } +asap-frontend-sil = { git = "https://github.com/ProjectASAP/ASAPPlanner", rev = "71137c2141e79a5911c53482a2baa75dbff80847" } # Paused time for the intent loop's latency and overrun tests. tokio = { workspace = true, features = ["test-util"] } control_plane.workspace = true