From a51cd93d42df88650da2d631fc22116bd226efcc Mon Sep 17 00:00:00 2001 From: zzylol <50204836+zzylol@users.noreply.github.com> Date: Mon, 5 Oct 2026 00:24:22 +0000 Subject: [PATCH 1/2] feat(stage2): offer query time, kept for tumbling panes (Example 4 B3) Stage 2 now offers a third materialization for the tumbling panes of a query repeating every pane width: built at query time and kept across evaluations. Each evaluation builds the newest pane from one pane width of raw data, merges it with the N - 1 kept panes, then keeps it and drops the oldest (Q59). The physical node carries a `kept` flag (omitted when false), set by Stage 2 and exported in the PhysicalASAPDAG. Stage 3 prices a kept chain like an ingestion-time one but at query time: the newest pane's build per evaluation, (N - 1) panes retained at cost_per_retained_byte_second and counted against the memory budget, and a scan (and raw retention) of one pane width. A deployment without query_time_retention, such as the reference executor, rejects the candidate with a reason (Q56, Q57). The viewer shows "query time, kept" in a kept node's timing. Co-Authored-By: Claude Opus 5.5 --- crates/devtools/src/bin/stage_pipeline.rs | 2 +- crates/devtools/tests/stage_pipeline.rs | 12 +- crates/executor/tests/hydra_cms_execution.rs | 1 + crates/executor/tests/physical_dag.rs | 6 + crates/executor/tests/physical_semantics.rs | 3 + .../executor/tests/precompute_population.rs | 7 + crates/executor/tests/promql_binary.rs | 1 + crates/executor/tests/raw_scan.rs | 1 + crates/executor/tests/summary_projection.rs | 2 + .../tests/planner_layering_common/mod.rs | 33 +- .../tests/planner_layering_example1.rs | 76 +- .../tests/planner_layering_example3.rs | 93 +- .../tests/planner_layering_example4.rs | 86 +- .../src/implementation/physical_candidates.rs | 57 +- .../physical-optimizer/src/materialization.rs | 232 +- crates/plan-selection/src/lib.rs | 584 +- crates/types/src/ir/physical_export.rs | 7 + crates/types/src/ir/properties/timing.rs | 18 +- .../proposals/stage3-cost-model.md | 36 +- tools/dag-viewer/app.js | 2 +- .../examples/planner-layering-example1.json | 196508 +++++++++++---- tools/dag-viewer/stages.js | 7 +- tools/dag-viewer/test_viewer.py | 12 + 23 files changed, 144312 insertions(+), 53474 deletions(-) diff --git a/crates/devtools/src/bin/stage_pipeline.rs b/crates/devtools/src/bin/stage_pipeline.rs index a5a597c0d..c135460ca 100644 --- a/crates/devtools/src/bin/stage_pipeline.rs +++ b/crates/devtools/src/bin/stage_pipeline.rs @@ -1,5 +1,5 @@ // cargo run -p asap-devtools --bin stage_pipeline -- \ -// --example planner-layering-1 --max-candidates 128 --out planner-layering-example1.json +// --example planner-layering-1 --max-candidates 160 --out planner-layering-example1.json // (also planner-layering-2: #509 Example 2, three SQL statistics over // `flows`; planner-layering-3a and planner-layering-3b: Example 3, Patterns A // and B; planner-layering-4a: Example 4, Pattern A repeated monthly; diff --git a/crates/devtools/tests/stage_pipeline.rs b/crates/devtools/tests/stage_pipeline.rs index d9cf26b75..64d671be0 100644 --- a/crates/devtools/tests/stage_pipeline.rs +++ b/crates/devtools/tests/stage_pipeline.rs @@ -10,8 +10,9 @@ use serde_json::Value; const COMMITTED: &str = "../../tools/dag-viewer/examples/planner-layering-example1.json"; -/// Every Example 1 logical candidate (88) is displayed; the default cap is 64. -const EXAMPLE1: [&str; 4] = ["--example", "planner-layering-1", "--max-candidates", "128"]; +/// Every Example 1 plan (136, from 88 logical candidates) is displayed; the +/// default cap is 64. +const EXAMPLE1: [&str; 4] = ["--example", "planner-layering-1", "--max-candidates", "160"]; fn generate(args: &[&str]) -> Value { // Tests run in parallel and may generate the same document. @@ -88,9 +89,10 @@ fn example1_document_is_valid_and_committed_fixture_is_current() { .iter() .map(|p| p["from_logical"].as_str().unwrap()) .collect(); - // One all-query-time candidate per logical one, plus one with Q2's sum - // panes at ingestion time for each of the 24 with panes. - assert_eq!(physical.len(), candidates.len() + 24); + // One all-query-time candidate per logical one, plus, for each of the + // 24 with panes, one with Q2's sum panes at ingestion time and one with + // them kept at query time. + assert_eq!(physical.len(), candidates.len() + 48); assert_eq!(sources, ids); for candidate in physical { assert!(candidate.get("cost").is_none(), "Stage 2 has no cost"); diff --git a/crates/executor/tests/hydra_cms_execution.rs b/crates/executor/tests/hydra_cms_execution.rs index 4548cac0c..5b5777d21 100644 --- a/crates/executor/tests/hydra_cms_execution.rs +++ b/crates/executor/tests/hydra_cms_execution.rs @@ -74,6 +74,7 @@ fn node(id: usize, payload: Payload, output: Schema) -> PhysicalASAPDAGNode { id, payload, output_state: ExecutionDataState::QUERY_ROWS, + kept: false, output_schema: output, guarantee: None, } diff --git a/crates/executor/tests/physical_dag.rs b/crates/executor/tests/physical_dag.rs index 93b19a5fc..7a19ed1c9 100644 --- a/crates/executor/tests/physical_dag.rs +++ b/crates/executor/tests/physical_dag.rs @@ -500,6 +500,7 @@ fn bind_post_asap_before_execution() { id, payload, output_state: ExecutionDataState::QUERY_ROWS, + kept: false, output_schema: (*schema).clone(), guarantee: None, }; @@ -646,6 +647,7 @@ fn source_batches_must_match_the_bound_schema() { schema: (*expected).clone(), }), output_state: ExecutionDataState::QUERY_ROWS, + kept: false, output_schema: (*expected).clone(), guarantee: None, }], @@ -725,6 +727,7 @@ fn planner_semijoin_sort_limit_contract_at_both_phases() { payload, output_schema: (**schema).clone(), output_state: ExecutionDataState::QUERY_ROWS, + kept: false, guarantee: None, }; let edge = @@ -1187,6 +1190,7 @@ fn grouped_temporal_schema_compiles_and_executes_topk() { id, payload: PhysicalASAPOperatorPayload::NonASAP(operation), output_state: ExecutionDataState::QUERY_ROWS, + kept: false, output_schema: (*input).clone(), guarantee: None, }; @@ -1274,6 +1278,7 @@ fn certified_pruning_rejects_missing_authoritative_values_after_recovery() { id: 2, output_schema: (*schema).clone(), output_state: ExecutionDataState::QUERY_ROWS, + kept: false, guarantee: None, payload: PhysicalASAPOperatorPayload::NonASAP(planner_types::ir::NonASAPOp::Join { kind: JoinKind::Semi, @@ -1389,6 +1394,7 @@ fn compiled_ingestion_binary_preserves_alignment_and_rejects_missing_updates() { id: 2, output_schema: (*input).clone(), output_state: ExecutionDataState::INGESTION_ROWS, + kept: false, guarantee: None, payload: PhysicalASAPOperatorPayload::NonASAP(planner_types::ir::NonASAPOp::BinaryOp { operator: BinaryOperator { diff --git a/crates/executor/tests/physical_semantics.rs b/crates/executor/tests/physical_semantics.rs index 8ff1a399a..6731df8a8 100644 --- a/crates/executor/tests/physical_semantics.rs +++ b/crates/executor/tests/physical_semantics.rs @@ -386,6 +386,7 @@ fn global_extrema_bind_with_planner_derived_schema() { child: 0, }), output_state: ExecutionDataState::QUERY_ROWS, + kept: false, output_schema: (*output).clone(), guarantee: None, }; @@ -768,6 +769,7 @@ fn exact_frequency_intents_execute_typed_keys_and_empty_input() { having: None, }), output_state: ExecutionDataState::QUERY_ROWS, + kept: false, output_schema: (*schema(&[(name, DataType::Float64, false)])).clone(), guarantee: None, }; @@ -853,6 +855,7 @@ fn exact_cardinality_binds_and_executes_typed_tuples() { having: None, }), output_state: ExecutionDataState::QUERY_ROWS, + kept: false, output_schema: (*schema(&[("distinct", DataType::Int64, false)])).clone(), guarantee: None, }; diff --git a/crates/executor/tests/precompute_population.rs b/crates/executor/tests/precompute_population.rs index b0b78c041..0a4d399cb 100644 --- a/crates/executor/tests/precompute_population.rs +++ b/crates/executor/tests/precompute_population.rs @@ -62,6 +62,7 @@ fn finalized_shared_panes_rebuild_one_global_summary_after_recovery() { children: vec![], }), output_state: ExecutionDataState::INGESTION_SUMMARY, + kept: false, output_schema: state_schema.clone(), guarantee: None, }, @@ -71,6 +72,7 @@ fn finalized_shared_panes_rebuild_one_global_summary_after_recovery() { child: 0, }), output_state: ExecutionDataState::INGESTION_ROWS, + kept: false, output_schema: value_schema.clone(), guarantee: None, }, @@ -90,6 +92,7 @@ fn finalized_shared_panes_rebuild_one_global_summary_after_recovery() { }, ), output_state: ExecutionDataState::INGESTION_ROWS, + kept: false, output_schema: value_schema.clone(), guarantee: None, }, @@ -107,6 +110,7 @@ fn finalized_shared_panes_rebuild_one_global_summary_after_recovery() { child: 2, }), output_state: ExecutionDataState::INGESTION_SUMMARY, + kept: false, output_schema: state_schema.clone(), guarantee: None, }, @@ -256,6 +260,7 @@ fn state_dag( id: 0, payload: PhysicalASAPOperatorPayload::ASAP(ASAPOp::SummaryMerge { children: vec![] }), output_state: ExecutionDataState::INGESTION_SUMMARY, + kept: false, output_schema: logical_schema(family.clone()), guarantee: None, }]; @@ -273,6 +278,7 @@ fn state_dag( child: read_id - 1, }), output_state: ExecutionDataState::INGESTION_ROWS, + kept: false, output_schema: logical_schema(FieldDataType::Plain(DataType::Float64)), guarantee: None, }); @@ -288,6 +294,7 @@ fn state_dag( child: read_id, }), output_state: ExecutionDataState::INGESTION_SUMMARY, + kept: false, output_schema: logical_schema(target), guarantee: None, }); diff --git a/crates/executor/tests/promql_binary.rs b/crates/executor/tests/promql_binary.rs index 88e8e322f..4e3d43ef1 100644 --- a/crates/executor/tests/promql_binary.rs +++ b/crates/executor/tests/promql_binary.rs @@ -78,6 +78,7 @@ fn program_for_bool(operator: BinaryOperator, return_bool: bool) -> CompiledPhys rhs: 1, }), output_state: ExecutionDataState::QUERY_ROWS, + kept: false, output_schema: (*schema).clone(), guarantee: None, }; diff --git a/crates/executor/tests/raw_scan.rs b/crates/executor/tests/raw_scan.rs index 136d56513..81017d3cb 100644 --- a/crates/executor/tests/raw_scan.rs +++ b/crates/executor/tests/raw_scan.rs @@ -74,6 +74,7 @@ fn plan( id, payload, output_state: state, + kept: false, output_schema: (**schema).clone(), guarantee: None, }; diff --git a/crates/executor/tests/summary_projection.rs b/crates/executor/tests/summary_projection.rs index be59b1cfd..7c0aa872c 100644 --- a/crates/executor/tests/summary_projection.rs +++ b/crates/executor/tests/summary_projection.rs @@ -65,6 +65,7 @@ fn post_asap_summary_projection_survives_recovery() { }), output_schema: (*schema).clone(), output_state: ExecutionDataState::INGESTION_SUMMARY, + kept: false, guarantee: None, }, PhysicalASAPDAGNode { @@ -82,6 +83,7 @@ fn post_asap_summary_projection_survives_recovery() { }), output_schema: output.clone(), output_state: ExecutionDataState::INGESTION_SUMMARY, + kept: false, guarantee: None, }, ], diff --git a/crates/integration-tests/tests/planner_layering_common/mod.rs b/crates/integration-tests/tests/planner_layering_common/mod.rs index 2be8e2bde..699dad5c7 100644 --- a/crates/integration-tests/tests/planner_layering_common/mod.rs +++ b/crates/integration-tests/tests/planner_layering_common/mod.rs @@ -210,10 +210,9 @@ pub fn run_promql(workload: &PlanningWorkload) -> Run { } /// Whether `form` answers a query window by merging several summaries. -pub fn needs_merge(form: WindowForm, query_window_ms: u64) -> bool { +pub fn needs_merge(form: WindowForm) -> bool { match form { WindowForm::None => false, - WindowForm::Sliding { length_ms, .. } => length_ms < query_window_ms, WindowForm::Tumbling { .. } | WindowForm::ExponentialHistogram { .. } => true, } } @@ -701,8 +700,6 @@ pub fn lookback_ms(workload: &PlanningWorkload, query: usize) -> u64 { pub enum WindowForm { /// Rebuilt from the query window's raw samples (no window summary). None, - /// Windows of `length_ms` starting every `slide_ms`. - Sliding { length_ms: u64, slide_ms: u64 }, /// Back-to-back windows of `length_ms`. Tumbling { length_ms: u64 }, /// EH buckets covering `horizon_ms` of history. @@ -712,8 +709,8 @@ pub enum WindowForm { /// A build merged by a `SummaryMerge` is a tumbling pane, of the width its /// `TimeRange` input reads (#580: pane `i` is `TimeRange(w)` over /// `TimeShift(i·w)` over the scan); any other build is rebuilt from its -/// query window. Sliding windows and Exponential Histograms are not planned -/// yet. +/// query window. Exponential Histograms are not planned yet; a sliding form +/// is superseded by tumbling panes (Q63). pub fn window_form(dag: &impl ExportedDag, build: PhysicalASAPNodeId) -> WindowForm { let merged = dag .consumers(build) @@ -750,13 +747,14 @@ pub enum Materialization { NotMaterialized, } -/// Stage 2 runs a node at ingestion time or at query time, recomputed at -/// each evaluation; it does not keep query-time output yet (Example 4 B3), -/// so `QueryTimeKept` does not occur. +/// Stage 2 runs a node at ingestion time or at query time; a query-time +/// node is recomputed at each evaluation unless the export marks it kept +/// across evaluations (Example 4 B3). pub fn materialization(p: &Physical, node: PhysicalASAPNodeId) -> Materialization { let n = p.dag.nodes.iter().find(|n| n.id == node).expect("node"); match n.output_state.timing { ExecutionTiming::IngestionTime => Materialization::IngestionTime, + ExecutionTiming::QueryTime if n.kept => Materialization::QueryTimeKept, ExecutionTiming::QueryTime => Materialization::NotMaterialized, } } @@ -766,10 +764,12 @@ pub fn materialization(p: &Physical, node: PhysicalASAPNodeId) -> Materializatio /// (`stage3-cost-model.md`): ingestion-time work read at query time through /// a merge of `N` panes of width `w` keeps `(N + 1) · w`; read directly, the /// window being built and the completed one, `2 · window`. Taken over every -/// query-time reader the node's ingestion-time work feeds. `None` for a -/// query-time node. +/// query-time reader the node's ingestion-time work feeds. A kept pane of a +/// merge of `N` panes of width `w` stays until the window no longer covers +/// it: `N · w`, the newest pane built from raw data and `N − 1` kept. `None` +/// for a node recomputed at each evaluation. pub fn retention_ms(p: &Physical, node: PhysicalASAPNodeId) -> Option { - if !runs_at_ingestion(p, node) { + if materialization(p, node) == Materialization::NotMaterialized { return None; } // The longest raw range an ingestion-time node reads. @@ -785,6 +785,15 @@ pub fn retention_ms(p: &Physical, node: PhysicalASAPNodeId) -> Option { .max() .unwrap_or(0) }; + if materialization(p, node) == Materialization::QueryTimeKept { + return p + .dag + .consumers(node) + .into_iter() + .filter(|&c| matches!(p.dag.payload(c), Operator::ASAP(ASAPOp::SummaryMerge { .. }))) + .map(|merge| p.dag.producers(merge).len() as u64 * window(node)) + .max(); + } let mut kept = 0; let mut stack = vec![node]; let mut seen = HashSet::new(); diff --git a/crates/integration-tests/tests/planner_layering_example1.rs b/crates/integration-tests/tests/planner_layering_example1.rs index ddbc5c5fe..abdcf4b5b 100644 --- a/crates/integration-tests/tests/planner_layering_example1.rs +++ b/crates/integration-tests/tests/planner_layering_example1.rs @@ -833,22 +833,25 @@ fn stage1_candidates_are_valid_and_uniquely_named() { /// No candidate is discarded before Stage 3: each of the 88 logical /// candidates keeps its all-query-time physical candidate, and the 24 whose /// Q2 sum comes in 10-s panes also get one with the panes at ingestion time -/// (the panels repeat predictably over arriving data): 112. +/// (the panels repeat predictably over arriving data) and one with the panes +/// kept at query time (B3): 136. #[test] fn stage2_keeps_every_logical_candidate() { let (_, logical, physical) = pipeline(); - assert_eq!(physical.len(), 112); - let maintained: Vec<_> = physical - .iter() - .filter(|p| !p.stage2.materialization.is_empty()) - .collect(); - assert_eq!(maintained.len(), 24); - for p in maintained { - assert_eq!( - p.stage2.materialization, - "ingestion time: exact Sum ×6 panes" - ); - } + assert_eq!(physical.len(), 136); + let materialized: BTreeMap<_, usize> = + physical.iter().fold(BTreeMap::new(), |mut counts, p| { + *counts.entry(p.stage2.materialization.as_str()).or_default() += 1; + counts + }); + assert_eq!( + materialized, + BTreeMap::from([ + ("", 88), + ("ingestion time: exact Sum ×6 panes", 24), + ("query time, kept: exact Sum ×6 panes", 24), + ]) + ); let sources: BTreeSet<_> = physical.iter().map(|p| p.from_logical.as_str()).collect(); let logical_ids: BTreeSet<_> = logical.iter().map(|c| c.id.as_str()).collect(); assert_eq!(sources, logical_ids); @@ -865,7 +868,7 @@ fn stage2_preserves_logical_choices() { for p in &physical { let source = logical.iter().find(|c| c.id == p.from_logical).unwrap(); let (option, shared) = classify(&source.dag, &source.query_roots); - let maintained = !p.stage2.materialization.is_empty(); + let maintained = p.stage2.materialization.starts_with("ingestion time"); assert_eq!( classify(&p.dag, &p.query_roots), (option, shared && !maintained), @@ -884,8 +887,8 @@ fn stage2_exact_topk_is_sort_then_limit() { .iter() .filter(|p| classify(&p.dag, &p.query_roots).0 == Q2Option::Exact) .collect(); - // 24 logical, 8 of which also maintain Q2's sum panes. - assert_eq!(exact.len(), 32); + // 24 logical, 8 of which also maintain Q2's sum panes and 8 keep them. + assert_eq!(exact.len(), 40); for p in exact { let sort_then_limit = p.dag.edges.iter().any(|e| { relational(payload(&p.dag, e.producer)).as_deref() == Some("sort") @@ -946,7 +949,7 @@ fn stage2_summary_topk_is_build_then_estimate() { fn stage2_only_maintained_panes_run_at_ingestion_time() { let (_, _, physical) = pipeline(); for p in &physical { - let maintained = !p.stage2.materialization.is_empty(); + let maintained = p.stage2.materialization.starts_with("ingestion time"); let mut panes = 0; for n in &p.dag.nodes { if !runs_at_ingestion(p, n.id) { @@ -1023,18 +1026,26 @@ fn compile_in_runtime(p: &PhysicalCandidate) -> Result<(), String> { /// The physical planner compiles every candidate Stage 3 finds valid, and /// rejects the invalid ones (Count-Min over weights not proven non-negative) /// for the same reason Stage 3 gives. A candidate over Q2's 100 ms latency -/// bound compiles; the bound is Stage 3's alone. Returns the number of -/// candidates invalid for their weights. +/// bound compiles; the bound is Stage 3's alone. One keeping panes at query +/// time is rejected first for the executor's capability (Q56) and not +/// compared. Returns the number of candidates invalid for their weights. fn assert_runtime_agrees_with_stage3(workload: PlanningWorkload) -> usize { let (workload, _, physical) = pipeline_for(workload); let selection = stage3_select(&workload, &physical, executor_models()); let invalid: BTreeMap<_, _> = selection .rejected .iter() - .filter(|r| !r.valid && !r.reason.contains("latency bound")) + .filter(|r| { + !r.valid + && !r.reason.contains("latency bound") + && !r.reason.contains("query time, kept") + }) .map(|r| (r.id.as_str(), r.reason.as_str())) .collect(); - for p in &physical { + for p in physical + .iter() + .filter(|p| p.dag.nodes.iter().all(|n| !n.kept)) + { let compiled = compile_in_runtime(p); match invalid.get(p.id.as_str()) { None => compiled.unwrap(), @@ -1113,9 +1124,10 @@ fn stage3_selected_plan_compiles_in_the_physical_planner() { /// Deployment inputs (C2, added by the implementer): the reference /// executor's exported capabilities reject no candidate its physical planner -/// compiles, and planning with them selects what the unrestricted default -/// does, at the same costs (Example 1 needs nothing the executor lacks, and -/// both keep raw data, so no raw retention is priced). +/// compiles but those keeping panes at query time (B3), which it compiles as +/// recomputed at each evaluation but cannot keep (Q56). Planning with them +/// selects what the unrestricted default does, at the same costs for every +/// other candidate (both keep raw data, so no raw retention is priced). #[test] fn executor_capabilities_accept_every_compiled_candidate_and_keep_the_selection() { let (workload, _, physical) = pipeline(); @@ -1126,7 +1138,14 @@ fn executor_capabilities_accept_every_compiled_candidate_and_keep_the_selection( if compile_in_runtime(p).is_ok() { compiled += 1; if let Some(r) = executor.rejected.iter().find(|r| r.id == p.id) { - assert!(!r.reason.contains("deployment"), "{}: {}", p.id, r.reason); + let kept = p.dag.nodes.iter().any(|n| n.kept); + assert_eq!( + r.reason.contains("deployment"), + kept, + "{}: {}", + p.id, + r.reason + ); } } } @@ -1138,7 +1157,9 @@ fn executor_capabilities_accept_every_compiled_candidate_and_keep_the_selection( .map(|(id, c)| (id.clone(), c.total)) .collect() }; - assert_eq!(totals(&executor), totals(&default)); + let mut default_totals = totals(&default); + default_totals.retain(|id, _| executor.costs.contains_key(id)); + assert_eq!(totals(&executor), default_totals); } // ── Stage 3 ────────────────────────────────────────────────────────────── @@ -1205,7 +1226,8 @@ fn stage3_rejects_candidates_over_the_latency_bound() { family: FieldDataType::Sketch(kind, _), .. }) if *kind.algorithm() == SketchAlgorithm::CountSketchWithHeap) }); - if count_sketch { + // A kept candidate is rejected first for the executor's capability. + if count_sketch && !p.dag.nodes.iter().any(|n| n.kept) { assert!(over.contains(p.id.as_str()), "{}", p.id); } } diff --git a/crates/integration-tests/tests/planner_layering_example3.rs b/crates/integration-tests/tests/planner_layering_example3.rs index 92cf7df80..42aaed822 100644 --- a/crates/integration-tests/tests/planner_layering_example3.rs +++ b/crates/integration-tests/tests/planner_layering_example3.rs @@ -327,53 +327,13 @@ fn stage1_b_pass1_offers_exact_and_kll() { // ── Pattern B: window composition ──────────────────────────────────────── -/// Each Pass 1 option gets three window forms: none, a 5-min sliding window with a 1-min slide, and 1-min tumbling windows. -#[test] -#[ignore = "needs Pass 2 window composition (#580): sliding windows; the tumbling part passes in stage1_b_window_composition_adds_tumbling_per_option"] -fn stage1_b_window_composition_adds_sliding_and_tumbling_per_option() { - let run = run_b(); - let summaries: BTreeSet<_> = options(&run, 0) - .into_iter() - .filter(|o| o != "exact") - .collect(); - let found: BTreeSet<_> = run - .logical - .iter() - .flat_map(windowed_builds) - .map(|(_, a, f, _)| (format!("{a:?}"), f)) - .collect(); - let forms = [ - WindowForm::None, - WindowForm::Sliding { - length_ms: PATTERN_B_WINDOW_MS, - slide_ms: PATTERN_B_INTERVAL_MS, - }, - WindowForm::Tumbling { - length_ms: PATTERN_B_INTERVAL_MS, - }, - ]; - for option in &summaries { - for form in forms { - assert!(found.contains(&(option.clone(), form)), "{option} {form:?}"); - } - } -} - -/// Window parameters are legal: L divides W, s divides L and the evaluation interval, a tumbling length divides both. +/// Window parameters are legal: a tumbling length divides the window and the evaluation interval. #[test] fn stage1_b_window_parameters_are_legal() { let (w, every) = (PATTERN_B_WINDOW_MS, PATTERN_B_INTERVAL_MS); for c in &run_b().logical { for (_, _, form, _) in windowed_builds(c) { match form { - WindowForm::Sliding { - length_ms, - slide_ms, - } => { - assert_eq!(w % length_ms, 0, "{}: L | W", c.id); - assert_eq!(length_ms % slide_ms, 0, "{}: s | L", c.id); - assert_eq!(every % slide_ms, 0, "{}: s | interval", c.id); - } WindowForm::Tumbling { length_ms } => { assert_eq!(w % length_ms, 0, "{}: length | W", c.id); assert_eq!(every % length_ms, 0, "{}: length | interval", c.id); @@ -387,47 +347,13 @@ fn stage1_b_window_parameters_are_legal() { } } -/// A sliding window with L = W reads one completed window (no merge); tumbling windows merge W / length of them. -#[test] -#[ignore = "needs Pass 2 window composition (#580): sliding windows (the form without a merge); tumbling merges pass in stage1_b_tumbling_merges_five_panes_before_the_estimate"] -fn stage1_b_merge_only_where_the_window_form_needs_it() { - let run = run_b(); - let mut seen = BTreeSet::new(); - for c in &run.logical { - for (build, _, form, _) in windowed_builds(c) { - let merged = estimates_of(&c.dag, build).iter().any(|(e, _)| { - c.dag.producers(*e).into_iter().any(|p| { - matches!( - c.dag.payload(p), - Operator::ASAP(ASAPOp::SummaryMerge { .. }) - ) - }) - }); - assert_eq!( - merged, - needs_merge(form, PATTERN_B_WINDOW_MS), - "{}: {form:?}", - c.id - ); - if form != WindowForm::None { - seen.insert(merged); - } - } - } - assert_eq!( - seen, - BTreeSet::from([false, true]), - "both a sliding and a tumbling candidate" - ); -} - /// A window form that merges is used only with a summary whose states merge (KLL, DDSketch). #[test] fn stage1_window_merges_use_mergeable_summaries() { - for (run, window) in [(run_a(), 5 * YEAR_MS), (run_b(), PATTERN_B_WINDOW_MS)] { + for run in [run_a(), run_b()] { for c in &run.logical { for (_, algorithm, form, _) in windowed_builds(c) { - if needs_merge(form, window) { + if needs_merge(form) { assert!( matches!(algorithm, SketchAlgorithm::Kll | SketchAlgorithm::DDSketch), "{}: {algorithm:?} {form:?}", @@ -557,7 +483,8 @@ fn stage3_b_selects_cheapest_valid() { /// finds no tumbling candidate inaccurate. Rebuilding all five panes at /// every evaluation takes 310 ms of query-time work, over the 200 ms latency /// bound (S6); with the panes maintained at ingestion time, only the merge -/// and the estimate remain and the candidate is valid and priced. +/// and the estimate remain and the candidate is valid and priced. Panes +/// kept at query time (B3) need a capability the executor lacks. #[test] fn stage3_b_tumbling_candidates_are_valid() { let run = run_b(); @@ -574,6 +501,14 @@ fn stage3_b_tumbling_candidates_are_valid() { } tumbling += 1; match p.stage2.materialization.as_str() { + m if m.starts_with("query time, kept") => assert!( + invalid + .get(p.id.as_str()) + .is_some_and(|r| r.contains("cannot keep query-time state")), + "{}: {:?}", + p.id, + invalid.get(p.id.as_str()) + ), "" => assert!( invalid .get(p.id.as_str()) @@ -593,7 +528,7 @@ fn stage3_b_tumbling_candidates_are_valid() { } } } - assert_eq!(tumbling, 4); + assert_eq!(tumbling, 6); } // ── Pattern B: runtime ─────────────────────────────────────────────────── diff --git a/crates/integration-tests/tests/planner_layering_example4.rs b/crates/integration-tests/tests/planner_layering_example4.rs index 7758c4d1f..fec554794 100644 --- a/crates/integration-tests/tests/planner_layering_example4.rs +++ b/crates/integration-tests/tests/planner_layering_example4.rs @@ -104,13 +104,6 @@ fn tumbling() -> Option { }) } -fn sliding() -> Option { - Some(WindowForm::Sliding { - length_ms: PATTERN_B_WINDOW_MS, - slide_ms: PATTERN_B_INTERVAL_MS, - }) -} - fn cost(run: &Run, id: &str) -> f64 { run.cost(id).unwrap_or_else(|| panic!("{id} is not priced")) } @@ -261,7 +254,6 @@ fn stage3_a_monthly_amortizes_ingestion_time_maintenance() { /// The 1-min tumbling KLL candidate yields B1 (ingestion time), B2 (not materialized) and B3 (query time, kept). #[test] -#[ignore = "needs Stage 2 query time, kept (B3); B1 and B2 alone pass in stage2_b_tumbling_kll_has_b1_and_b2"] fn stage2_b_tumbling_kll_has_three_materialization_options() { let found: BTreeSet<_> = options_of(&run_promql(&pattern_b()), tumbling(), 1) .into_keys() @@ -272,17 +264,6 @@ fn stage2_b_tumbling_kll_has_three_materialization_options() { ); } -/// B1 (ingestion time) and B2 (not materialized) are generated for the -/// tumbling KLL; B3 is not yet (added by the implementer, not part of the -/// spec). -#[test] -fn stage2_b_tumbling_kll_has_b1_and_b2() { - let found: BTreeSet<_> = options_of(&run_promql(&pattern_b()), tumbling(), 1) - .into_keys() - .collect(); - assert_eq!(found, BTreeSet::from([IngestionTime, NotMaterialized])); -} - /// B1 builds the tumbling KLLs at ingestion time and merges and estimates at query time. #[test] fn stage2_b_b1_builds_at_ingestion_and_merges_at_query_time() { @@ -310,7 +291,6 @@ fn stage2_b_b1_builds_at_ingestion_and_merges_at_query_time() { /// B3 runs nothing at ingestion time; it keeps the tumbling KLLs it builds at query time. #[test] -#[ignore = "needs Stage 2 query time, kept (B3)"] fn stage2_b_b3_keeps_query_time_windows() { let run = run_promql(&pattern_b()); let (id, _) = options_of(&run, tumbling(), 1)[&QueryTimeKept].clone(); @@ -319,16 +299,29 @@ fn stage2_b_b3_keeps_query_time_windows() { p.dag.nodes.iter().all(|n| !runs_at_ingestion(p, n.id)), "{id}" ); + let kept: Vec<_> = p.dag.nodes.iter().filter(|n| n.kept).collect(); + assert_eq!(kept.len(), 5, "{id}: the five panes are kept"); + for n in kept { + assert_eq!( + window_form(&p.dag, n.id), + WindowForm::Tumbling { + length_ms: PATTERN_B_INTERVAL_MS + } + ); + } } -/// The sliding-window KLL is kept from ingestion time or from query time; not materializing it is the no-window plan. +/// The executor cannot keep query-time state (Q56), so Stage 3 rejects B3 +/// on its capabilities, with the reason. #[test] -#[ignore = "needs Pass 2 window composition (#580): sliding windows"] -fn stage2_b_sliding_kll_has_two_materialization_options() { - let found: BTreeSet<_> = options_of(&run_promql(&pattern_b()), sliding(), 1) - .into_keys() - .collect(); - assert_eq!(found, BTreeSet::from([IngestionTime, QueryTimeKept])); +fn stage3_b_executor_rejects_b3() { + let run = run_promql(&pattern_b()); + let (id, _) = options_of(&run, tumbling(), 1)[&QueryTimeKept].clone(); + let reason = run.invalid()[id.as_str()]; + assert!( + reason.contains("cannot keep query-time state across evaluations"), + "{id}: {reason}" + ); } // Which of B1 and B2 is cheaper depends on the workload and the deployment, @@ -434,3 +427,42 @@ fn stage3_b_panes_smaller_than_their_raw_data_win() { ); assert_eq!(run.selection.selected, options[&IngestionTime].0); } + +// B3 (query time, kept) builds only the newest pane at each evaluation, from +// one pane width of raw data, and keeps the N − 1 older panes. Per +// evaluation it does what B1 does at ingestion time, so the choice is about +// retention (Q59): B3 keeps N − 1 panes and one pane of raw data, B1 keeps +// N + 1 panes, B2 keeps all N panes' raw data. Sampled every 7.5 s, a 10-min +// pane covers 80 samples per series (1280 bytes), a little more than its KLL +// (1024 bytes): B3 keeps less than either. + +/// Plans `workload` on the executor without raw data retention, but able to +/// keep query-time state across evaluations. +fn run_keeping_query_time_state(workload: &PlanningWorkload) -> Run { + let capabilities = DeploymentCapabilities { + raw_data_retained: false, + query_time_retention: true, + ..asap_executor::capabilities() + }; + let models = PlanningModels::builtin().with_capabilities(&capabilities); + run_stages_with(workload, lower_promql(workload), models) +} + +/// On a deployment that can keep query-time state, B3 is priced, and where +/// a pane's raw data is a little larger than its KLL it keeps the least, so +/// the planner selects it. +#[test] +fn stage3_b_kept_panes_win_when_the_deployment_can_keep_them() { + let run = run_keeping_query_time_state(&pattern_b_variant(1_000, 7_500, 60, 10)); + let options = options_of( + &run, + Some(WindowForm::Tumbling { + length_ms: 10 * MINUTE_MS, + }), + 1, + ); + let b3 = cost(&run, &options[&QueryTimeKept].0); + let (b1, b2) = b1_b2(&run, 10); + assert!(b3 < b1 && b3 < b2, "B3 {b3} vs B1 {b1}, B2 {b2}"); + assert_eq!(run.selection.selected, options[&QueryTimeKept].0); +} diff --git a/crates/physical-optimizer/src/implementation/physical_candidates.rs b/crates/physical-optimizer/src/implementation/physical_candidates.rs index 4e1f8fa2e..2118f1286 100644 --- a/crates/physical-optimizer/src/implementation/physical_candidates.rs +++ b/crates/physical-optimizer/src/implementation/physical_candidates.rs @@ -1,7 +1,7 @@ //! #509 Stage 2: physical operator implementation of one logical candidate, //! and its materialization choices ([`crate::materialization`]). Each -//! logical candidate yields one physical candidate per down-closed set of -//! ingestion-time summaries, all query time first. +//! logical candidate yields one physical candidate per choice of +//! ingestion-time (down-closed) and kept summaries, all query time first. //! //! The runtime has one implementation per logical operator except exact //! top-k, which it cannot run as `Aggregate{[TopK]}`. Stage 2 records that @@ -9,7 +9,7 @@ //! per-group limit, the shape the PromQL frontend uses for generic `topk`. //! A summary needs no rewrite: `SummaryAgg` → `SummaryEstimate` already is //! build → estimate. -use std::collections::{BTreeSet, HashMap}; +use std::collections::{HashMap, HashSet}; use std::rc::Rc; use asap_types::ir::operator::{AggIntent, Reduction}; @@ -27,7 +27,7 @@ use asap_types::ir::{ use asap_types::workload::{DataWorkload, RootDemand}; use thiserror::Error; -use crate::materialization::{MaterializationSpace, MAX_PHYSICAL_PER_LOGICAL}; +use crate::materialization::{Choice, Choices, MaterializationSpace, MAX_PHYSICAL_PER_LOGICAL}; /// One Stage 2 candidate, derived from exactly one Stage 1 candidate. /// `roots` are the timed operator roots (one per query, in workload order) @@ -37,8 +37,9 @@ pub struct PhysicalCandidate { pub id: String, pub from_logical: String, pub label: String, - /// Which summaries run at ingestion time, e.g. "ingestion time: Kll ×5 - /// panes"; empty when everything runs at query time. + /// Which summaries run at ingestion time or are kept, e.g. "ingestion + /// time: Kll ×5 panes" or "query time, kept: Kll ×5 panes"; empty when + /// everything runs at query time, recomputed at each evaluation. pub materialization: String, pub roots: Vec>, pub dag: PhysicalASAPDAG, @@ -69,8 +70,8 @@ pub enum Stage2Error { } /// Implement every operator of one logical candidate and enumerate its -/// materialization choices: one candidate per down-closed set of -/// ingestion-time summaries, all query time first. `id` and `label` are left +/// materialization choices: one candidate per choice of ingestion-time +/// (down-closed) and kept summaries, all query time first. `id` and `label` are left /// empty for the caller to name. Sharing between `roots` is preserved: one /// memo serves the whole workload, and a node shared by an ingestion-time and /// a query-time consumer is copied per phase. @@ -78,8 +79,8 @@ pub enum Stage2Error { /// `demand[i]` is the demand of `roots[i]`. Above /// [`MAX_PHYSICAL_PER_LOGICAL`] choices, the choices are searched greedily /// by `score` (lower is better; `None`: not admissible): starting from all -/// query time, move the unit whose move improves the score most, until none -/// does. The candidates on that path are returned and flagged not +/// query time, move the unit (to ingestion time or kept) whose move improves +/// the score most, until none does. The candidates on that path are returned and flagged not /// exhaustive. pub fn stage2_physical( from_logical: &str, @@ -95,10 +96,10 @@ pub fn stage2_physical( .collect::, _>>()?; reject_maintained_populations(&implemented)?; let space = MaterializationSpace::new(&implemented, demand, data); - let build = |set: &BTreeSet| materialize(from_logical, &implemented, &space, set); + let build = |set: &Choices| materialize(from_logical, &implemented, &space, set); // All query time must build; an ingestion-time choice that the timing // rules reject is not a candidate. - let base = build(&BTreeSet::new())?; + let base = build(&Choices::new())?; if let Some(sets) = space.down_closed_sets(MAX_PHYSICAL_PER_LOGICAL) { let mut candidates = vec![base]; candidates.extend(sets.iter().skip(1).filter_map(|set| build(set).ok())); @@ -107,15 +108,16 @@ pub fn stage2_physical( exhaustive: true, }); } - let mut set = BTreeSet::new(); + let mut set = Choices::new(); let mut best = score(&base); let mut candidates = vec![base]; loop { let step = (0..space.units.len()) - .filter(|&u| space.can_add(&set, u)) - .filter_map(|u| { + .flat_map(|u| [(u, Choice::IngestionTime), (u, Choice::Kept)]) + .filter(|&(u, choice)| space.can_choose(&set, u, choice)) + .filter_map(|(u, choice)| { let mut next = set.clone(); - next.insert(u); + next.insert(u, choice); let candidate = build(&next).ok()?; let value = score(&candidate)?; Some((value, next, candidate)) @@ -135,12 +137,13 @@ pub fn stage2_physical( }) } -/// Time the implemented roots with the summaries of `set` at ingestion time. +/// Time the implemented roots with the summaries of `set` at ingestion time +/// or kept, and mark the kept ones in the exported DAG. fn materialize( from_logical: &str, implemented: &[Rc], space: &MaterializationSpace, - set: &BTreeSet, + set: &Choices, ) -> Result { let (roots, assignment): (Vec<_>, MaterializationAssignment) = split_shared_by_phase(implemented, &space.assignment(set)); @@ -149,10 +152,24 @@ fn materialize( .iter() .map(|root| apply_materialization_timings(root, &assignment, &mut timing)) .collect::, _>>()?; - let dag = compile_physical_asap_workload_with_node_ids(&timed)?.dag; + let compiled = compile_physical_asap_workload_with_node_ids(&timed)?; + let kept: HashSet<_> = roots + .iter() + .flat_map(OperatorNode::reachable) + .filter(|node| assignment.is_kept(node)) + .filter_map(|node| compiled.node_ids.node_id(timing.timed(&node)?)) + .collect(); + let mut dag = compiled.dag; + for node in &mut dag.nodes { + node.kept = kept.contains(&node.id); + } // A summary over query-time work stays at query time whatever the // assignment says; such a set is not a distinct candidate. - let assigned: usize = set.iter().map(|&u| space.units[u].summaries.len()).sum(); + let assigned: usize = set + .iter() + .filter(|(_, choice)| **choice == Choice::IngestionTime) + .map(|(&u, _)| space.units[u].summaries.len()) + .sum(); let maintained = dag .nodes .iter() diff --git a/crates/physical-optimizer/src/materialization.rs b/crates/physical-optimizer/src/materialization.rs index e9e5a09db..133336720 100644 --- a/crates/physical-optimizer/src/materialization.rs +++ b/crates/physical-optimizer/src/materialization.rs @@ -1,6 +1,7 @@ //! #509 Stage 2 materialization: for each summary state of one logical //! candidate, whether it is computed at query time (not materialized, the -//! default) or maintained at ingestion time. +//! default), maintained at ingestion time, or, for tumbling panes, computed +//! at query time and kept across evaluations. //! //! **Eligibility (S4).** A `SummaryAgg` may run at ingestion time when //! @@ -16,6 +17,14 @@ //! A summary over a merge of panes reads a window that slides with the //! evaluation; it is not maintainable and stays at query time. //! +//! **Query time, kept (Example 4, B3).** A tumbling pane whose roots all +//! repeat at a fixed interval equal to the pane width may instead be built +//! at query time and kept: each evaluation builds the newest pane from its +//! width of raw data, merges it with the panes kept from earlier +//! evaluations, then keeps it and drops the oldest. This needs neither +//! arriving data nor predictability; the deployment must be able to keep +//! query-time state (Stage 3 checks it). +//! //! **Units.** The panes merged by one `SummaryMerge` are decided together: //! a pane chain is maintained as one stream of panes, and a mixed chain is //! never cheaper. Panes shared by two merges join both chains into one unit. @@ -23,13 +32,14 @@ //! **Down-closed sets.** Everything upstream of an ingestion-time node also //! runs at ingestion time (#509), so a unit is at ingestion time only if //! every unit below it is. [`MaterializationSpace::down_closed_sets`] -//! enumerates exactly those sets, the empty set (all query time) first. +//! enumerates exactly those choices, each unit not materialized, at +//! ingestion time or kept, the empty choice (all query time) first. //! //! **Not materialized for several consumers (Q44, Example 4 A3)** would //! duplicate a shared sub-DAG per consuming query. It is not generated yet: //! a shared query-time node is computed once per evaluation for all its //! consumers. -use std::collections::{BTreeSet, HashMap, HashSet}; +use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet}; use std::rc::Rc; use asap_types::ir::properties::ExecutionTiming; @@ -50,8 +60,24 @@ pub struct Unit { pub summaries: Vec>, /// E.g. "Kll ×5 panes" or "exact Sum". pub label: String, + /// The unit may run at ingestion time. + pub ingestion: bool, + /// The unit may be kept at query time (tumbling panes only). + pub kept: bool, +} + +/// How a unit is materialized; a unit absent from a [`Choices`] is not. +#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] +pub enum Choice { + /// Maintained at ingestion time. + IngestionTime, + /// Built at query time and kept across evaluations (B3). + Kept, } +/// One materialization choice per unit index. +pub type Choices = BTreeMap; + /// The materialization choices of one logical candidate. #[derive(Debug, Clone)] pub struct MaterializationSpace { @@ -68,12 +94,10 @@ impl MaterializationSpace { units: Vec::new(), below: Vec::new(), }; - if !matches!( + let arriving = matches!( data.arrival, DataArrival::ContinuouslyIngesting | DataArrival::Mixed - ) { - return empty; - } + ); // Every summary, with the roots reaching it, in discovery order. let mut summaries: Vec> = Vec::new(); let mut reaching: HashMap<*const OperatorNode, BTreeSet> = HashMap::new(); @@ -103,25 +127,35 @@ impl MaterializationSpace { .flat_map(|merge| merge.children()) .map(Rc::as_ptr) .collect(); - let eligible: Vec = summaries + // Per summary: (may run at ingestion time, may be kept). + let options: Vec<(bool, bool)> = summaries .iter() .map(|summary| { let roots: Vec<&RootDemand> = reaching[&Rc::as_ptr(summary)] .iter() .filter_map(|&r| demand.get(r)) .collect(); - roots.len() == reaching[&Rc::as_ptr(summary)].len() + let all_roots = roots.len() == reaching[&Rc::as_ptr(summary)].len(); + let pane = panes.contains(&Rc::as_ptr(summary)); + let window = window_of(summary); + let ingestion = arriving + && all_roots && roots.iter().all(|d| repeats_predictably(d)) && !forces_query_time(summary) - && match window_of(summary) { + && match window { Window::Fixed { length_ms } => { - panes.contains(&Rc::as_ptr(summary)) - || roots.iter().all(|d| fixed_window_fits(d, length_ms)) + pane || roots.iter().all(|d| fixed_window_fits(d, length_ms)) } Window::None | Window::Sliding => false, - } + }; + let kept = pane + && all_roots + && matches!(window, Window::Fixed { length_ms } + if roots.iter().all(|d| evaluates_every(d, length_ms))); + (ingestion, kept) }) .collect(); + let eligible: Vec = options.iter().map(|&(i, k)| i || k).collect(); let index: HashMap<*const OperatorNode, usize> = summaries .iter() .enumerate() @@ -173,13 +207,23 @@ impl MaterializationSpace { units.push(Unit { summaries: Vec::new(), label: String::new(), + ingestion: true, + kept: true, }); members.push(Vec::new()); units.len() - 1 }); units[u].summaries.push(Rc::clone(&summaries[i])); + units[u].ingestion &= options[i].0; + units[u].kept &= options[i].1; members[u].push(i); } + // A chain whose members allow different options has none in common. + let (mut units, members): (Vec, Vec>) = units + .into_iter() + .zip(members) + .filter(|(unit, _)| unit.ingestion || unit.kept) + .unzip(); for (unit, members) in units.iter_mut().zip(&members) { let name = family_name(&summaries[members[0]]); unit.label = if members @@ -214,14 +258,25 @@ impl MaterializationSpace { Self { units, below } } - /// Whether `unit` may join `set` with the set staying down-closed. - pub fn can_add(&self, set: &BTreeSet, unit: usize) -> bool { - !set.contains(&unit) && self.below[unit].is_subset(set) + /// Whether `unit`, not yet materialized in `choices`, may take + /// `choice` with the ingestion-time units staying down-closed. + pub fn can_choose(&self, choices: &Choices, unit: usize, choice: Choice) -> bool { + !choices.contains_key(&unit) + && match choice { + Choice::IngestionTime => { + self.units[unit].ingestion + && self.below[unit] + .iter() + .all(|v| choices.get(v) == Some(&Choice::IngestionTime)) + } + Choice::Kept => self.units[unit].kept, + } } - /// Every down-closed set of units, smallest first (the empty set, all - /// query time, is first); `None` when there are more than `max`. - pub fn down_closed_sets(&self, max: usize) -> Option>> { + /// Every choice of materialization per unit whose ingestion-time units + /// are down-closed, fewest materialized units first (the empty choice, + /// all query time, is first); `None` when there are more than `max`. + pub fn down_closed_sets(&self, max: usize) -> Option> { // Units bottom-up, so a unit is decided after every unit below it. let mut order: Vec = Vec::new(); while order.len() < self.units.len() { @@ -236,15 +291,19 @@ impl MaterializationSpace { "units below one another form no cycle" ); } - let mut sets = vec![BTreeSet::new()]; + let mut sets = vec![Choices::new()]; for u in order { let additions: Vec<_> = sets .iter() - .filter(|set| self.below[u].is_subset(set)) - .map(|set| { - let mut next = set.clone(); - next.insert(u); - next + .flat_map(|set| { + [Choice::IngestionTime, Choice::Kept] + .into_iter() + .filter(|&choice| self.can_choose(set, u, choice)) + .map(move |choice| { + let mut next = set.clone(); + next.insert(u, choice); + next + }) }) .collect(); sets.extend(additions); @@ -256,24 +315,41 @@ impl MaterializationSpace { Some(sets) } - /// The assignment putting the summaries of `set` at ingestion time. - pub fn assignment(&self, set: &BTreeSet) -> asap_types::ir::MaterializationAssignment { + /// The assignment putting the summaries of `choices` at ingestion time, + /// or keeping them at query time. + pub fn assignment(&self, choices: &Choices) -> asap_types::ir::MaterializationAssignment { let mut assignment = asap_types::ir::MaterializationAssignment::all_query_time(); - for &u in set { + for (&u, choice) in choices { for summary in &self.units[u].summaries { - assignment.set(summary, ExecutionTiming::IngestionTime); + match choice { + Choice::IngestionTime => { + assignment.set(summary, ExecutionTiming::IngestionTime) + } + Choice::Kept => assignment.set_kept(summary), + } } } assignment } - /// E.g. "ingestion time: Kll ×5 panes"; empty for the empty set. - pub fn label(&self, set: &BTreeSet) -> String { - if set.is_empty() { - return String::new(); - } - let units: Vec<_> = set.iter().map(|&u| self.units[u].label.as_str()).collect(); - format!("ingestion time: {}", units.join(", ")) + /// E.g. "ingestion time: Kll ×5 panes" or "query time, kept: Kll ×5 + /// panes"; empty for the empty choice. + pub fn label(&self, choices: &Choices) -> String { + [ + (Choice::IngestionTime, "ingestion time"), + (Choice::Kept, "query time, kept"), + ] + .into_iter() + .filter_map(|(want, name)| { + let units: Vec<_> = choices + .iter() + .filter(|(_, choice)| **choice == want) + .map(|(&u, _)| self.units[u].label.as_str()) + .collect(); + (!units.is_empty()).then(|| format!("{name}: {}", units.join(", "))) + }) + .collect::>() + .join("; ") } } @@ -282,6 +358,18 @@ fn repeats_predictably(demand: &RootDemand) -> bool { && matches!(demand.predictability, Predictability::Predictable { .. }) } +/// Evaluations come every `width_ms`, so each builds one new pane of that +/// width. +fn evaluates_every(demand: &RootDemand, width_ms: u64) -> bool { + matches!( + demand.recurrence, + QueryRecurrence::Repeated( + RepeatedDemand::FixedInterval(interval) + | RepeatedDemand::FixedIntervalAt { interval, .. } + ) if u64::from(interval.0) == width_ms + ) +} + /// One window per evaluation, phase known, and no overlap between /// successive evaluations' windows. fn fixed_window_fits(demand: &RootDemand, length_ms: u64) -> bool { @@ -528,9 +616,10 @@ mod tests { /// Panes of a query repeating every minute over arriving data give a /// second candidate that builds all five panes at ingestion time and - /// merges them at query time (Example 4, B1). + /// merges them at query time (Example 4, B1), and a third that builds + /// them at query time and keeps them (B3). #[test] - fn tumbling_panes_can_run_at_ingestion_time() { + fn tumbling_panes_can_run_at_ingestion_time_or_be_kept() { let demand = [every(60_000)]; let roots = roots( &[(P99_5M, P99)], @@ -539,9 +628,18 @@ mod tests { ); let out = stage2(&roots, &demand, &ingesting()); assert!(out.exhaustive); - let [all_query, maintained] = &out.candidates[..] else { - panic!("two candidates: {:?}", out.candidates.len()) + let [all_query, maintained, kept] = &out.candidates[..] else { + panic!("three candidates: {:?}", out.candidates.len()) }; + assert!(all_query.dag.nodes.iter().all(|n| !n.kept)); + assert!(maintained.dag.nodes.iter().all(|n| !n.kept)); + assert_eq!(kept.materialization, "query time, kept: DDSketch ×5 panes"); + assert!(timings(kept, |_| true) + .iter() + .all(|t| *t == ExecutionTiming::QueryTime)); + let kept_nodes: Vec<_> = kept.dag.nodes.iter().filter(|n| n.kept).collect(); + assert_eq!(kept_nodes.len(), 5); + assert!(kept_nodes.iter().all(|n| is_build(&n.payload))); assert!(timings(all_query, |_| true) .iter() .all(|t| *t == ExecutionTiming::QueryTime)); @@ -561,7 +659,8 @@ mod tests { } /// Ingestion time needs arriving data (`Unknown` counts as not - /// ingesting) and repeated, predictable roots. + /// ingesting) and repeated, predictable roots; keeping panes at query + /// time needs only repetition. #[test] fn ingestion_time_needs_arrival_and_predictable_repetition() { let demand = [every(60_000)]; @@ -570,22 +669,26 @@ mod tests { &demand, WindowForm::Tumbling { pane_ms: 60_000 }, ); + let labels = |demand: &[RootDemand], data: &DataWorkload| -> Vec { + stage2(&roots, demand, data) + .candidates + .into_iter() + .map(|c| c.materialization) + .collect() + }; + let kept_only = ["", "query time, kept: DDSketch ×5 panes"]; for arrival in [DataArrival::AtRest, DataArrival::Unknown] { let data = DataWorkload { arrival, ..Default::default() }; - assert_eq!( - stage2(&roots, &demand, &data).candidates.len(), - 1, - "{arrival:?}" - ); + assert_eq!(labels(&demand, &data), kept_only, "{arrival:?}"); } let mixed = DataWorkload { arrival: DataArrival::Mixed, ..Default::default() }; - assert_eq!(stage2(&roots, &demand, &mixed).candidates.len(), 2); + assert_eq!(labels(&demand, &mixed).len(), 3); let ad_hoc = RootDemand { predictability: Predictability::AdHoc, ..every(60_000) @@ -597,14 +700,26 @@ mod tests { }, ..every(60_000) }; - for demand in [ad_hoc, once] { - assert_eq!( - stage2(&roots, std::slice::from_ref(&demand), &ingesting()) - .candidates - .len(), - 1 - ); - } + assert_eq!(labels(&[ad_hoc], &ingesting()), kept_only); + assert_eq!(labels(&[once], &ingesting()), [""]); + } + + /// Keeping panes needs one new pane per evaluation: a 5-min window + /// every 2 min has 1-min panes, so it gets no kept option. + #[test] + fn kept_panes_need_one_new_pane_per_evaluation() { + let demand = [every(120_000)]; + let roots = roots( + &[(P99_5M, P99)], + &demand, + WindowForm::Tumbling { pane_ms: 60_000 }, + ); + let labels: Vec<_> = stage2(&roots, &demand, &ingesting()) + .candidates + .into_iter() + .map(|c| c.materialization) + .collect(); + assert_eq!(labels, ["", "ingestion time: DDSketch ×5 panes"]); } /// A whole window is maintainable only when each evaluation reads one @@ -647,8 +762,11 @@ mod tests { let sets = space.down_closed_sets(MAX_PHYSICAL_PER_LOGICAL).unwrap(); assert_eq!(sets.len(), 3, "{labels:?}"); for set in &sets { - for &u in set { - assert!(space.below[u].is_subset(set)); + for (&u, choice) in set { + assert_eq!(*choice, Choice::IngestionTime); + assert!(space.below[u] + .iter() + .all(|v| set.get(v) == Some(&Choice::IngestionTime))); } } // Over panes, the top-k sketch reads a sliding window: only the diff --git a/crates/plan-selection/src/lib.rs b/crates/plan-selection/src/lib.rs index a62209ee2..0d77fc763 100644 --- a/crates/plan-selection/src/lib.rs +++ b/crates/plan-selection/src/lib.rs @@ -19,7 +19,8 @@ //! Cost is per second of wall time (`docs/design_docs/proposals/stage3-cost-model.md`): //! an ingestion-time node over the ingestion rate, a query-time node per //! evaluation times the evaluation rate of the roots reaching it ([`RootDemand`]), -//! plus memory for ingestion-time state that query time reads. Prices come +//! plus memory for ingestion-time state that query time reads and for +//! tumbling panes kept across evaluations at query time. Prices come //! from [`crate::cost::analytical_cost::estimate_operator`] over edge //! statistics derived from the [`DataWorkload`] and a fixed default group //! count, weighted by [`Stage3Calibration`]; summary build and estimation are @@ -62,10 +63,8 @@ use asap_types::ir::NonASAPOp; use std::collections::{BTreeMap, HashMap}; use std::rc::Rc; +use asap_types::ir::physical_export::{ PhysicalASAPDAG, PhysicalASAPNodeId, PhysicalASAPOperatorPayload as Payload}; use asap_types::ir::operator::Reduction; -use asap_types::ir::physical_export::{ - PhysicalASAPDAG, PhysicalASAPNodeId, PhysicalASAPOperatorPayload as Payload, -}; use asap_types::ir::schema::{DataType, Schema}; use asap_types::ir::schema::{ FieldDataType, SketchAlgorithm, SketchParams, SketchStatistic, WeightDomain, @@ -1155,8 +1154,9 @@ pub fn plan_stages( } /// The first capability `candidate` needs that the deployment lacks, as a -/// reason: maintaining state at ingestion time, building a summary, or -/// reading a statistic out of one. +/// reason: maintaining state at ingestion time, keeping query-time state +/// across evaluations, building a summary, or reading a statistic out of +/// one. fn capability_violation( candidate: &PhysicalCandidate, capabilities: &DeploymentCapabilities, @@ -1170,6 +1170,11 @@ fn capability_violation( { return Some("deployment cannot maintain state at ingestion time".into()); } + if !capabilities.query_time_retention && candidate.dag.nodes.iter().any(|n| n.kept) { + return Some( + "deployment cannot keep query-time state across evaluations (query time, kept)".into(), + ); + } // Summaries first: a readout of a summary that cannot be built is moot. let reasons = |node: &Rc, readouts: bool| match &node.operator { Operator::ASAP(ASAPOp::SummaryAgg { family, .. }) if !readouts => { @@ -1398,30 +1403,44 @@ fn reaching_roots(dag: &PhysicalASAPDAG) -> HashMap Option { +/// A range feeding only kept panes (`roles`) is not read again. +fn scan_extent_ms( + dag: &PhysicalASAPDAG, + roles: &HashMap, + id: PhysicalASAPNodeId, + offset_ms: i64, +) -> Option { dag.edges .iter() .filter(|e| e.producer == id) + .filter(|e| { + !matches!( + roles.get(&e.consumer), + Some(PaneRole::Retained | PaneRole::FeedsRetained) + ) + }) .filter_map(|e| { let consumer = dag.nodes.iter().find(|n| n.id == e.consumer)?; match &consumer.payload { - Payload::NonASAP(NonASAPOp::TimeShift { shift, .. }) => { - scan_extent_ms(dag, consumer.id, offset_ms.saturating_add(shift.offset_ms)) - } - Payload::NonASAP(NonASAPOp::TimeRange { range, .. }) => { - Some((range.as_millis() as u64).saturating_add(offset_ms.max(0) as u64)) - } + Payload::NonASAP(NonASAPOp::TimeShift { shift }) => scan_extent_ms( + dag, + roles, + consumer.id, + offset_ms.saturating_add(shift.offset_ms), + ), + Payload::NonASAP(NonASAPOp::TimeRange { range, .. }) => Some((range.as_millis() as u64).saturating_add(offset_ms.max(0) as u64)), _ => None, } }) .max() } -/// The role of an ingestion-time node in a chain of tumbling panes. +/// The role of an ingestion-time or kept node in a chain of tumbling panes. #[derive(Debug, Clone, Copy, PartialEq, Eq)] enum PaneRole { - /// The pane being built: every arriving row lands in it. It retains - /// `panes` completed panes plus itself. + /// The pane being built: at ingestion time every arriving row lands in + /// it, and it retains `panes` completed panes plus itself; kept, each + /// evaluation builds it and keeps it with `panes − 1` older ones. Newest { panes: u64 }, /// An older pane: the newest pane of an earlier evaluation, kept. It is /// not built again. @@ -1430,10 +1449,10 @@ enum PaneRole { FeedsRetained, } -/// Ingestion-time panes merged by a `SummaryMerge`: pane `i` is pane 0 -/// shifted back by `i` widths, so at ingestion time the chain is one pane -/// built as rows arrive and kept for the later evaluations. The newest pane -/// is the one with the smallest shift. +/// Ingestion-time or kept panes merged by a `SummaryMerge`: pane `i` is +/// pane 0 shifted back by `i` widths, so the chain is one pane built (as +/// rows arrive, or when an evaluation reads it) and kept for the later +/// evaluations. The newest pane is the one with the smallest shift. fn pane_roles(dag: &PhysicalASAPDAG) -> HashMap { let nodes: HashMap<_, _> = dag.nodes.iter().map(|n| (n.id, n)).collect(); let producers = |id| { @@ -1442,13 +1461,14 @@ fn pane_roles(dag: &PhysicalASAPDAG) -> HashMap { .filter(move |e| e.consumer == id) .map(|e| e.producer) }; - let ingestion = |id: PhysicalASAPNodeId| !nodes[&id].output_state.timing.is_query_time(); + let materialized = + |id: PhysicalASAPNodeId| !nodes[&id].output_state.timing.is_query_time() || nodes[&id].kept; // The shift of a pane over `TimeRange` over `TimeShift`, else 0. let shift = |pane| { producers(pane) .flat_map(producers) .find_map(|id| match &nodes[&id].payload { - Payload::NonASAP(NonASAPOp::TimeShift { shift, .. }) => Some(shift.offset_ms), + Payload::NonASAP(NonASAPOp::TimeShift { shift }) => Some(shift.offset_ms), _ => None, }) .unwrap_or(0) @@ -1457,12 +1477,11 @@ fn pane_roles(dag: &PhysicalASAPDAG) -> HashMap { for merge in dag .nodes .iter() - .filter(|n| matches!(n.payload, Payload::ASAP(ASAPOp::SummaryMerge { .. }))) + .filter(|n| matches!(n.payload, Payload::ASAP(ASAPOp::SummaryMerge {}))) { let panes: Vec<_> = producers(merge.id) .filter(|&id| { - ingestion(id) - && matches!(nodes[&id].payload, Payload::ASAP(ASAPOp::SummaryAgg { .. })) + materialized(id) && matches!(nodes[&id].payload, Payload::ASAP(ASAPOp::SummaryAgg { .. })) }) .collect(); let Some(&newest) = panes.iter().min_by_key(|&&id| shift(id)) else { @@ -1487,10 +1506,10 @@ fn pane_roles(dag: &PhysicalASAPDAG) -> HashMap { roles.insert(pane, merged); } } - // Consumers first: an ingestion-time node whose consumers all are - // retained panes, or feed only those, does no work of its own. + // Consumers first: a node whose consumers all are retained panes, or + // feed only those, does no work of its own. for node in dag.nodes.iter().rev() { - if roles.contains_key(&node.id) || !ingestion(node.id) { + if roles.contains_key(&node.id) { continue; } let mut consumers = dag @@ -1516,8 +1535,9 @@ fn pane_roles(dag: &PhysicalASAPDAG) -> HashMap { /// exported children first, so each node's input statistics are known when /// it is reached. An ingestion-time node is priced over one second of /// ingested rows; a query-time node per evaluation, times its evaluation -/// rate. State an ingestion-time node keeps for query-time readers is also -/// charged per retained byte per second. +/// rate. State an ingestion-time node keeps for query-time readers, and the +/// older panes a kept chain keeps, are also charged per retained byte per +/// second; a kept chain builds only its newest pane at each evaluation. #[cfg(test)] fn price( dag: &PhysicalASAPDAG, @@ -1534,7 +1554,8 @@ struct Priced { /// The cost of one evaluation of each query-time node. per_evaluation: HashMap, /// Bytes retained across evaluations: ingestion-time state that query - /// time reads, and raw data retained for query-time scans. + /// time reads, kept query-time panes, and raw data retained for + /// query-time scans. retained_bytes: u64, } @@ -1548,7 +1569,11 @@ fn price_nodes( calibration: &Stage3Calibration, raw_bytes_per_sample: Option, ) -> Result { - let first = dag.roots.first().copied().unwrap_or(0); + let first = dag + .roots + .first() + .copied() + .unwrap_or(0); calibration.validate().map_err(|error| (first, error))?; let series = data .input_cardinality @@ -1570,7 +1595,7 @@ fn price_nodes( let reached = reaching_roots(dag); let nodes: HashMap<_, _> = dag.nodes.iter().map(|n| (n.id, n)).collect(); let roles = pane_roles(dag); - let raw_retention = raw_retention(dag, rows_per_ms, raw_bytes_per_sample); + let raw_retention = raw_retention(dag, &roles, rows_per_ms, raw_bytes_per_sample); let mut retained_bytes = 0u64; let mut output: HashMap = HashMap::new(); let mut per_node = BTreeMap::new(); @@ -1613,210 +1638,210 @@ fn price_nodes( } }; let groups = |reduction: &Reduction| bounded_groups(reduction, input.rows); - let (out, estimate, detail) = - match &node.payload { - Payload::NonASAP(operator) => match operator { - NonASAPOp::Scan { .. } => { - // At ingestion time, one second of arriving rows; at - // query time, as far back as the ranges reading it reach. - let span_ms = match ingestion { - true => 1_000, - false => scan_extent_ms(dag, node.id, 0).unwrap_or(DEFAULT_LOOKBACK_MS), - }; - let out = edge(scan_rows(rows_per_ms, span_ms)); - let estimate = estimate_operator( - PhysicalOperator::Scan, - OperatorStatistics::Scan { - edges: UnaryEdgeStatistics { - input: out, - output: out, - promql: None, - }, - source_read_bytes: out.bytes, - }, - ); - (out, estimate, format!("scan {} samples", out.rows)) - } - NonASAPOp::Aggregate { - reduction, - measures, - .. - } => { - let group_count = groups(reduction); - let keys = match reduction { - Reduction::Reduce(keys) => keys.keys().len() as u64, - _ => 1, - }; - let out = edge(group_count); - let estimate = estimate_operator( - PhysicalOperator::HashAggregate { - grouping_key_count: keys, - accumulator_count: measures.len().max(1) as u64, - }, - OperatorStatistics::HashAggregate { - edges: unary(out), - group_count, - key_bytes: 16 * keys, - accumulator_bytes_per_group: 8, - }, - ); - ( - out, - estimate, - format!( - "hash aggregate {} rows into {group_count} groups", - input.rows - ), - ) - } - NonASAPOp::Sort { - keys, partition_by, .. - } => { - let partitions = if partition_by.keys().is_empty() { - 1 - } else { - DEFAULT_GROUP_COUNT.min(input.rows.max(1)) - }; - let estimate = estimate_operator( - PhysicalOperator::InMemoryComparisonSort { - ordering_key_count: keys.len() as u64, - partitioned: partitions > 1, - }, - OperatorStatistics::InMemoryComparisonSort { - edges: unary(input), - input_partitioning: split(input, partitions), - }, - ); - ( - input, - estimate, - format!("sort {} rows in {partitions} partitions", input.rows), - ) - } - NonASAPOp::Limit { - n, - offset, - partition_by, - .. - } => { - let partitions = partition_count(!partition_by.keys().is_empty()); - let limit = n.map_or(u64::MAX, |n| (n as u64).saturating_mul(partitions)); - let offset = (*offset as u64).saturating_mul(partitions); - let out = edge(selected_rows(input.rows.saturating_sub(offset), limit)); - let estimate = estimate_operator( - PhysicalOperator::Limit { limit, offset }, - OperatorStatistics::Limit { edges: unary(out) }, - ); - (out, estimate, format!("limit to {} rows", out.rows)) - } - // At query time a range keeps only its own span of a longer - // scan: a filter on the timestamp. - NonASAPOp::TimeRange { range, .. } if !ingestion => { - let rows = (rows_per_ms * range.as_millis() as f64).round() as u64; - let out = edge(input.rows.min(rows.max(1))); - let estimate = estimate_operator( - PhysicalOperator::Filter { - predicate_operations_per_row: 1, - }, - OperatorStatistics::Filter { edges: unary(out) }, - ); - ( - out, - estimate, - format!("time range {range:?}: pass {} rows", out.rows), - ) - } - other => { - let estimate = estimate_operator( - PhysicalOperator::PassThrough, - OperatorStatistics::PassThrough { - edges: unary(input), + let (out, estimate, detail) = match &node.payload { + Payload::NonASAP(operator) => match operator { + NonASAPOp::Scan { .. } => { + // At ingestion time, one second of arriving rows; at + // query time, as far back as the ranges reading it reach. + let span_ms = match ingestion { + true => 1_000, + false => { + scan_extent_ms(dag, &roles, node.id, 0).unwrap_or(DEFAULT_LOOKBACK_MS) + } + }; + let out = edge(scan_rows(rows_per_ms, span_ms)); + let estimate = estimate_operator( + PhysicalOperator::Scan, + OperatorStatistics::Scan { + edges: UnaryEdgeStatistics { + input: out, + output: out, + promql: None, }, - ); - let name = match other { - NonASAPOp::TimeRange { range, .. } => format!("time range {range:?}"), - _ => "operator".into(), - }; - (input, estimate, format!("{name}: pass {} rows", input.rows)) - } - }, - Payload::ASAP(ASAPOp::SummaryAgg { - family, reduction, .. - }) => { + source_read_bytes: out.bytes, + }, + ); + (out, estimate, format!("scan {} samples", out.rows)) + } + NonASAPOp::Aggregate { + reduction, + measures, + .. + } => { let group_count = groups(reduction); - let (depth, state_bytes) = summary_shape(family); - let out = EdgeStatistics { - rows: group_count, - bytes: group_count * state_bytes, + let keys = match reduction { + Reduction::Reduce(keys) => keys.keys().len() as u64, + _ => 1, }; - let ops = input.rows as f64 * depth as f64; + let out = edge(group_count); + let estimate = estimate_operator( + PhysicalOperator::HashAggregate { + grouping_key_count: keys, + accumulator_count: measures.len().max(1) as u64, + }, + OperatorStatistics::HashAggregate { + edges: unary(out), + group_count, + key_bytes: 16 * keys, + accumulator_bytes_per_group: 8, + }, + ); ( out, - Ok(ResourceEstimate::new(ops, out.bytes, 0)), + estimate, format!( - "build {} into {group_count} states: {} rows x depth {depth}", - family_name(family), + "hash aggregate {} rows into {group_count} groups", input.rows ), ) } - Payload::ASAP(ASAPOp::SummaryEstimate { query, .. }) => { - let rows = match query { - // The logical result, as an exact Sort → Limit sizes it. - // Items are at most the series: a whole-expression - // sketch reads several samples per ranked item. - SketchStatistic::TopK { k } => { - let (summarized, grouped) = summarized_rows(dag, &output, node.id); - selected_rows( - summarized.min(shape.series), - (*k as u64).saturating_mul(partition_count(grouped)), - ) - } - _ => input.rows, + NonASAPOp::Sort { keys, partition_by } => { + let partitions = if partition_by.keys().is_empty() { + 1 + } else { + DEFAULT_GROUP_COUNT.min(input.rows.max(1)) }; - let out = edge(rows); + let estimate = estimate_operator( + PhysicalOperator::InMemoryComparisonSort { + ordering_key_count: keys.len() as u64, + partitioned: partitions > 1, + }, + OperatorStatistics::InMemoryComparisonSort { + edges: unary(input), + input_partitioning: split(input, partitions), + }, + ); ( - out, - Ok(ResourceEstimate::new(out.rows as f64, 0, 0)), - format!("estimate {} rows from {} states", out.rows, input.rows), + input, + estimate, + format!("sort {} rows in {partitions} partitions", input.rows), ) } - // One merge per input state. The output holds the union of the - // inputs' groups, bounded as one build over all their rows is, - // so readers see what they would see over the whole window. - Payload::ASAP(ASAPOp::SummaryMerge { .. }) => { - let merged: u64 = inputs.iter().map(|edge| edge.rows).sum(); - let reduction = dag.edges.iter().filter(|e| e.consumer == node.id).find_map( - |e| match &nodes[&e.producer].payload { - Payload::ASAP(ASAPOp::SummaryAgg { reduction, .. }) => Some(reduction), - _ => None, + NonASAPOp::Limit { + n, + offset, + partition_by, + } => { + let partitions = partition_count(!partition_by.keys().is_empty()); + let limit = n.map_or(u64::MAX, |n| (n as u64).saturating_mul(partitions)); + let offset = (*offset as u64).saturating_mul(partitions); + let out = edge(selected_rows(input.rows.saturating_sub(offset), limit)); + let estimate = estimate_operator( + PhysicalOperator::Limit { limit, offset }, + OperatorStatistics::Limit { edges: unary(out) }, + ); + (out, estimate, format!("limit to {} rows", out.rows)) + } + // At query time a range keeps only its own span of a longer + // scan: a filter on the timestamp. + NonASAPOp::TimeRange { range, .. } if !ingestion => { + let rows = (rows_per_ms * range.as_millis() as f64).round() as u64; + let out = edge(input.rows.min(rows.max(1))); + let estimate = estimate_operator( + PhysicalOperator::Filter { + predicate_operations_per_row: 1, }, + OperatorStatistics::Filter { edges: unary(out) }, ); - let rows = reduction.map_or(merged, |r| bounded_groups(r, merged)); - let out = EdgeStatistics { - rows, - bytes: rows * (input.bytes / input.rows.max(1)), - }; ( out, - Ok(ResourceEstimate::new(merged as f64, 0, 0)), - format!( - "merge {merged} states from {} inputs into {rows}", - inputs.len() - ), + estimate, + format!("time range {range:?}: pass {} rows", out.rows), ) } - Payload::ASAP(ASAPOp::FinalizeExactAccumulator { .. }) => ( - edge(input.rows), - Ok(ResourceEstimate::new(input.rows as f64, 0, 0)), - format!("finalize {} accumulators", input.rows), - ), - _ => ( - edge(input.rows), - Ok(ResourceEstimate::new(input.rows as f64, 0, 0)), - format!("{} rows", input.rows), - ), - }; + other => { + let estimate = estimate_operator( + PhysicalOperator::PassThrough, + OperatorStatistics::PassThrough { + edges: unary(input), + }, + ); + let name = match other { + NonASAPOp::TimeRange { range, .. } => format!("time range {range:?}"), + _ => "operator".into(), + }; + (input, estimate, format!("{name}: pass {} rows", input.rows)) + } + }, + Payload::ASAP(ASAPOp::SummaryAgg { + family, reduction, .. + }) => { + let group_count = groups(reduction); + let (depth, state_bytes) = summary_shape(family); + let out = EdgeStatistics { + rows: group_count, + bytes: group_count * state_bytes, + }; + let ops = input.rows as f64 * depth as f64; + ( + out, + Ok(ResourceEstimate::new(ops, out.bytes, 0)), + format!( + "build {} into {group_count} states: {} rows x depth {depth}", + family_name(family), + input.rows + ), + ) + } + Payload::ASAP(ASAPOp::SummaryEstimate { query }) => { + let rows = match query { + // The logical result, as an exact Sort → Limit sizes it. + // Items are at most the series: a whole-expression + // sketch reads several samples per ranked item. + SketchStatistic::TopK { k } => { + let (summarized, grouped) = summarized_rows(dag, &output, node.id); + selected_rows( + summarized.min(shape.series), + (*k as u64).saturating_mul(partition_count(grouped)), + ) + } + _ => input.rows, + }; + let out = edge(rows); + ( + out, + Ok(ResourceEstimate::new(out.rows as f64, 0, 0)), + format!("estimate {} rows from {} states", out.rows, input.rows), + ) + } + // One merge per input state. The output holds the union of the + // inputs' groups, bounded as one build over all their rows is, + // so readers see what they would see over the whole window. + Payload::ASAP(ASAPOp::SummaryMerge {}) => { + let merged: u64 = inputs.iter().map(|edge| edge.rows).sum(); + let reduction = dag + .edges + .iter() + .filter(|e| e.consumer == node.id) + .find_map(|e| match &nodes[&e.producer].payload { + Payload::ASAP(ASAPOp::SummaryAgg { reduction, .. }) => Some(reduction), + _ => None, + }); + let rows = reduction.map_or(merged, |r| bounded_groups(r, merged)); + let out = EdgeStatistics { + rows, + bytes: rows * (input.bytes / input.rows.max(1)), + }; + ( + out, + Ok(ResourceEstimate::new(merged as f64, 0, 0)), + format!( + "merge {merged} states from {} inputs into {rows}", + inputs.len() + ), + ) + } + Payload::ASAP(ASAPOp::FinalizeExactAccumulator {}) => ( + edge(input.rows), + Ok(ResourceEstimate::new(input.rows as f64, 0, 0)), + format!("finalize {} accumulators", input.rows), + ), + _ => ( + edge(input.rows), + Ok(ResourceEstimate::new(input.rows as f64, 0, 0)), + format!("{} rows", input.rows), + ), + }; let cost = estimate .and_then(|estimate| estimate.calibrated_cost(&resources)) .map_err(|error| (node.id, error))?; @@ -1858,17 +1883,46 @@ fn price_nodes( let roots = reached.get(&node.id).into_iter().flatten(); let rate = evaluation_rate(roots.filter_map(|&r| demand.get(r)), calibration.horizon_s) .map_err(|error| (node.id, error))?; - per_evaluation.insert(node.id, cost); - let detail = format!("{detail}; x {rate:.4} evaluations/s"); - match raw_retention.get(&node.id) { - Some(&bytes) => { - retained_bytes = retained_bytes.saturating_add(bytes); + match roles.get(&node.id) { + Some(PaneRole::Retained) => ( + 0.0, + "pane kept from an earlier evaluation; built and kept as the newest pane" + .to_string(), + ), + Some(PaneRole::FeedsRetained) => ( + 0.0, + "feeds only kept panes; done for the newest pane".to_string(), + ), + // Built from its width of raw data at each evaluation, then + // kept with the `panes − 1` older panes the next one reads. + Some(PaneRole::Newest { panes }) => { + per_evaluation.insert(node.id, cost); + let retained = (panes - 1) * out.rows * state_bytes(node); + retained_bytes = retained_bytes.saturating_add(retained); ( - cost * rate + calibration.cost_per_retained_byte_second * bytes as f64, - format!("{detail}; retains {bytes} bytes of raw data"), + cost * rate + calibration.cost_per_retained_byte_second * retained as f64, + format!( + "{detail}; x {rate:.4} evaluations/s; query time, newest of {panes} \ + panes, keeps {} older, retains {retained} bytes", + panes - 1 + ), ) } - None => (cost * rate, detail), + None => { + per_evaluation.insert(node.id, cost); + let detail = format!("{detail}; x {rate:.4} evaluations/s"); + match raw_retention.get(&node.id) { + Some(&bytes) => { + retained_bytes = retained_bytes.saturating_add(bytes); + ( + cost * rate + + calibration.cost_per_retained_byte_second * bytes as f64, + format!("{detail}; retains {bytes} bytes of raw data"), + ) + } + None => (cost * rate, detail), + } + } } }; output.insert(node.id, out); @@ -1909,6 +1963,7 @@ fn scan_rows(rows_per_ms: f64, span_ms: u64) -> u64 { /// queries is one node. fn raw_retention( dag: &PhysicalASAPDAG, + roles: &HashMap, rows_per_ms: f64, raw_bytes_per_sample: Option, ) -> HashMap { @@ -1919,10 +1974,13 @@ fn raw_retention( .iter() .filter(|n| { n.output_state.timing.is_query_time() - && matches!(n.payload, Payload::NonASAP(NonASAPOp::Scan { .. })) + && matches!( + n.payload, + Payload::NonASAP(NonASAPOp::Scan { .. }) + ) }) .map(|n| { - let span_ms = scan_extent_ms(dag, n.id, 0).unwrap_or(DEFAULT_LOOKBACK_MS); + let span_ms = scan_extent_ms(dag, roles, n.id, 0).unwrap_or(DEFAULT_LOOKBACK_MS); let rows = scan_rows(rows_per_ms, span_ms); (n.id, rows.saturating_mul(bytes_per_sample)) }) @@ -2686,7 +2744,10 @@ mod tests { } fn is_scan(payload: &Payload) -> bool { - matches!(payload, Payload::NonASAP(NonASAPOp::Scan { .. })) + matches!( + payload, + Payload::NonASAP(NonASAPOp::Scan { .. }) + ) } fn is_build(payload: &Payload) -> bool { @@ -2783,6 +2844,68 @@ mod tests { assert_eq!(ingestion.len(), 4, "{ingestion:#?}"); } + /// Kept at query time (B3, Q59), each evaluation builds the newest pane + /// from one pane width of raw data and keeps it with the 4 older panes + /// the next evaluation reads: the newest pane pays the build per + /// evaluation and the memory of 4 panes; the older panes and their + /// inputs cost nothing, and the scan reads one pane width. Without + /// `query_time_retention` the candidate is rejected. + #[test] + fn kept_panes_build_the_newest_and_retain_the_others() { + let (run, demand, data) = pattern_b(data(), None); + let enumeration = run.enumeration.as_ref().unwrap(); + let p = enumeration + .candidates + .iter() + .flat_map(|c| &c.physical) + .find(|p| p.materialization == "query time, kept: Kll ×5 panes") + .expect("kept KLL panes"); + let cost = &enumeration.selection.costs[&p.id]; + let builds: Vec<_> = p.dag.nodes.iter().filter(|n| n.kept).collect(); + assert_eq!(builds.len(), 5); + assert!(builds.iter().all(|n| is_build(&n.payload))); + let charged: Vec<_> = builds + .iter() + .filter(|n| cost.per_node[&n.id].cost > 0.0) + .collect(); + let [newest] = charged[..] else { + panic!("one charged pane: {}", charged.len()) + }; + let Payload::ASAP(ASAPOp::SummaryAgg { family, .. }) = &newest.payload else { + unreachable!() + }; + // data(): λ = 10 000 rows/s into 10 000 series; a 1-min pane is + // 600 000 rows, built once a minute. + let node = &cost.per_node[&newest.id]; + let retained = 4 * 10_000 * summary_shape(family).1; + let build = 600_000.0 * 1e-6 / 60.0; + assert!( + (node.cost - build - 1.25e-7 * retained as f64).abs() < 1e-9, + "{}: {}", + node.cost, + node.detail + ); + let scan = node_of(&p.dag, is_scan); + assert_eq!(cost.per_node[&scan.id].rows, 600_000); + let without = DeploymentCapabilities { + query_time_retention: false, + ..DeploymentCapabilities::UNRESTRICTED + }; + let selection = stage3_select( + std::slice::from_ref(p), + &demand, + &data, + PlanningModels::builtin().with_capabilities(&without), + ); + let Err(SelectionError::NoValidCandidate(rejected)) = selection else { + panic!("rejected") + }; + assert_eq!( + rejected[0].reason, + "deployment cannot keep query-time state across evaluations (query time, kept)" + ); + } + /// The latency check (S6) rejects a candidate whose query-time work in /// one evaluation, at one cost unit per ms, exceeds its query's bound, /// and names the query, the estimate and the bound. @@ -3173,7 +3296,7 @@ mod tests { .unwrap(); let invalid = reasons(&selection); for p in &all { - let maintained = !p.materialization.is_empty(); + let maintained = p.materialization.starts_with("ingestion time"); assert_eq!(invalid.contains_key(p.id.as_str()), maintained, "{}", p.id); if maintained { assert_eq!( @@ -3192,8 +3315,7 @@ mod tests { let (p, _) = maintained_panes(&run); let p = p.clone(); // data(): 10 000 series; the newest pane keeps itself and 5 others. - let Payload::ASAP(ASAPOp::SummaryAgg { family, .. }) = &node_of(&p.dag, is_build).payload - else { + let Payload::ASAP(ASAPOp::SummaryAgg { family, .. }) = &node_of(&p.dag, is_build).payload else { unreachable!() }; let retained = 6 * 10_000 * summary_shape(family).1; diff --git a/crates/types/src/ir/physical_export.rs b/crates/types/src/ir/physical_export.rs index c7749827d..4c5c349ea 100644 --- a/crates/types/src/ir/physical_export.rs +++ b/crates/types/src/ir/physical_export.rs @@ -63,6 +63,12 @@ pub struct PhysicalASAPDAGNode { pub payload: PhysicalASAPOperatorPayload, /// Phase is a placement choice for every operator, independent of payload kind. pub output_state: ExecutionDataState, + /// A query-time output kept across evaluations (#509 Example 4, B3): + /// a tumbling pane built once, when it is the newest, and read by the + /// later evaluations whose window still covers it. Set by Stage 2 + /// materialization; `false` (omitted) for every other node. + #[serde(default, skip_serializing_if = "std::ops::Not::not")] + pub kept: bool, pub output_schema: Schema, pub guarantee: Option, } @@ -407,6 +413,7 @@ pub fn compile_physical_asap_workload_with_node_ids( id, payload: flat_node.operator, output_state, + kept: false, output_schema: flat_node.schema, guarantee: flat_node.guarantee, }); diff --git a/crates/types/src/ir/properties/timing.rs b/crates/types/src/ir/properties/timing.rs index 83ccb8661..64afb80cb 100644 --- a/crates/types/src/ir/properties/timing.rs +++ b/crates/types/src/ir/properties/timing.rs @@ -35,7 +35,7 @@ //! | `MaintainPopulation.child` | Ingestion-time rows matching the population's input | //! | any `NonASAP` consumer | Rows (or exact-accumulator state for a projection-like operator) at the consumer's own timing; ingestion work never reads a query-time value | -use std::collections::HashMap; +use std::collections::{HashMap, HashSet}; use std::rc::Rc; use crate::ir::operator::asap::ASAPOp; @@ -56,6 +56,9 @@ use crate::ir::schema::{DataType, FieldDataType, Schema}; pub struct MaterializationAssignment { summary_timings: HashMap<*const OperatorNode, ExecutionTiming>, default_timing: ExecutionTiming, + /// Query-time states kept across evaluations (#509 Example 4, B3). The + /// timing stays query time; the export marks them kept. + kept: HashSet<*const OperatorNode>, } impl MaterializationAssignment { @@ -69,6 +72,7 @@ impl MaterializationAssignment { Self { summary_timings: HashMap::new(), default_timing: ExecutionTiming::IngestionTime, + kept: HashSet::new(), } } @@ -76,6 +80,15 @@ impl MaterializationAssignment { self.summary_timings.insert(Rc::as_ptr(summary), timing); } + /// Keep `summary`'s query-time state across evaluations. + pub fn set_kept(&mut self, summary: &Rc) { + self.kept.insert(Rc::as_ptr(summary)); + } + + pub fn is_kept(&self, summary: &Rc) -> bool { + self.kept.contains(&Rc::as_ptr(summary)) + } + pub fn summary_timing(&self, summary: &Rc) -> ExecutionTiming { self.summary_timings .get(&Rc::as_ptr(summary)) @@ -667,6 +680,9 @@ pub fn split_shared_by_phase( state .rekeyed .set(&out, state.assignment.summary_timing(node)); + if state.assignment.is_kept(node) { + state.rekeyed.set_kept(&out); + } } state.copies.insert(key, Rc::clone(&out)); out diff --git a/docs/design_docs/proposals/stage3-cost-model.md b/docs/design_docs/proposals/stage3-cost-model.md index 36297c65e..75c99f209 100644 --- a/docs/design_docs/proposals/stage3-cost-model.md +++ b/docs/design_docs/proposals/stage3-cost-model.md @@ -89,8 +89,9 @@ priced like 1/8 of a vCPU, the memory-to-core ratio of memory-optimized cloud instances (8 GB per vCPU): 125 CPU-ms per second for 10⁹ bytes, or 1.25e-7 per byte per second. -**What counts as retained.** Only ingestion-time state that a query-time node -reads: it lives between evaluations. Retained bytes are +**What counts as retained.** Ingestion-time state that a query-time node +reads, and panes kept at query time (below): both live between evaluations. +Retained bytes of ingestion-time state are ```text retained_bytes(n) = 2 · groups(n) · state_bytes(n) @@ -118,6 +119,26 @@ When panes are shared by windows of different lengths, the longest sets `N`. The merge and the estimate run at query time, per evaluation. Retention is in memory only (S3). +**Tumbling panes kept at query time (Example 4 B3, Q59).** Stage 2 may +instead build a repeating query's panes at query time and keep them across +evaluations (the physical node's `kept` flag). Each evaluation builds the +newest pane from `w` of raw data, merges it with the `N − 1` panes kept from +earlier evaluations, then keeps it and drops the oldest. So the newest pane +pays its build per evaluation, times the evaluation rate, and the memory of +the panes the next evaluation reads: + +```text +retained_bytes(newest) = (N − 1) · groups · state_bytes +``` + +The older panes, and the shifts and ranges that feed only them, cost +nothing; the scan reads, and when raw data is not kept anyway retains +(below), only `w`, not the whole lookback. Per-evaluation work, also for the +latency check, is the newest pane, the merge and the estimate. Retained +bytes count against the memory budget. Cold start, the first `N − 1` +evaluations before every pane is kept, is not priced. A deployment without +`query_time_retention` rejects the candidate (below). + ## Latency check A query's `response_latency` bound (S6) is checked against the query-time @@ -142,7 +163,7 @@ deployment exports its own set; the reference executor's is |---|---|---| | `summaries` | `None`: every summary | Summary families (exact kind or sketch algorithm) × instance layout (per group, or a Hydra kind), each with the readouts it supports (quantile, total count, item count, cardinality, top-k, L2, entropy) | | `ingestion_time` | `true` | Can maintain state at ingestion time | -| `query_time_retention` | `true` | Can keep query-time results across evaluations (Example 4, B3; no candidate needs it yet) | +| `query_time_retention` | `true` | Can keep query-time results across evaluations (Example 4, B3; the reference executor cannot yet) | | `memory_budget_bytes` | `None` | Most bytes a plan may retain across evaluations | | `raw_data_retained` | `true` | The deployment keeps the sources' raw data anyway | | `raw_bytes_per_sample` | 16 | An 8-byte timestamp and an 8-byte value, uncompressed | @@ -156,6 +177,8 @@ deployment lacks, before checking accuracy, with the first missing one: `SummaryEstimate` whose statistic the summary it reads does not list. * `deployment cannot maintain state at ingestion time`: any node at ingestion time when `ingestion_time` is false. +* `deployment cannot keep query-time state across evaluations (query time, + kept)`: any kept node when `query_time_retention` is false. * `retains N bytes across evaluations, over the deployment's memory budget of M bytes`: the retained bytes below exceed `memory_budget_bytes`. @@ -174,8 +197,8 @@ charge is on the scan node, so cost stays a sum over nodes; a scan shared by several queries is one node and pays once. A scan at ingestion time reads samples as they arrive and retains none: a plan whose raw input is maintained at ingestion time does not pay it. Retained bytes for the -memory budget are the ingestion-time state of the memory term plus, when -charged, this raw retention. +memory budget are the ingestion-time state and kept panes of the memory term +plus, when charged, this raw retention. ## Calibration @@ -280,9 +303,6 @@ every Count-Sketch + heap among them. * **Not materialized for several consumers (Q44, Example 4 A3).** Stage 2 would duplicate the sub-DAG per consuming query; it does not generate that option yet. -* **Query time, kept (Example 4 B3).** A pane built at query time and kept - for later evaluations is not offered; panes are rebuilt at query time or - maintained at ingestion time. * **Storage tier and retention (S3).** Retained state is priced as memory. Choosing disk versus memory and how long to keep state comes with panes. * **Calibration from measurements.** The coefficients and default statistics diff --git a/tools/dag-viewer/app.js b/tools/dag-viewer/app.js index 44fb66d90..cfd4ded30 100644 --- a/tools/dag-viewer/app.js +++ b/tools/dag-viewer/app.js @@ -65,7 +65,7 @@ items.push(['instances', summaryInstancesText(n.payload.grouping, n.payload.reduction)]); } if (d.rootFor && d.rootFor.length) items.push(['query root of', d.rootFor.join(', ')]); - if (d.timing) items.push(['runs at', formatTiming(d.timing)]); + if (d.timing) items.push(['runs at', formatTiming(d.timing, n.kept)]); if (n.output_state && n.output_state.primitive) items.push(['output primitive', compactWire(n.output_state.primitive)]); if (d.nodeCost) items.push(['Stage 3 cost', `${Number(d.nodeCost.cost.toFixed(4))} · ${d.nodeCost.detail || ''}`]); items.push(['coverage', n.coverage ? compactWire(n.coverage) : 'none (not a summary state)']); diff --git a/tools/dag-viewer/examples/planner-layering-example1.json b/tools/dag-viewer/examples/planner-layering-example1.json index cd32ade76..d9d6d9f23 100644 --- a/tools/dag-viewer/examples/planner-layering-example1.json +++ b/tools/dag-viewer/examples/planner-layering-example1.json @@ -95852,13 +95852,29 @@ { "consumer": 8, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -95869,43 +95885,33 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 7, + "producer": 4, "role": "Input", "window": "NotApplicable" - } - ], - "nodes": [ + }, { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -95949,71 +95955,18 @@ ] ] }, - "output_state": { + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 10, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, - { - "guarantee": null, - "id": 1, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -96057,27 +96010,18 @@ ] ] }, - "output_state": { + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 11, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, - { - "guarantee": null, - "id": 2, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -96121,35 +96065,36 @@ ] ] }, - "output_state": { + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 12, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 3, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -96160,52 +96105,33 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { + "producer": 11, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 13, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -96249,71 +96175,18 @@ ] ] }, - "output_state": { + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, - { - "guarantee": null, - "id": 5, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -96357,27 +96230,18 @@ ] ] }, - "output_state": { + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 4, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, - { - "guarantee": null, - "id": 6, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -96421,36 +96285,36 @@ ] ] }, - "output_state": { + "producer": 14, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 16, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 5, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 7, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -96461,153 +96325,82 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 6, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } + "producer": 15, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 8, - "output_schema": { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 7 - } - } - } - } - ], - "roots": [ - 3, - 8 - ] - }, - "from_logical": "L4", - "id": "P4", - "label": "Q1 exact · Q2 CMS+heap" - }, - { - "dag": { - "edges": [ + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 18, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -96657,12 +96450,12 @@ ] ] }, - "producer": 0, + "producer": 17, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 19, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -96712,12 +96505,12 @@ ] ] }, - "producer": 1, + "producer": 18, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 20, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -96767,12 +96560,12 @@ ] ] }, - "producer": 2, + "producer": 4, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 21, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -96822,12 +96615,12 @@ ] ] }, - "producer": 4, + "producer": 20, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 22, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -96877,12 +96670,12 @@ ] ] }, - "producer": 5, + "producer": 21, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 23, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -96935,14 +96728,14 @@ ] ] }, - "producer": 6, + "producer": 7, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 23, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -96959,9 +96752,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -96990,12 +96786,12 @@ ] ] }, - "producer": 7, + "producer": 10, "role": "Input", "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 23, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -97004,6 +96800,25 @@ "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -97014,43 +96829,33 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 8, + "producer": 13, "role": "Input", "window": "NotApplicable" - } - ], - "nodes": [ + }, { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -97063,9 +96868,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -97094,71 +96902,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 16, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 1, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -97171,9 +96926,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -97202,27 +96960,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } + "producer": 19, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 2, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -97235,9 +96984,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -97266,35 +97018,39 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } + "producer": 22, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 3, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -97305,52 +97061,33 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -97394,71 +97131,18 @@ ] ] }, - "output_state": { + "producer": 24, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 26, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, - { - "guarantee": null, - "id": 5, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -97502,26 +97186,16 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 4, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, + "producer": 25, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { + "coverage": null, "guarantee": null, - "id": 6, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -97535,12 +97209,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -97570,38 +97241,70 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 5, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "weight_domain": { - "kind": "unknown_or_signed" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - }, - "reduction": "PerEntity" + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } }, { + "coverage": null, "guarantee": null, - "id": 7, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -97651,108 +97354,91 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 6 - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" } } }, { + "coverage": null, "guarantee": null, - "id": 8, + "id": 2, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 7, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" } - } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } } }, { + "coverage": null, "guarantee": null, - "id": 9, + "id": 3, "output_schema": { "closed": true, "fields": [ @@ -97764,19 +97450,11 @@ "nullable": true, "table": null }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "float64" }, - "name": "value", + "name": "sum", "nullable": false, "table": null } @@ -97784,8 +97462,7 @@ "time_index": null, "unique_keys": [ [ - 0, - 1 + 0 ] ] }, @@ -97794,39 +97471,33 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 8 + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } } - } - ], - "roots": [ - 3, - 9 - ] - }, - "from_logical": "L5", - "id": "P5", - "label": "Q1 exact · Q2 CMS+heap (Sum acc)" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 4, + "output_schema": { "closed": true, "fields": [ { @@ -97870,18 +97541,72 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ { @@ -97925,18 +97650,26 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 3, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -97980,18 +97713,45 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 5, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 7, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -98004,9 +97764,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -98035,18 +97798,37 @@ ] ] }, - "producer": 4, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 6, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -98090,18 +97872,26 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 7, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -98145,18 +97935,45 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 8, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 10, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -98169,9 +97986,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -98200,18 +98020,37 @@ ] ] }, - "producer": 4, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 9, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 11, + "output_schema": { "closed": true, "fields": [ { @@ -98255,18 +98094,26 @@ ] ] }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 10, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 12, + "output_schema": { "closed": true, "fields": [ { @@ -98310,18 +98157,45 @@ ] ] }, - "producer": 9, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 11, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 13, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -98334,9 +98208,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -98365,18 +98242,37 @@ ] ] }, - "producer": 4, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 12, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 14, + "output_schema": { "closed": true, "fields": [ { @@ -98420,18 +98316,26 @@ ] ] }, - "producer": 11, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 13, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -98475,18 +98379,45 @@ ] ] }, - "producer": 12, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 14, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 16, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -98499,9 +98430,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -98530,18 +98464,37 @@ ] ] }, - "producer": 4, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 15, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 17, + "output_schema": { "closed": true, "fields": [ { @@ -98585,18 +98538,26 @@ ] ] }, - "producer": 14, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 16, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 18, + "output_schema": { "closed": true, "fields": [ { @@ -98640,18 +98601,45 @@ ] ] }, - "producer": 15, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 17, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 19, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -98664,9 +98652,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -98695,18 +98686,37 @@ ] ] }, - "producer": 4, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 18, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 20, + "output_schema": { "closed": true, "fields": [ { @@ -98750,18 +98760,26 @@ ] ] }, - "producer": 17, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 19, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 21, + "output_schema": { "closed": true, "fields": [ { @@ -98805,18 +98823,45 @@ ] ] }, - "producer": 18, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 20, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 22, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -98829,9 +98874,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -98860,18 +98908,54 @@ ] ] }, - "producer": 4, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } }, { - "consumer": 21, - "data_state": { - "primitive": "Raw", - "timing": "query_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 23, + "output_schema": { "closed": true, "fields": [ { @@ -98884,9 +98968,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -98915,18 +99002,19 @@ ] ] }, - "producer": 20, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 22, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "summary_merge" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 24, + "output_schema": { "closed": true, "fields": [ { @@ -98970,18 +99058,19 @@ ] ] }, - "producer": 21, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 25, + "output_schema": { "closed": true, "fields": [ { @@ -98994,12 +99083,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -99028,18 +99114,34 @@ ] ] }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "kind": "sort", + "partition_by": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 26, + "output_schema": { "closed": true, "fields": [ { @@ -99052,12 +99154,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -99086,14 +99185,39 @@ ] ] }, - "producer": 10, - "role": "Input", - "window": "NotApplicable" - }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "limit", + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + ], + "roots": [ + 3, + 26 + ] + }, + "from_logical": "L3", + "id": "P3-m2", + "label": "Q1 exact · Q2 exact (Sum acc · tumbling 10s panes) · query time, kept: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ { - "consumer": 23, + "consumer": 1, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -99110,12 +99234,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -99144,14 +99265,14 @@ ] ] }, - "producer": 13, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 2, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -99168,12 +99289,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -99202,14 +99320,14 @@ ] ] }, - "producer": 16, + "producer": 1, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 3, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -99226,12 +99344,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -99260,14 +99375,14 @@ ] ] }, - "producer": 19, + "producer": 2, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 5, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -99284,12 +99399,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -99318,14 +99430,14 @@ ] ] }, - "producer": 22, + "producer": 4, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 6, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -99342,12 +99454,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -99376,12 +99485,12 @@ ] ] }, - "producer": 23, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 7, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -99431,12 +99540,12 @@ ] ] }, - "producer": 24, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 26, + "consumer": 8, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -99482,7 +99591,7 @@ ] ] }, - "producer": 25, + "producer": 7, "role": "Input", "window": "NotApplicable" } @@ -99949,11 +100058,12 @@ }, "payload": { "NonASAP": { - "TimeShift": { + "TimeRange": { "child": 4, - "shift": { - "at": null, - "offset_ms": 0 + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } @@ -100012,13 +100122,20 @@ }, "payload": { "NonASAP": { - "TimeRange": { + "Aggregate": { "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } } } @@ -100029,25 +100146,6 @@ "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -100058,17 +100156,29 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -100082,23 +100192,42 @@ "SummaryAgg": { "child": 6, "family": { - "ExactAggregate": [ - "Sum", - "Sum" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" ] }, "filter": null, "grouping": "PerSubpopulationInstance", "input": { - "item": null, + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, "weight": { "Column": "SampleValue" }, "weight_domain": { - "kind": "unknown_or_signed" + "kind": "non_negative", + "proof": "counter_samples" } }, - "reduction": "PerEntity" + "reduction": { + "Reduce": [ + 2 + ] + } } } } @@ -100111,42 +100240,34 @@ "fields": [ { "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { "Plain": "utf8" }, - "name": "job", - "nullable": true, + "name": "$promql_series_identity", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, @@ -100155,21 +100276,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 10000 - } + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 7 } } } - }, + } + ], + "roots": [ + 3, + 8 + ] + }, + "from_logical": "L4", + "id": "P4", + "label": "Q1 exact · Q2 CMS+heap" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 9, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -100213,27 +100352,18 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 8, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 10, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -100246,12 +100376,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -100280,40 +100407,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 9, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 11, - "output_schema": { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -100357,26 +100462,18 @@ ] ] }, - "output_state": { + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 20000 - } - } - } - } - }, - { - "guarantee": null, - "id": 12, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -100420,27 +100517,18 @@ ] ] }, - "output_state": { + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 11, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 13, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -100453,12 +100541,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -100487,40 +100572,18 @@ ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 12, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 14, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -100533,9 +100596,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -100564,26 +100630,18 @@ ] ] }, - "output_state": { + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 30000 - } - } - } - } - }, - { - "guarantee": null, - "id": 15, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -100627,48 +100685,20 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 14, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 7, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 16, - "output_schema": { + "consumer": 9, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -100679,54 +100709,42 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 15, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } - }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { "guarantee": null, - "id": 17, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -100777,11 +100795,56 @@ }, "payload": { "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 40000 + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } @@ -100789,7 +100852,7 @@ }, { "guarantee": null, - "id": 18, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -100841,11 +100904,11 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 17, + "child": 0, "kind": "range", "range": { "nanos": 0, - "secs": 10 + "secs": 60 } } } @@ -100853,7 +100916,7 @@ }, { "guarantee": null, - "id": 19, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -100867,12 +100930,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -100902,30 +100962,23 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 18, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" } - }, + ], + "output_names": [ + "" + ], "reduction": "PerEntity" } } @@ -100933,26 +100986,10 @@ }, { "guarantee": null, - "id": 20, + "id": 3, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -100963,17 +101000,16 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -100984,11 +101020,23 @@ }, "payload": { "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 50000 + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } } @@ -100996,7 +101044,7 @@ }, { "guarantee": null, - "id": 21, + "id": 4, "output_schema": { "closed": true, "fields": [ @@ -101047,12 +101095,56 @@ }, "payload": { "NonASAP": { - "TimeRange": { - "child": 20, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } @@ -101060,7 +101152,7 @@ }, { "guarantee": null, - "id": 22, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -101074,12 +101166,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -101109,38 +101198,25 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 21, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "NonASAP": { + "TimeRange": { + "child": 4, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } } } } }, { "guarantee": null, - "id": 23, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -101194,22 +101270,33 @@ }, "payload": { "ASAP": { - "SummaryMerge": { - "children": [ - 7, - 10, - 13, - 16, - 19, - 22 - ] + "SummaryAgg": { + "child": 5, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 24, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -101261,14 +101348,14 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 23 + "child": 6 } } } }, { "guarantee": null, - "id": 25, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -101316,7 +101403,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 24, + "child": 7, "family": { "Sketch": [ { @@ -101360,7 +101447,7 @@ }, { "guarantee": null, - "id": 26, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -101409,7 +101496,7 @@ "k": 10 } }, - "summary_input": 25 + "summary_input": 8 } } } @@ -101417,12 +101504,12 @@ ], "roots": [ 3, - 26 + 9 ] }, - "from_logical": "L6", - "id": "P6", - "label": "Q1 exact · Q2 CMS+heap (Sum acc · tumbling 10s panes)" + "from_logical": "L5", + "id": "P5", + "label": "Q1 exact · Q2 CMS+heap (Sum acc)" }, { "dag": { @@ -101596,7 +101683,7 @@ "consumer": 5, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -101645,13 +101732,13 @@ }, "producer": 4, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 6, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -101700,13 +101787,13 @@ }, "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 7, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -101755,13 +101842,13 @@ }, "producer": 6, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 8, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -101810,13 +101897,13 @@ }, "producer": 4, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 9, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -101865,13 +101952,13 @@ }, "producer": 8, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 10, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -101920,13 +102007,13 @@ }, "producer": 9, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 11, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -101975,13 +102062,13 @@ }, "producer": 4, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 12, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -102030,13 +102117,13 @@ }, "producer": 11, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 13, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -102085,13 +102172,13 @@ }, "producer": 12, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 14, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -102140,13 +102227,13 @@ }, "producer": 4, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 15, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -102195,13 +102282,13 @@ }, "producer": 14, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 16, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -102250,13 +102337,13 @@ }, "producer": 15, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 17, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -102305,13 +102392,13 @@ }, "producer": 4, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 18, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -102360,13 +102447,13 @@ }, "producer": 17, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 19, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -102415,13 +102502,13 @@ }, "producer": 18, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 20, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -102470,13 +102557,13 @@ }, "producer": 4, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 21, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -102525,13 +102612,13 @@ }, "producer": 20, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 22, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -102580,13 +102667,13 @@ }, "producer": 21, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 23, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -102644,7 +102731,7 @@ "consumer": 23, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -102702,7 +102789,7 @@ "consumer": 23, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -102760,7 +102847,7 @@ "consumer": 23, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -102818,7 +102905,7 @@ "consumer": 23, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -102876,7 +102963,7 @@ "consumer": 23, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -103445,7 +103532,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -103553,7 +103640,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -103616,7 +103703,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -103683,7 +103770,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { @@ -103760,7 +103847,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -103823,7 +103910,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -103890,7 +103977,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { @@ -103967,7 +104054,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -104030,7 +104117,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -104097,7 +104184,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { @@ -104174,7 +104261,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -104237,7 +104324,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -104304,7 +104391,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { @@ -104381,7 +104468,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -104444,7 +104531,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -104511,7 +104598,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { @@ -104588,7 +104675,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -104651,7 +104738,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -104718,7 +104805,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { @@ -105029,8 +105116,8 @@ ] }, "from_logical": "L6", - "id": "P6-m1", - "label": "Q1 exact · Q2 CMS+heap (Sum acc · tumbling 10s panes) · ingestion time: exact Sum ×6 panes" + "id": "P6", + "label": "Q1 exact · Q2 CMS+heap (Sum acc · tumbling 10s panes)" }, { "dag": { @@ -105204,7 +105291,7 @@ "consumer": 5, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -105253,13 +105340,13 @@ }, "producer": 4, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 6, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -105308,13 +105395,13 @@ }, "producer": 5, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 7, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -105363,65 +105450,16 @@ }, "producer": 6, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 8, "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "primitive": "Raw", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ - { - "guarantee": null, - "id": 0, - "output_schema": { "closed": true, "fields": [ { @@ -105465,71 +105503,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 1, - "output_schema": { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -105573,27 +105558,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } + "producer": 8, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 2, - "output_schema": { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -105637,35 +105613,36 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } + "producer": 9, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 3, - "output_schema": { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -105676,52 +105653,88 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 12, + "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 11, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 4, - "output_schema": { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -105765,71 +105778,73 @@ ] ] }, - "output_state": { + "producer": 12, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 14, + "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 5, - "output_schema": { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -105873,27 +105888,73 @@ ] ] }, - "output_state": { + "producer": 14, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 16, + "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 4, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 15, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 6, - "output_schema": { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -105937,36 +105998,91 @@ ] ] }, - "output_state": { + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 18, + "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 5, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 17, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 7, - "output_schema": { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -105977,88 +106093,106 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" + "producer": 18, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 6, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" }, - "reduction": { - "Reduce": [ - 2 - ] - } + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 8, - "output_schema": { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -106074,6 +106208,37 @@ "name": "$promql_series_identity", "nullable": false, "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, { "dtype": { @@ -106082,51 +106247,99 @@ "name": "value", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" + "producer": 21, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "summary_input": 7 + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } - } - ], - "roots": [ - 3, - 8 - ] - }, - "from_logical": "L7", - "id": "P7", - "label": "Q1 exact · Q2 CountSketch+heap" - }, - { - "dag": { - "edges": [ + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 23, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -106142,9 +106355,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -106173,15 +106389,15 @@ ] ] }, - "producer": 0, + "producer": 10, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 23, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -106197,9 +106413,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -106228,15 +106447,15 @@ ] ] }, - "producer": 1, + "producer": 13, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 23, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -106252,9 +106471,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -106283,15 +106505,15 @@ ] ] }, - "producer": 2, + "producer": 16, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 23, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -106307,9 +106529,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -106338,15 +106563,15 @@ ] ] }, - "producer": 4, + "producer": 19, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 23, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -106362,9 +106587,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -106393,12 +106621,12 @@ ] ] }, - "producer": 5, + "producer": 22, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 24, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -106451,12 +106679,12 @@ ] ] }, - "producer": 6, + "producer": 23, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 25, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -106506,12 +106734,12 @@ ] ] }, - "producer": 7, + "producer": 24, "role": "Input", "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 26, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -106532,13 +106760,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CountSketchWithHeap", + "algorithm": "CmsWithHeap", "category": "TopK", "params": { - "CountSketchWithHeap": { - "depth": 125, + "CmsWithHeap": { + "depth": 7, "heap_size": 100, - "width": 30000 + "width": 272 } } }, @@ -106557,7 +106785,7 @@ ] ] }, - "producer": 8, + "producer": 25, "role": "Input", "window": "NotApplicable" } @@ -106912,7 +107140,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { @@ -107020,16 +107248,79 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "TimeRange": { + "TimeShift": { "child": 4, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 5, "kind": "range", "range": { "nanos": 0, - "secs": 60 + "secs": 10 } } } @@ -107037,7 +107328,7 @@ }, { "guarantee": null, - "id": 6, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -107087,12 +107378,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 5, + "child": 6, "family": { "ExactAggregate": [ "Sum", @@ -107117,7 +107408,7 @@ }, { "guarantee": null, - "id": 7, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -107164,22 +107455,42 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 6 + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 10000 + } } } } }, { "guarantee": null, - "id": 8, + "id": 9, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -107190,77 +107501,33 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "SummaryState", - "timing": "query_time" + "primitive": "Raw", + "timing": "ingestion_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 7, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] + "NonASAP": { + "TimeRange": { + "child": 8, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 } } } @@ -107268,81 +107535,88 @@ }, { "guarantee": null, - "id": 9, + "id": 10, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, "output_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "payload": { "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 + "SummaryAgg": { + "child": 9, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } }, - "summary_input": 8 + "reduction": "PerEntity" } } } - } - ], - "roots": [ - 3, - 9 - ] - }, - "from_logical": "L8", - "id": "P8", - "label": "Q1 exact · Q2 CountSketch+heap (Sum acc)" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 11, + "output_schema": { "closed": true, "fields": [ { @@ -107386,18 +107660,26 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } + }, + { + "guarantee": null, + "id": 12, + "output_schema": { "closed": true, "fields": [ { @@ -107441,18 +107723,27 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 3, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 11, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 13, + "output_schema": { "closed": true, "fields": [ { @@ -107465,9 +107756,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -107496,18 +107790,40 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 12, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 5, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 14, + "output_schema": { "closed": true, "fields": [ { @@ -107551,18 +107867,26 @@ ] ] }, - "producer": 4, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 6, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } + }, + { + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -107606,18 +107930,27 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 7, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 14, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { "closed": true, "fields": [ { @@ -107630,9 +107963,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -107661,18 +107997,40 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 15, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 8, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 17, + "output_schema": { "closed": true, "fields": [ { @@ -107716,18 +108074,26 @@ ] ] }, - "producer": 4, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 9, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + } + }, + { + "guarantee": null, + "id": 18, + "output_schema": { "closed": true, "fields": [ { @@ -107771,18 +108137,27 @@ ] ] }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 10, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 17, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 19, + "output_schema": { "closed": true, "fields": [ { @@ -107795,9 +108170,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -107826,18 +108204,40 @@ ] ] }, - "producer": 9, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 18, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 11, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 20, + "output_schema": { "closed": true, "fields": [ { @@ -107881,18 +108281,26 @@ ] ] }, - "producer": 4, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 12, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + } + }, + { + "guarantee": null, + "id": 21, + "output_schema": { "closed": true, "fields": [ { @@ -107936,18 +108344,27 @@ ] ] }, - "producer": 11, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 13, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 20, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 22, + "output_schema": { "closed": true, "fields": [ { @@ -107960,9 +108377,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -107991,18 +108411,40 @@ ] ] }, - "producer": 12, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 21, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 14, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 23, + "output_schema": { "closed": true, "fields": [ { @@ -108015,9 +108457,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -108046,18 +108491,29 @@ ] ] }, - "producer": 4, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 15, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryMerge": { + "children": [ + 7, + 10, + 13, + 16, + 19, + 22 + ] + } + } + } + }, + { + "guarantee": null, + "id": 24, + "output_schema": { "closed": true, "fields": [ { @@ -108101,36 +108557,116 @@ ] ] }, - "producer": 14, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 16, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 23 + } + } + } + }, + { + "guarantee": null, + "id": 25, + "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null - }, + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 24, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 26, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -108146,22 +108682,56 @@ "name": "$promql_series_identity", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, - "producer": 15, - "role": "Input", - "window": "NotApplicable" - }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 25 + } + } + } + } + ], + "roots": [ + 3, + 26 + ] + }, + "from_logical": "L6", + "id": "P6-m1", + "label": "Q1 exact · Q2 CMS+heap (Sum acc · tumbling 10s panes) · ingestion time: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ { - "consumer": 17, + "consumer": 1, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -108211,12 +108781,12 @@ ] ] }, - "producer": 4, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 18, + "consumer": 2, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -108266,12 +108836,12 @@ ] ] }, - "producer": 17, + "producer": 1, "role": "Input", "window": "NotApplicable" }, { - "consumer": 19, + "consumer": 3, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -108321,12 +108891,12 @@ ] ] }, - "producer": 18, + "producer": 2, "role": "Input", "window": "NotApplicable" }, { - "consumer": 20, + "consumer": 5, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -108381,7 +108951,7 @@ "window": "NotApplicable" }, { - "consumer": 21, + "consumer": 6, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -108431,12 +109001,12 @@ ] ] }, - "producer": 20, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 22, + "consumer": 7, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -108486,14 +109056,14 @@ ] ] }, - "producer": 21, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 8, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -108510,12 +109080,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -108544,14 +109111,14 @@ ] ] }, - "producer": 7, + "producer": 4, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 9, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -108568,12 +109135,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -108602,14 +109166,14 @@ ] ] }, - "producer": 10, + "producer": 8, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 10, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -108626,12 +109190,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -108660,14 +109221,14 @@ ] ] }, - "producer": 13, + "producer": 9, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 11, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -108684,12 +109245,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -108718,14 +109276,14 @@ ] ] }, - "producer": 16, + "producer": 4, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 12, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -108742,12 +109300,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -108776,14 +109331,14 @@ ] ] }, - "producer": 19, + "producer": 11, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 13, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -108800,12 +109355,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -108834,14 +109386,14 @@ ] ] }, - "producer": 22, + "producer": 12, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 14, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -108858,12 +109410,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -108892,12 +109441,12 @@ ] ] }, - "producer": 23, + "producer": 4, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 15, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -108947,20 +109496,36 @@ ] ] }, - "producer": 24, + "producer": 14, "role": "Input", "window": "NotApplicable" }, { - "consumer": 26, + "consumer": 16, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -108971,43 +109536,33 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 25, + "producer": 15, "role": "Input", "window": "NotApplicable" - } - ], - "nodes": [ + }, { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -109051,71 +109606,18 @@ ] ] }, - "output_state": { + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 18, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, - { - "guarantee": null, - "id": 1, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -109159,27 +109661,18 @@ ] ] }, - "output_state": { + "producer": 17, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 19, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, - { - "guarantee": null, - "id": 2, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -109223,35 +109716,36 @@ ] ] }, - "output_state": { + "producer": 18, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 20, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 3, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -109262,52 +109756,33 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 21, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -109351,71 +109826,18 @@ ] ] }, - "output_state": { + "producer": 20, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, - { - "guarantee": null, - "id": 5, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -109459,26 +109881,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - } + "producer": 21, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 6, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -109491,9 +109905,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -109522,27 +109939,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 7, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 7, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -109589,40 +109997,18 @@ ] ] }, - "output_state": { + "producer": 10, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 6, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 8, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -109635,9 +110021,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -109666,26 +110055,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 10000 - } - } - } - } + "producer": 13, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 9, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -109698,9 +110079,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -109729,27 +110113,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 8, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 16, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 10, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -109796,40 +110171,76 @@ ] ] }, - "output_state": { + "producer": 19, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 9, - "family": { + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { "ExactAggregate": [ "Sum", "Sum" ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" }, - "reduction": "PerEntity" + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 22, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 11, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -109842,9 +110253,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -109873,26 +110287,18 @@ ] ] }, - "output_state": { + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 20000 - } - } - } - } - }, - { - "guarantee": null, - "id": 12, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -109936,26 +110342,67 @@ ] ] }, - "output_state": { - "primitive": "Raw", + "producer": 24, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 26, + "data_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 11, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null } - } - } - }, + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 25, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { + "coverage": null, "guarantee": null, - "id": 13, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -109969,12 +110416,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -110004,38 +110448,70 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 12, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "weight_domain": { - "kind": "unknown_or_signed" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - }, - "reduction": "PerEntity" + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } }, { + "coverage": null, "guarantee": null, - "id": 14, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -110085,20 +110561,21 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 30000 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" } } }, { + "coverage": null, "guarantee": null, - "id": 15, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -110148,21 +110625,85 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 14, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } } }, { + "coverage": null, "guarantee": null, - "id": 16, + "id": 4, "output_schema": { "closed": true, "fields": [ @@ -110176,12 +110717,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -110211,38 +110749,70 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 15, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "weight_domain": { - "kind": "unknown_or_signed" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - }, - "reduction": "PerEntity" + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } }, { + "coverage": null, "guarantee": null, - "id": 17, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -110292,20 +110862,20 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 40000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 } } } }, { + "coverage": null, "guarantee": null, - "id": 18, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -110355,21 +110925,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 17, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 19, + "id": 7, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -110422,34 +111010,31 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 18, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 20, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -110499,20 +111084,20 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 50000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 } } } }, { + "coverage": null, "guarantee": null, - "id": 21, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -110562,21 +111147,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 20, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 22, + "id": 10, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -110629,34 +111232,31 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 21, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 23, + "id": 11, "output_schema": { "closed": true, "fields": [ @@ -110670,12 +111270,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -110705,27 +111302,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 7, - 10, - 13, - 16, - 19, - 22 - ] + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 } } } }, { + "coverage": null, "guarantee": null, - "id": 24, + "id": 12, "output_schema": { "closed": true, "fields": [ @@ -110775,111 +111369,61 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 23 - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 25, + "id": 13, + "kept": true, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" + "ExactAggregate": [ + "Sum", + "Sum" ] }, "name": "state", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 24, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 26, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -110895,62 +111439,47 @@ "name": "$promql_series_identity", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 25 + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } - } - ], - "roots": [ - 3, - 26 - ] - }, - "from_logical": "L9", - "id": "P9", - "label": "Q1 exact · Q2 CountSketch+heap (Sum acc · tumbling 10s panes)" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 14, + "output_schema": { "closed": true, "fields": [ { @@ -110994,18 +111523,26 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -111049,18 +111586,45 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 3, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 16, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -111073,9 +111637,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -111104,18 +111671,37 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } }, { - "consumer": 5, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 17, + "output_schema": { "closed": true, "fields": [ { @@ -111159,18 +111745,26 @@ ] ] }, - "producer": 4, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 6, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 18, + "output_schema": { "closed": true, "fields": [ { @@ -111214,18 +111808,45 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 7, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 19, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -111238,9 +111859,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -111269,18 +111893,37 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } }, { - "consumer": 8, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 20, + "output_schema": { "closed": true, "fields": [ { @@ -111324,18 +111967,26 @@ ] ] }, - "producer": 4, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 9, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 21, + "output_schema": { "closed": true, "fields": [ { @@ -111379,18 +112030,45 @@ ] ] }, - "producer": 8, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 10, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 22, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -111403,9 +112081,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -111434,18 +112115,54 @@ ] ] }, - "producer": 9, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } }, { - "consumer": 11, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 23, + "output_schema": { "closed": true, "fields": [ { @@ -111458,9 +112175,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -111489,18 +112209,19 @@ ] ] }, - "producer": 4, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "kind": "summary_merge" + } }, { - "consumer": 12, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 24, + "output_schema": { "closed": true, "fields": [ { @@ -111544,36 +112265,122 @@ ] ] }, - "producer": 11, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "finalize_exact_accumulator" + } }, { - "consumer": 13, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 25, + "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 26, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -111589,25 +112396,55 @@ "name": "$promql_series_identity", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, - "producer": 12, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + } + } + ], + "roots": [ + 3, + 26 + ] + }, + "from_logical": "L6", + "id": "P6-m2", + "label": "Q1 exact · Q2 CMS+heap (Sum acc · tumbling 10s panes) · query time, kept: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ { - "consumer": 14, + "consumer": 1, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -111654,15 +112491,15 @@ ] ] }, - "producer": 4, + "producer": 0, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 15, + "consumer": 2, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -111709,15 +112546,15 @@ ] ] }, - "producer": 14, + "producer": 1, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 16, + "consumer": 3, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -111764,15 +112601,15 @@ ] ] }, - "producer": 15, + "producer": 2, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 17, + "consumer": 5, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -111821,13 +112658,13 @@ }, "producer": 4, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 18, + "consumer": 6, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -111874,15 +112711,15 @@ ] ] }, - "producer": 17, + "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 19, + "consumer": 7, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -111929,36 +112766,20 @@ ] ] }, - "producer": 18, + "producer": 6, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 20, + "consumer": 8, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -111969,33 +112790,43 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 4, + "producer": 7, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, + "window": "NotApplicable" + } + ], + "nodes": [ { - "consumer": 21, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -112039,18 +112870,71 @@ ] ] }, - "producer": 20, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 22, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -112094,18 +112978,27 @@ ] ] }, - "producer": 21, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } }, { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -112118,12 +113011,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -112152,39 +113042,35 @@ ] ] }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } }, { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -112195,33 +113081,52 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 10, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } }, { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 4, + "output_schema": { "closed": true, "fields": [ { @@ -112234,12 +113139,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -112268,18 +113170,71 @@ ] ] }, - "producer": 13, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } }, { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ { @@ -112292,12 +113247,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -112326,18 +113278,27 @@ ] ] }, - "producer": 16, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 4, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } }, { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -112350,12 +113311,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -112384,44 +113342,222 @@ ] ] }, - "producer": 19, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 5, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } }, { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" ] }, "name": "state", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 7 + } + } + } + } + ], + "roots": [ + 3, + 8 + ] + }, + "from_logical": "L7", + "id": "P7", + "label": "Q1 exact · Q2 CountSketch+heap" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", "nullable": true, "table": null }, @@ -112442,12 +113578,232 @@ ] ] }, - "producer": 22, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -112500,12 +113856,12 @@ ] ] }, - "producer": 23, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 8, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -112555,12 +113911,12 @@ ] ] }, - "producer": 24, + "producer": 7, "role": "Input", "window": "NotApplicable" }, { - "consumer": 26, + "consumer": 9, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -112606,7 +113962,7 @@ ] ] }, - "producer": 25, + "producer": 8, "role": "Input", "window": "NotApplicable" } @@ -112961,7 +114317,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -113069,79 +114425,16 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - } - }, - { - "guarantee": null, - "id": 6, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 5, + "child": 4, "kind": "range", "range": { "nanos": 0, - "secs": 10 + "secs": 60 } } } @@ -113149,7 +114442,7 @@ }, { "guarantee": null, - "id": 7, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -113199,12 +114492,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 6, + "child": 5, "family": { "ExactAggregate": [ "Sum", @@ -113229,7 +114522,7 @@ }, { "guarantee": null, - "id": 8, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -113276,42 +114569,22 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 10000 - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 6 } } } }, { "guarantee": null, - "id": 9, + "id": 8, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -113322,33 +114595,77 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 8, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] } } } @@ -113356,88 +114673,81 @@ }, { "guarantee": null, - "id": 10, + "id": 9, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { "Plain": "utf8" }, - "name": "job", - "nullable": true, + "name": "$promql_series_identity", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "payload": { "ASAP": { - "SummaryAgg": { - "child": 9, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 } }, - "reduction": "PerEntity" + "summary_input": 8 } } } - }, + } + ], + "roots": [ + 3, + 9 + ] + }, + "from_logical": "L8", + "id": "P8", + "label": "Q1 exact · Q2 CountSketch+heap (Sum acc)" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 11, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -113481,26 +114791,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 20000 - } - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 12, - "output_schema": { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -113544,27 +114846,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 11, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 13, - "output_schema": { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -113577,12 +114870,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -113611,40 +114901,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 12, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 2, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 14, - "output_schema": { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -113688,26 +114956,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 30000 - } - } - } - } + "producer": 4, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 15, - "output_schema": { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -113751,27 +115011,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 14, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 5, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 16, - "output_schema": { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -113784,12 +115035,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -113818,40 +115066,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 15, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 6, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 17, - "output_schema": { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -113895,26 +115121,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 40000 - } - } - } - } + "producer": 4, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 18, - "output_schema": { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -113958,27 +115176,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 17, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 8, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 19, - "output_schema": { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -113991,12 +115200,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -114025,40 +115231,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 18, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 9, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 20, - "output_schema": { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -114102,26 +115286,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 50000 - } - } - } - } + "producer": 4, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 21, - "output_schema": { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -114165,27 +115341,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 20, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 11, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 22, - "output_schema": { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -114198,12 +115365,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -114232,40 +115396,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 21, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 12, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 23, - "output_schema": { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -114278,12 +115420,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -114312,29 +115451,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 7, - 10, - 13, - 16, - 19, - 22 - ] - } - } - } + "producer": 4, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 24, - "output_schema": { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -114378,181 +115506,12 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 23 - } - } - } - }, - { - "guarantee": null, - "id": 25, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 24, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } + "producer": 14, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 26, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0, - 1 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 25 - } - } - } - } - ], - "roots": [ - 3, - 26 - ] - }, - "from_logical": "L9", - "id": "P9-m1", - "label": "Q1 exact · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · ingestion time: exact Sum ×6 panes" - }, - { - "dag": { - "edges": [ - { - "consumer": 1, + "consumer": 16, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -114602,12 +115561,12 @@ ] ] }, - "producer": 0, + "producer": 15, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 17, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -114657,12 +115616,12 @@ ] ] }, - "producer": 1, + "producer": 4, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 18, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -114712,12 +115671,12 @@ ] ] }, - "producer": 2, + "producer": 17, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 19, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -114767,12 +115726,12 @@ ] ] }, - "producer": 4, + "producer": 18, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 20, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -114822,67 +115781,18 @@ ] ] }, - "producer": 5, + "producer": 4, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 21, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ - { - "guarantee": null, - "id": 0, - "output_schema": { "closed": true, "fields": [ { @@ -114926,71 +115836,18 @@ ] ] }, - "output_state": { + "producer": 20, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, - { - "guarantee": null, - "id": 1, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -115034,27 +115891,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } + "producer": 21, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 2, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -115067,9 +115915,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -115098,91 +115949,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } + "producer": 7, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 3, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "sum", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", + "consumer": 23, + "data_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -115195,9 +115973,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -115226,71 +116007,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 10, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 5, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -115303,9 +116031,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -115334,188 +116065,14 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 4, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, - { - "guarantee": null, - "id": 6, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 5, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } + "producer": 13, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 7, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0, - 1 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 6 - } - } - } - } - ], - "roots": [ - 3, - 7 - ] - }, - "from_logical": "L10", - "id": "P10", - "label": "Q1 exact · Q2 whole-expression CMS+heap" - }, - { - "dag": { - "edges": [ - { - "consumer": 1, + "consumer": 23, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -115532,9 +116089,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -115563,14 +116123,14 @@ ] ] }, - "producer": 0, + "producer": 16, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 23, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -115587,9 +116147,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -115618,14 +116181,14 @@ ] ] }, - "producer": 1, + "producer": 19, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 23, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -115642,9 +116205,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -115673,14 +116239,14 @@ ] ] }, - "producer": 2, + "producer": 22, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 24, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -115697,9 +116263,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -115728,12 +116297,12 @@ ] ] }, - "producer": 4, + "producer": 23, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 25, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -115783,12 +116352,12 @@ ] ] }, - "producer": 5, + "producer": 24, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 26, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -115834,7 +116403,7 @@ ] ] }, - "producer": 6, + "producer": 25, "role": "Input", "window": "NotApplicable" } @@ -116301,12 +116870,11 @@ }, "payload": { "NonASAP": { - "TimeRange": { + "TimeShift": { "child": 4, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "shift": { + "at": null, + "offset_ms": 0 } } } @@ -116320,96 +116888,20 @@ "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 5, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 7, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -116425,21 +116917,13 @@ "name": "$promql_series_identity", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, @@ -116448,39 +116932,22 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 6 + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } - } - ], - "roots": [ - 3, - 7 - ] - }, - "from_logical": "L11", - "id": "P11", - "label": "Q1 exact · Q2 whole-expression CountSketch+heap" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ { @@ -116493,9 +116960,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -116524,18 +116994,40 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -116579,18 +117071,26 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 3, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -116603,12 +117103,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -116637,18 +117134,27 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 4, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 8, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { "closed": true, "fields": [ { @@ -116661,9 +117167,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -116692,18 +117201,40 @@ ] ] }, - "producer": 3, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 6, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 9, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { "closed": true, "fields": [ { @@ -116747,18 +117278,26 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 7, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } + }, + { + "guarantee": null, + "id": 12, + "output_schema": { "closed": true, "fields": [ { @@ -116802,18 +117341,27 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 8, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 11, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 13, + "output_schema": { "closed": true, "fields": [ { @@ -116826,9 +117374,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -116857,18 +117408,40 @@ ] ] }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 9, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 12, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 14, + "output_schema": { "closed": true, "fields": [ { @@ -116912,15 +117485,25 @@ ] ] }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } + }, { "guarantee": null, - "id": 0, + "id": 15, "output_schema": { "closed": true, "fields": [ @@ -116971,56 +117554,12 @@ }, "payload": { "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "TimeRange": { + "child": 14, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 } } } @@ -117028,7 +117567,7 @@ }, { "guarantee": null, - "id": 1, + "id": 16, "output_schema": { "closed": true, "fields": [ @@ -117042,9 +117581,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -117074,25 +117616,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "ASAP": { + "SummaryAgg": { + "child": 15, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 2, + "id": 17, "output_schema": { "closed": true, "fields": [ @@ -117106,12 +117661,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -117141,38 +117693,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 40000 + } } } } }, { "guarantee": null, - "id": 3, + "id": 18, "output_schema": { "closed": true, "fields": [ @@ -117222,19 +117760,43 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 + "NonASAP": { + "TimeRange": { + "child": 17, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { "guarantee": null, - "id": 4, + "id": 19, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -117245,51 +117807,54 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 + "ASAP": { + "SummaryAgg": { + "child": 18, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" ] - } + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 5, + "id": 20, "output_schema": { "closed": true, "fields": [ @@ -117340,56 +117905,11 @@ }, "payload": { "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 50000 } } } @@ -117397,7 +117917,7 @@ }, { "guarantee": null, - "id": 6, + "id": 21, "output_schema": { "closed": true, "fields": [ @@ -117449,11 +117969,11 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 5, + "child": 20, "kind": "range", "range": { "nanos": 0, - "secs": 60 + "secs": 10 } } } @@ -117461,7 +117981,7 @@ }, { "guarantee": null, - "id": 7, + "id": 22, "output_schema": { "closed": true, "fields": [ @@ -117475,9 +117995,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -117507,24 +118030,30 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 6, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" + "ASAP": { + "SummaryAgg": { + "child": 21, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - ], - "output_names": [ - "" - ], + }, "reduction": "PerEntity" } } @@ -117532,7 +118061,7 @@ }, { "guarantee": null, - "id": 8, + "id": 23, "output_schema": { "closed": true, "fields": [ @@ -117546,9 +118075,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -117578,24 +118110,19 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Sort": { - "child": 7, - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false - } - ], - "partition_by": [ - 2 + "ASAP": { + "SummaryMerge": { + "children": [ + 7, + 10, + 13, + 16, + 19, + 22 ] } } @@ -117603,7 +118130,7 @@ }, { "guarantee": null, - "id": 9, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -117653,27 +118180,170 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Limit": { - "child": 8, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "ASAP": { + "FinalizeExactAccumulator": { + "child": 23 + } + } + } + }, + { + "guarantee": null, + "id": 25, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 24, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 26, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 25 } } } } ], "roots": [ - 4, - 9 + 3, + 26 ] }, - "from_logical": "L12", - "id": "P12", - "label": "Q1 exact (Rate acc) · Q2 exact" + "from_logical": "L9", + "id": "P9", + "label": "Q1 exact · Q2 CountSketch+heap (Sum acc · tumbling 10s panes)" }, { "dag": { @@ -117791,7 +118461,7 @@ { "consumer": 3, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -117808,12 +118478,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -117847,10 +118514,10 @@ "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 5, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -117897,15 +118564,15 @@ ] ] }, - "producer": 3, + "producer": 4, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 6, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -117954,13 +118621,13 @@ }, "producer": 5, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 7, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -118009,13 +118676,13 @@ }, "producer": 6, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 8, "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "primitive": "Raw", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -118031,12 +118698,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -118065,15 +118729,15 @@ ] ] }, - "producer": 7, + "producer": 4, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 9, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -118122,13 +118786,13 @@ }, "producer": 8, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 10, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -118177,14 +118841,16 @@ }, "producer": 9, "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -118228,71 +118894,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 1, - "output_schema": { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -118336,27 +118949,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } + "producer": 11, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 2, - "output_schema": { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -118369,12 +118973,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -118403,40 +119004,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 12, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 3, - "output_schema": { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -118480,80 +119059,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - } + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 4, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "sum", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { + "consumer": 15, + "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 5, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -118597,71 +119114,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 14, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 6, - "output_schema": { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -118705,27 +119169,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } + "producer": 15, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 7, - "output_schema": { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -118738,12 +119193,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -118772,40 +119224,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 6, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 8, - "output_schema": { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -118849,22 +119279,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 7 - } - } - } + "producer": 17, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 9, - "output_schema": { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -118908,34 +119334,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Sort": { - "child": 8, - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false - } - ], - "partition_by": [ - 2 - ] - } - } - } + "producer": 18, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 10, - "output_schema": { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -118979,41 +119389,15 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Limit": { - "child": 9, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] - } - } - } - } - ], - "roots": [ - 4, - 10 - ] - }, - "from_logical": "L13", - "id": "P13", - "label": "Q1 exact (Rate acc) · Q2 exact (Sum acc)" - }, - { - "dag": { - "edges": [ + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, { - "consumer": 1, + "consumer": 21, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -119060,15 +119444,15 @@ ] ] }, - "producer": 0, + "producer": 20, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 2, + "consumer": 22, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -119115,15 +119499,15 @@ ] ] }, - "producer": 1, + "producer": 21, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 3, + "consumer": 23, "data_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -119140,8 +119524,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -119173,15 +119557,15 @@ ] ] }, - "producer": 2, + "producer": 7, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 23, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -119197,9 +119581,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -119228,15 +119615,15 @@ ] ] }, - "producer": 3, + "producer": 10, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 23, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -119252,9 +119639,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -119283,15 +119673,15 @@ ] ] }, - "producer": 5, + "producer": 13, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 23, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -119307,9 +119697,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -119338,15 +119731,15 @@ ] ] }, - "producer": 6, + "producer": 16, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 23, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -119362,9 +119755,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -119393,15 +119789,15 @@ ] ] }, - "producer": 7, + "producer": 19, "role": "Input", "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 23, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -119417,9 +119813,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -119448,14 +119847,14 @@ ] ] }, - "producer": 5, + "producer": 22, "role": "Input", "window": "NotApplicable" }, { - "consumer": 10, + "consumer": 24, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -119472,9 +119871,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -119503,12 +119905,12 @@ ] ] }, - "producer": 9, + "producer": 23, "role": "Input", "window": "NotApplicable" }, { - "consumer": 11, + "consumer": 25, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -119558,36 +119960,20 @@ ] ] }, - "producer": 10, + "producer": 24, "role": "Input", "window": "NotApplicable" }, { - "consumer": 12, + "consumer": 26, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -119598,33 +119984,43 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 5, + "producer": 25, "role": "Input", "window": "NotApplicable" - }, + } + ], + "nodes": [ { - "consumer": 13, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -119668,18 +120064,71 @@ ] ] }, - "producer": 12, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 14, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -119723,18 +120172,27 @@ ] ] }, - "producer": 13, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 15, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -119778,36 +120236,35 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 16, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -119818,33 +120275,52 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 15, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 17, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { "closed": true, "fields": [ { @@ -119888,18 +120364,71 @@ ] ] }, - "producer": 16, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 18, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ { @@ -119943,18 +120472,26 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 19, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -119998,18 +120535,27 @@ ] ] }, - "producer": 18, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 20, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ { @@ -120022,9 +120568,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -120053,18 +120602,40 @@ ] ] }, - "producer": 19, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 21, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -120108,18 +120679,26 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 22, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -120163,18 +120742,27 @@ ] ] }, - "producer": 21, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 23, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 8, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { "closed": true, "fields": [ { @@ -120187,9 +120775,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -120218,18 +120809,40 @@ ] ] }, - "producer": 22, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { + "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 9, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { "closed": true, "fields": [ { @@ -120242,12 +120855,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -120276,18 +120886,26 @@ ] ] }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 12, + "output_schema": { "closed": true, "fields": [ { @@ -120300,12 +120918,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -120334,18 +120949,27 @@ ] ] }, - "producer": 11, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 11, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 13, + "output_schema": { "closed": true, "fields": [ { @@ -120392,18 +121016,40 @@ ] ] }, - "producer": 14, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { + "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 12, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 14, + "output_schema": { "closed": true, "fields": [ { @@ -120416,12 +121062,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -120450,18 +121093,26 @@ ] ] }, - "producer": 17, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -120474,12 +121125,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -120508,18 +121156,27 @@ ] ] }, - "producer": 20, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 14, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 16, + "output_schema": { "closed": true, "fields": [ { @@ -120566,18 +121223,40 @@ ] ] }, - "producer": 23, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 25, - "data_state": { + "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 15, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 17, + "output_schema": { "closed": true, "fields": [ { @@ -120590,12 +121269,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -120624,18 +121300,26 @@ ] ] }, - "producer": 24, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 26, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + } + }, + { + "guarantee": null, + "id": 18, + "output_schema": { "closed": true, "fields": [ { @@ -120679,18 +121363,27 @@ ] ] }, - "producer": 25, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 27, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 17, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 19, + "output_schema": { "closed": true, "fields": [ { @@ -120703,9 +121396,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -120734,15 +121430,39 @@ ] ] }, - "producer": 26, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 18, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, { "guarantee": null, - "id": 0, + "id": 20, "output_schema": { "closed": true, "fields": [ @@ -120789,60 +121509,15 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 50000 } } } @@ -120850,7 +121525,7 @@ }, { "guarantee": null, - "id": 1, + "id": 21, "output_schema": { "closed": true, "fields": [ @@ -120897,16 +121572,16 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 0, + "child": 20, "kind": "range", "range": { "nanos": 0, - "secs": 60 + "secs": 10 } } } @@ -120914,7 +121589,7 @@ }, { "guarantee": null, - "id": 2, + "id": 22, "output_schema": { "closed": true, "fields": [ @@ -120929,8 +121604,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -120964,16 +121639,16 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 1, + "child": 21, "family": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "filter": null, @@ -120994,7 +121669,7 @@ }, { "guarantee": null, - "id": 3, + "id": 23, "output_schema": { "closed": true, "fields": [ @@ -121008,9 +121683,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -121040,23 +121718,46 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 + "SummaryMerge": { + "children": [ + 7, + 10, + 13, + 16, + 19, + 22 + ] } } } }, { "guarantee": null, - "id": 4, + "id": 24, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -121067,16 +121768,17 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -121086,54 +121788,22 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 23 } } } }, { "guarantee": null, - "id": 5, + "id": 25, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + "Plain": "utf8" }, "name": "job", "nullable": true, @@ -121141,77 +121811,77 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, + "ASAP": { + "SummaryAgg": { + "child": 24, + "family": { + "Sketch": [ { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] + "PerSubpopulationInstance" ] }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } + }, + "reduction": { + "Reduce": [ + 2 + ] } } } @@ -121219,48 +121889,40 @@ }, { "guarantee": null, - "id": 6, + "id": 26, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { "Plain": "utf8" }, - "name": "job", - "nullable": true, + "name": "$promql_series_identity", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, @@ -121269,21 +121931,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 0 - } + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 25 } } } - }, + } + ], + "roots": [ + 3, + 26 + ] + }, + "from_logical": "L9", + "id": "P9-m1", + "label": "Q1 exact · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · ingestion time: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 7, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -121327,27 +122007,18 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 6, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 8, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -121360,12 +122031,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -121394,40 +122062,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 7, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 9, - "output_schema": { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -121471,26 +122117,18 @@ ] ] }, - "output_state": { + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 10000 - } - } - } - } - }, - { - "guarantee": null, - "id": 10, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -121534,27 +122172,18 @@ ] ] }, - "output_state": { + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 9, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 11, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -121567,12 +122196,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -121601,40 +122227,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 10, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 5, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 12, - "output_schema": { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -121678,26 +122282,18 @@ ] ] }, - "output_state": { + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 20000 - } - } - } - } - }, - { - "guarantee": null, - "id": 13, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -121741,27 +122337,18 @@ ] ] }, - "output_state": { + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 12, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 14, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -121774,12 +122361,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -121808,40 +122392,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 13, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 8, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 15, - "output_schema": { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -121885,26 +122447,18 @@ ] ] }, - "output_state": { + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 11, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 30000 - } - } - } - } - }, - { - "guarantee": null, - "id": 16, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -121948,27 +122502,18 @@ ] ] }, - "output_state": { + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 12, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 15, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 17, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -121981,12 +122526,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -122015,40 +122557,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 16, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 11, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 18, - "output_schema": { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -122092,26 +122612,18 @@ ] ] }, - "output_state": { + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 40000 - } - } - } - } - }, - { - "guarantee": null, - "id": 19, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -122155,27 +122667,18 @@ ] ] }, - "output_state": { + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 18, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 20, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -122188,12 +122691,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -122222,40 +122722,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 19, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 14, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 21, - "output_schema": { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -122299,26 +122777,18 @@ ] ] }, - "output_state": { + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 17, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 50000 - } - } - } - } - }, - { - "guarantee": null, - "id": 22, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -122362,27 +122832,18 @@ ] ] }, - "output_state": { + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 18, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 21, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 23, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -122395,12 +122856,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -122429,40 +122887,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 22, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 17, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 24, - "output_schema": { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -122475,12 +122911,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -122509,29 +122942,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 8, - 11, - 14, - 17, - 20, - 23 - ] - } - } - } + "producer": 18, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 25, - "output_schema": { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -122575,22 +122997,18 @@ ] ] }, - "output_state": { + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 21, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 24 - } - } - } - }, - { - "guarantee": null, - "id": 26, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -122634,34 +123052,18 @@ ] ] }, - "output_state": { + "producer": 20, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Sort": { - "child": 25, - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false - } - ], - "partition_by": [ - 2 - ] - } - } - } - }, - { - "guarantee": null, - "id": 27, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -122705,40 +123107,14 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Limit": { - "child": 26, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] - } - } - } - } - ], - "roots": [ - 4, - 27 - ] - }, - "from_logical": "L14", - "id": "P14", - "label": "Q1 exact (Rate acc) · Q2 exact (Sum acc · tumbling 10s panes)" - }, - { - "dag": { - "edges": [ + "producer": 21, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 23, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -122755,9 +123131,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -122786,14 +123165,14 @@ ] ] }, - "producer": 0, + "producer": 7, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 23, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -122810,9 +123189,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -122841,12 +123223,12 @@ ] ] }, - "producer": 1, + "producer": 10, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 23, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -122866,8 +123248,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -122899,14 +123281,14 @@ ] ] }, - "producer": 2, + "producer": 13, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 23, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -122923,9 +123305,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -122954,15 +123339,15 @@ ] ] }, - "producer": 3, + "producer": 16, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 23, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -122978,9 +123363,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -123009,15 +123397,15 @@ ] ] }, - "producer": 5, + "producer": 19, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 23, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -123033,9 +123421,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -123064,15 +123455,15 @@ ] ] }, - "producer": 6, + "producer": 22, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -123088,9 +123479,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -123119,15 +123513,15 @@ ] ] }, - "producer": 7, + "producer": 23, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 25, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -123174,15 +123568,15 @@ ] ] }, - "producer": 5, + "producer": 24, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 10, + "consumer": 26, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -123190,57 +123584,52 @@ "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 9, + "producer": 25, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, + "window": "NotApplicable" + } + ], + "nodes": [ { - "consumer": 11, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -123284,18 +123673,72 @@ ] ] }, - "producer": 10, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 12, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -123339,18 +123782,27 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 13, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -123394,36 +123846,35 @@ ] ] }, - "producer": 12, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 14, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -123434,33 +123885,52 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 13, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 15, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 4, + "output_schema": { "closed": true, "fields": [ { @@ -123504,18 +123974,72 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 16, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ { @@ -123559,18 +124083,26 @@ ] ] }, - "producer": 15, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 17, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -123614,18 +124146,45 @@ ] ] }, - "producer": 16, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 18, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 7, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -123638,9 +124197,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -123669,18 +124231,37 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } }, { - "consumer": 19, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -123724,18 +124305,26 @@ ] ] }, - "producer": 18, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 20, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -123779,18 +124368,45 @@ ] ] }, - "producer": 19, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 21, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 10, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -123803,9 +124419,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -123834,18 +124453,37 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } }, { - "consumer": 22, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 11, + "output_schema": { "closed": true, "fields": [ { @@ -123889,18 +124527,26 @@ ] ] }, - "producer": 21, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 23, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 12, + "output_schema": { "closed": true, "fields": [ { @@ -123944,18 +124590,45 @@ ] ] }, - "producer": 22, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 13, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -124002,18 +124675,37 @@ ] ] }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { + "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 14, + "output_schema": { "closed": true, "fields": [ { @@ -124026,12 +124718,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -124060,18 +124749,26 @@ ] ] }, - "producer": 11, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -124084,12 +124781,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -124118,18 +124812,45 @@ ] ] }, - "producer": 14, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 16, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -124176,18 +124897,37 @@ ] ] }, - "producer": 17, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { + "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 17, + "output_schema": { "closed": true, "fields": [ { @@ -124200,12 +124940,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -124234,18 +124971,26 @@ ] ] }, - "producer": 20, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 18, + "output_schema": { "closed": true, "fields": [ { @@ -124258,12 +125003,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -124292,18 +125034,45 @@ ] ] }, - "producer": 23, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 25, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 19, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -124350,18 +125119,37 @@ ] ] }, - "producer": 24, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 26, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 20, + "output_schema": { "closed": true, "fields": [ { @@ -124405,18 +125193,26 @@ ] ] }, - "producer": 25, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 27, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 21, + "output_schema": { "closed": true, "fields": [ { @@ -124460,15 +125256,44 @@ ] ] }, - "producer": 26, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 0, + "id": 22, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -124482,9 +125307,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -124514,69 +125342,52 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 1, + "id": 23, "output_schema": { "closed": true, "fields": [ @@ -124590,9 +125401,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -124622,25 +125436,17 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } + "kind": "summary_merge" } }, { + "coverage": null, "guarantee": null, - "id": 2, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -124654,12 +125460,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -124689,57 +125492,32 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } + "kind": "finalize_exact_accumulator" } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 3, + "id": 25, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -124750,36 +125528,82 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] } } }, { + "coverage": null, "guarantee": null, - "id": 4, + "id": 26, "output_schema": { "closed": true, "fields": [ @@ -124791,11 +125615,19 @@ "nullable": true, "table": null }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "float64" }, - "name": "sum", + "name": "value", "nullable": false, "table": null } @@ -124803,7 +125635,8 @@ "time_index": null, "unique_keys": [ [ - 0 + 0, + 1 ] ] }, @@ -124812,33 +125645,35 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 } } } - }, + } + ], + "roots": [ + 3, + 26 + ] + }, + "from_logical": "L9", + "id": "P9-m2", + "label": "Q1 exact · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · query time, kept: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 5, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -124882,71 +125717,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 6, - "output_schema": { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -124990,26 +125772,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 7, - "output_schema": { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -125053,27 +125827,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 6, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 2, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 8, - "output_schema": { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -125086,12 +125851,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -125120,40 +125882,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 7, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 4, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 9, - "output_schema": { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -125197,44 +125937,20 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 10000 - } - } - } - } + "producer": 5, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 10, - "output_schema": { + "consumer": 7, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -125245,41 +125961,42 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 9, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { "guarantee": null, - "id": 11, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -125293,12 +126010,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -125328,38 +126042,69 @@ ] }, "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 10, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - }, - "reduction": "PerEntity" + } } } } }, { "guarantee": null, - "id": 12, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -125406,15 +126151,16 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 20000 + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } @@ -125422,7 +126168,7 @@ }, { "guarantee": null, - "id": 13, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -125469,46 +126215,33 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { - "TimeRange": { - "child": 12, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 14, + "id": 3, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -125519,54 +126252,51 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 13, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" } - }, - "reduction": "PerEntity" + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } } } } }, { "guarantee": null, - "id": 15, + "id": 4, "output_schema": { "closed": true, "fields": [ @@ -125613,15 +126343,60 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 30000 + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } @@ -125629,7 +126404,7 @@ }, { "guarantee": null, - "id": 16, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -125676,16 +126451,16 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 15, + "child": 4, "kind": "range", "range": { "nanos": 0, - "secs": 10 + "secs": 60 } } } @@ -125693,29 +126468,10 @@ }, { "guarantee": null, - "id": 17, + "id": 6, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -125726,118 +126482,159 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 16, + "child": 5, "family": { - "ExactAggregate": [ - "Sum", - "Sum" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" ] }, "filter": null, "grouping": "PerSubpopulationInstance", "input": { - "item": null, + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, "weight": { "Column": "SampleValue" }, "weight_domain": { - "kind": "unknown_or_signed" + "kind": "non_negative", + "proof": "counter_samples" } }, - "reduction": "PerEntity" + "reduction": { + "Reduce": [ + 2 + ] + } } } } }, { "guarantee": null, - "id": 18, + "id": 7, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { "Plain": "utf8" }, - "name": "job", - "nullable": true, + "name": "$promql_series_identity", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 40000 - } + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 6 } } } - }, + } + ], + "roots": [ + 3, + 7 + ] + }, + "from_logical": "L10", + "id": "P10", + "label": "Q1 exact · Q2 whole-expression CMS+heap" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 19, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -125881,27 +126678,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 18, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 20, - "output_schema": { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -125914,12 +126702,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -125948,40 +126733,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 19, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 21, - "output_schema": { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -126025,26 +126788,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 50000 - } - } - } - } + "producer": 2, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 22, - "output_schema": { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -126088,27 +126843,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 21, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 4, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 23, - "output_schema": { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -126121,12 +126867,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -126155,39 +126898,66 @@ ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 22, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "reduction": "PerEntity" + "name": "state", + "nullable": false, + "table": null } - } - } - }, + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { "guarantee": null, - "id": 24, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -126201,12 +126971,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -126236,27 +127003,69 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 8, - 11, - 14, - 17, - 20, - 23 - ] + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } } } } }, { "guarantee": null, - "id": 25, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -126306,16 +127115,21 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 24 + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } } } } }, { "guarantee": null, - "id": 26, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -126366,46 +127180,29 @@ }, "payload": { "NonASAP": { - "Sort": { - "child": 25, - "keys": [ + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false + "kind": "rate" } ], - "partition_by": [ - 2 - ] + "output_names": [ + "" + ], + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 27, + "id": 3, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -126416,17 +127213,16 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -126437,38 +127233,32 @@ }, "payload": { "NonASAP": { - "Limit": { - "child": 26, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } } } } - } - ], - "roots": [ - 4, - 27 - ] - }, - "from_logical": "L14", - "id": "P14-m1", - "label": "Q1 exact (Rate acc) · Q2 exact (Sum acc · tumbling 10s panes) · ingestion time: exact Sum ×6 panes" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 4, + "output_schema": { "closed": true, "fields": [ { @@ -126512,39 +127302,376 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 4, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 5, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 6 + } + } + } + } + ], + "roots": [ + 3, + 7 + ] + }, + "from_logical": "L11", + "id": "P11", + "label": "Q1 exact · Q2 whole-expression CountSketch+heap" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" }, "name": "job", "nullable": true, @@ -126852,13 +127979,29 @@ { "consumer": 9, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -126869,29 +128012,17 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -127520,6 +128651,22 @@ "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -127530,78 +128677,41 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { + "NonASAP": { + "Sort": { "child": 7, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" + "nulls_first": false } - }, - "reduction": { - "Reduce": [ - 2 - ] - } + ], + "partition_by": [ + 2 + ] } } } @@ -127614,34 +128724,42 @@ "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, @@ -127650,14 +128768,14 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 8 + "NonASAP": { + "Limit": { + "child": 8, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] } } } @@ -127668,9 +128786,9 @@ 9 ] }, - "from_logical": "L15", - "id": "P15", - "label": "Q1 exact (Rate acc) · Q2 CMS+heap" + "from_logical": "L12", + "id": "P12", + "label": "Q1 exact (Rate acc) · Q2 exact" }, { "dag": { @@ -128124,60 +129242,11 @@ { "consumer": 10, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 9, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ - { - "guarantee": null, - "id": 0, - "output_schema": { "closed": true, "fields": [ { @@ -128221,70 +129290,123 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, + "producer": 9, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { "guarantee": null, - "id": 1, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -128858,171 +129980,6 @@ "guarantee": null, "id": 9, "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 8, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 10, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0, - 1 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 9 - } - } - } - } - ], - "roots": [ - 4, - 10 - ] - }, - "from_logical": "L16", - "id": "P16", - "label": "Q1 exact (Rate acc) · Q2 CMS+heap (Sum acc)" - }, - { - "dag": { - "edges": [ - { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { "closed": true, "fields": [ { @@ -129066,131 +130023,34 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 3, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null + "payload": { + "NonASAP": { + "Sort": { + "child": 8, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" + } + } }, { - "consumer": 4, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 10, + "output_schema": { "closed": true, "fields": [ { @@ -129234,67 +130094,38 @@ ] ] }, - "producer": 3, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 6, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null + "payload": { + "NonASAP": { + "Limit": { + "child": 9, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, + } + } + } + ], + "roots": [ + 4, + 10 + ] + }, + "from_logical": "L13", + "id": "P13", + "label": "Q1 exact (Rate acc) · Q2 exact (Sum acc)" + }, + { + "dag": { + "edges": [ { - "consumer": 7, + "consumer": 1, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -129344,12 +130175,12 @@ ] ] }, - "producer": 6, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 2, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -129399,14 +130230,14 @@ ] ] }, - "producer": 7, + "producer": 1, "role": "Input", "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 3, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -129423,9 +130254,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -129454,12 +130288,12 @@ ] ] }, - "producer": 5, + "producer": 2, "role": "Input", "window": "NotApplicable" }, { - "consumer": 10, + "consumer": 4, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -129509,12 +130343,12 @@ ] ] }, - "producer": 9, + "producer": 3, "role": "Input", "window": "NotApplicable" }, { - "consumer": 11, + "consumer": 6, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -129564,12 +130398,12 @@ ] ] }, - "producer": 10, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 12, + "consumer": 7, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -129619,12 +130453,12 @@ ] ] }, - "producer": 5, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 13, + "consumer": 8, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -129674,12 +130508,12 @@ ] ] }, - "producer": 12, + "producer": 7, "role": "Input", "window": "NotApplicable" }, { - "consumer": 14, + "consumer": 9, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -129729,12 +130563,12 @@ ] ] }, - "producer": 13, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 15, + "consumer": 10, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -129784,12 +130618,12 @@ ] ] }, - "producer": 5, + "producer": 9, "role": "Input", "window": "NotApplicable" }, { - "consumer": 16, + "consumer": 11, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -129839,12 +130673,12 @@ ] ] }, - "producer": 15, + "producer": 10, "role": "Input", "window": "NotApplicable" }, { - "consumer": 17, + "consumer": 12, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -129894,12 +130728,12 @@ ] ] }, - "producer": 16, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 18, + "consumer": 13, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -129949,12 +130783,12 @@ ] ] }, - "producer": 5, + "producer": 12, "role": "Input", "window": "NotApplicable" }, { - "consumer": 19, + "consumer": 14, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -130004,12 +130838,12 @@ ] ] }, - "producer": 18, + "producer": 13, "role": "Input", "window": "NotApplicable" }, { - "consumer": 20, + "consumer": 15, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -130059,12 +130893,12 @@ ] ] }, - "producer": 19, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 21, + "consumer": 16, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -130114,12 +130948,12 @@ ] ] }, - "producer": 5, + "producer": 15, "role": "Input", "window": "NotApplicable" }, { - "consumer": 22, + "consumer": 17, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -130169,12 +131003,12 @@ ] ] }, - "producer": 21, + "producer": 16, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 18, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -130224,14 +131058,14 @@ ] ] }, - "producer": 22, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 19, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -130248,12 +131082,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -130282,14 +131113,14 @@ ] ] }, - "producer": 8, + "producer": 18, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 20, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -130306,12 +131137,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -130340,14 +131168,14 @@ ] ] }, - "producer": 11, + "producer": 19, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 21, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -130364,12 +131192,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -130398,14 +131223,14 @@ ] ] }, - "producer": 14, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 22, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -130422,12 +131247,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -130456,14 +131278,14 @@ ] ] }, - "producer": 17, + "producer": 21, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 23, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -130480,12 +131302,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -130514,7 +131333,7 @@ ] ] }, - "producer": 20, + "producer": 22, "role": "Input", "window": "NotApplicable" }, @@ -130572,12 +131391,12 @@ ] ] }, - "producer": 23, + "producer": 8, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 24, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -130630,14 +131449,14 @@ ] ] }, - "producer": 24, + "producer": 11, "role": "Input", "window": "NotApplicable" }, { - "consumer": 26, + "consumer": 24, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -130654,9 +131473,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -130685,67 +131507,18 @@ ] ] }, - "producer": 25, + "producer": 14, "role": "Input", "window": "NotApplicable" }, { - "consumer": 27, + "consumer": 24, "data_state": { "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 26, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ - { - "guarantee": null, - "id": 0, - "output_schema": { "closed": true, "fields": [ { @@ -130758,9 +131531,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -130789,71 +131565,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 17, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 1, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -130866,9 +131589,399 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 26, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 25, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 27, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 26, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", "nullable": false, "table": null }, @@ -132595,6 +133708,22 @@ "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -132605,78 +133734,41 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { + "NonASAP": { + "Sort": { "child": 25, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" + "nulls_first": false } - }, - "reduction": { - "Reduce": [ - 2 - ] - } + ], + "partition_by": [ + 2 + ] } } } @@ -132689,34 +133781,42 @@ "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, @@ -132725,14 +133825,14 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 26 + "NonASAP": { + "Limit": { + "child": 26, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] } } } @@ -132743,9 +133843,9 @@ 27 ] }, - "from_logical": "L17", - "id": "P17", - "label": "Q1 exact (Rate acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes)" + "from_logical": "L14", + "id": "P14", + "label": "Q1 exact (Rate acc) · Q2 exact (Sum acc · tumbling 10s panes)" }, { "dag": { @@ -134427,60 +135527,11 @@ { "consumer": 27, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 26, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ - { - "guarantee": null, - "id": 0, - "output_schema": { "closed": true, "fields": [ { @@ -134524,70 +135575,123 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, + "producer": 26, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { "guarantee": null, - "id": 1, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -136328,171 +137432,6 @@ "guarantee": null, "id": 26, "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 25, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 27, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0, - 1 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 26 - } - } - } - } - ], - "roots": [ - 4, - 27 - ] - }, - "from_logical": "L17", - "id": "P17-m1", - "label": "Q1 exact (Rate acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · ingestion time: exact Sum ×6 panes" - }, - { - "dag": { - "edges": [ - { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { "closed": true, "fields": [ { @@ -136536,18 +137475,34 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Sort": { + "child": 25, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } + } + } + }, + { + "guarantee": null, + "id": 27, + "output_schema": { "closed": true, "fields": [ { @@ -136591,14 +137546,40 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Limit": { + "child": 26, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + } + ], + "roots": [ + 4, + 27 + ] + }, + "from_logical": "L14", + "id": "P14-m1", + "label": "Q1 exact (Rate acc) · Q2 exact (Sum acc · tumbling 10s panes) · ingestion time: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ { - "consumer": 3, + "consumer": 1, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -136615,12 +137596,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -136649,12 +137627,12 @@ ] ] }, - "producer": 2, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 2, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -136704,14 +137682,14 @@ ] ] }, - "producer": 3, + "producer": 1, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 3, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -136728,9 +137706,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -136759,12 +137740,12 @@ ] ] }, - "producer": 5, + "producer": 2, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 4, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -136814,12 +137795,12 @@ ] ] }, - "producer": 6, + "producer": 3, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 6, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -136869,67 +137850,18 @@ ] ] }, - "producer": 7, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 7, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ - { - "guarantee": null, - "id": 0, - "output_schema": { "closed": true, "fields": [ { @@ -136973,71 +137905,18 @@ ] ] }, - "output_state": { + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, - { - "guarantee": null, - "id": 1, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -137081,27 +137960,18 @@ ] ] }, - "output_state": { + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, - { - "guarantee": null, - "id": 2, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -137114,12 +137984,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -137148,40 +138015,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 5, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 3, - "output_schema": { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -137225,24 +138070,36 @@ ] ] }, - "output_state": { + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 11, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -137253,52 +138110,33 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { + "producer": 10, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 12, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 5, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -137342,71 +138180,18 @@ ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 13, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, - { - "guarantee": null, - "id": 6, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -137450,27 +138235,18 @@ ] ] }, - "output_state": { + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, - { - "guarantee": null, - "id": 7, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -137514,36 +138290,36 @@ ] ] }, - "output_state": { + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 6, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 8, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -137554,88 +138330,51 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 7, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } + "producer": 5, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 9, - "output_schema": { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -137651,6 +138390,37 @@ "name": "$promql_series_identity", "nullable": false, "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, { "dtype": { @@ -137659,48 +138429,38 @@ "name": "value", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 8 - } - } - } - } - ], - "roots": [ - 4, - 9 - ] - }, - "from_logical": "L18", - "id": "P18", - "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap" - }, - { - "dag": { - "edges": [ + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 18, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -137750,12 +138510,12 @@ ] ] }, - "producer": 0, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 19, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -137805,14 +138565,14 @@ ] ] }, - "producer": 1, + "producer": 18, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 20, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -137829,12 +138589,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -137863,12 +138620,12 @@ ] ] }, - "producer": 2, + "producer": 19, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 21, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -137918,12 +138675,12 @@ ] ] }, - "producer": 3, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 22, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -137973,12 +138730,12 @@ ] ] }, - "producer": 5, + "producer": 21, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 23, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -138028,12 +138785,12 @@ ] ] }, - "producer": 6, + "producer": 22, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 24, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -138086,14 +138843,14 @@ ] ] }, - "producer": 7, + "producer": 8, "role": "Input", "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 24, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -138110,9 +138867,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -138141,12 +138901,12 @@ ] ] }, - "producer": 8, + "producer": 11, "role": "Input", "window": "NotApplicable" }, { - "consumer": 10, + "consumer": 24, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -138155,6 +138915,25 @@ "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -138165,43 +138944,33 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 9, + "producer": 14, "role": "Input", "window": "NotApplicable" - } - ], - "nodes": [ + }, { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -138214,9 +138983,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -138245,71 +139017,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 17, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 1, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -138322,9 +139041,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -138353,27 +139075,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } + "producer": 20, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 2, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -138387,8 +139100,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -138420,40 +139133,76 @@ ] ] }, - "output_state": { + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" }, - "reduction": "PerEntity" + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 3, - "output_schema": { + "consumer": 26, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -138497,24 +139246,36 @@ ] ] }, - "output_state": { + "producer": 25, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 27, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -138525,51 +139286,31 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, + "producer": 26, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { + "coverage": null, "guarantee": null, - "id": 5, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -138619,65 +139360,66 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } } }, { + "coverage": null, "guarantee": null, - "id": 6, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -138727,21 +139469,33 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 7, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -138756,8 +139510,8 @@ { "dtype": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "name": "state", @@ -138794,34 +139548,31 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 6, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 8, + "id": 3, "output_schema": { "closed": true, "fields": [ @@ -138871,16 +139622,13 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 7 - } - } + "kind": "finalize_exact_accumulator" } }, { + "coverage": null, "guarantee": null, - "id": 9, + "id": 4, "output_schema": { "closed": true, "fields": [ @@ -138894,22 +139642,9 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "float64" }, - "name": "state", + "name": "sum", "nullable": false, "table": null } @@ -138922,90 +139657,77 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 8, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } } }, { + "coverage": null, "guarantee": null, - "id": 10, + "id": 5, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, @@ -139014,39 +139736,67 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - }, - "summary_input": 9 + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } - } - ], - "roots": [ - 4, - 10 - ] - }, - "from_logical": "L19", - "id": "P19", - "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap (Sum acc)" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -139090,18 +139840,26 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ { @@ -139145,18 +139903,45 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 3, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 8, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -139170,8 +139955,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -139203,18 +139988,37 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 4, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -139258,18 +140062,26 @@ ] ] }, - "producer": 3, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 6, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 10, + "output_schema": { "closed": true, "fields": [ { @@ -139313,18 +140125,45 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 7, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 11, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -139337,9 +140176,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -139368,18 +140210,37 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 8, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 12, + "output_schema": { "closed": true, "fields": [ { @@ -139423,18 +140284,26 @@ ] ] }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 9, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 13, + "output_schema": { "closed": true, "fields": [ { @@ -139478,18 +140347,45 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 10, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 14, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -139502,9 +140398,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -139533,18 +140432,37 @@ ] ] }, - "producer": 9, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 11, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -139588,18 +140506,26 @@ ] ] }, - "producer": 10, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 12, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 16, + "output_schema": { "closed": true, "fields": [ { @@ -139643,18 +140569,45 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 13, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 17, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -139667,9 +140620,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -139698,18 +140654,37 @@ ] ] }, - "producer": 12, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 14, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 18, + "output_schema": { "closed": true, "fields": [ { @@ -139753,18 +140728,26 @@ ] ] }, - "producer": 13, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 15, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 19, + "output_schema": { "closed": true, "fields": [ { @@ -139808,18 +140791,45 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 16, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 20, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -139832,9 +140842,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -139863,18 +140876,37 @@ ] ] }, - "producer": 15, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 17, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 21, + "output_schema": { "closed": true, "fields": [ { @@ -139918,18 +140950,26 @@ ] ] }, - "producer": 16, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 18, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 22, + "output_schema": { "closed": true, "fields": [ { @@ -139973,18 +141013,45 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 19, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 23, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -139997,9 +141064,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -140028,18 +141098,54 @@ ] ] }, - "producer": 18, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } }, { - "consumer": 20, - "data_state": { - "primitive": "Raw", - "timing": "query_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 24, + "output_schema": { "closed": true, "fields": [ { @@ -140052,9 +141158,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -140083,18 +141192,19 @@ ] ] }, - "producer": 19, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 21, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "summary_merge" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 25, + "output_schema": { "closed": true, "fields": [ { @@ -140138,18 +141248,19 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 22, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 26, + "output_schema": { "closed": true, "fields": [ { @@ -140193,18 +141304,34 @@ ] ] }, - "producer": 21, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 23, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "kind": "sort", + "partition_by": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 27, + "output_schema": { "closed": true, "fields": [ { @@ -140248,14 +141375,39 @@ ] ] }, - "producer": 22, - "role": "Input", - "window": "NotApplicable" - }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "limit", + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + ], + "roots": [ + 4, + 27 + ] + }, + "from_logical": "L14", + "id": "P14-m2", + "label": "Q1 exact (Rate acc) · Q2 exact (Sum acc · tumbling 10s panes) · query time, kept: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ { - "consumer": 24, + "consumer": 1, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -140272,12 +141424,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -140306,14 +141455,14 @@ ] ] }, - "producer": 8, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 2, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -140330,12 +141479,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -140364,70 +141510,12 @@ ] ] }, - "producer": 11, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 14, + "producer": 1, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 3, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -140447,8 +141535,8 @@ { "dtype": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "name": "state", @@ -140480,14 +141568,14 @@ ] ] }, - "producer": 17, + "producer": 2, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 4, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -140504,12 +141592,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -140538,14 +141623,14 @@ ] ] }, - "producer": 20, + "producer": 3, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 6, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -140562,12 +141647,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -140596,14 +141678,14 @@ ] ] }, - "producer": 23, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 7, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -140620,12 +141702,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -140654,12 +141733,12 @@ ] ] }, - "producer": 24, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 26, + "consumer": 8, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -140709,12 +141788,12 @@ ] ] }, - "producer": 25, + "producer": 7, "role": "Input", "window": "NotApplicable" }, { - "consumer": 27, + "consumer": 9, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -140735,13 +141814,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CountSketchWithHeap", + "algorithm": "CmsWithHeap", "category": "TopK", "params": { - "CountSketchWithHeap": { - "depth": 125, + "CmsWithHeap": { + "depth": 7, "heap_size": 100, - "width": 30000 + "width": 272 } } }, @@ -140760,7 +141839,7 @@ ] ] }, - "producer": 26, + "producer": 8, "role": "Input", "window": "NotApplicable" } @@ -141294,77 +142373,14 @@ "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - } - }, - { - "guarantee": null, - "id": 7, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, "payload": { "NonASAP": { "TimeRange": { - "child": 6, + "child": 5, "kind": "range", "range": { "nanos": 0, - "secs": 10 + "secs": 60 } } } @@ -141372,87 +142388,7 @@ }, { "guarantee": null, - "id": 8, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 7, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 9, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -141503,38 +142439,122 @@ }, "payload": { "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 10000 - } + "Aggregate": { + "child": 6, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 10, + "id": 8, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null - }, + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -141550,13 +142570,21 @@ "name": "$promql_series_identity", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, @@ -141565,22 +142593,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 9, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 8 } } } - }, + } + ], + "roots": [ + 4, + 9 + ] + }, + "from_logical": "L15", + "id": "P15", + "label": "Q1 exact (Rate acc) · Q2 CMS+heap" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 11, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -141593,12 +142638,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -141627,40 +142669,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 10, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 12, - "output_schema": { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -141704,26 +142724,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 20000 - } - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 13, - "output_schema": { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -141736,9 +142748,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -141767,27 +142782,18 @@ ] ] }, - "output_state": { + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 12, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 14, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -141800,12 +142806,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -141834,40 +142837,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 13, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 3, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 15, - "output_schema": { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -141911,26 +142892,18 @@ ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 30000 - } - } - } - } - }, - { - "guarantee": null, - "id": 16, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -141974,27 +142947,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 15, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 6, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 17, - "output_schema": { + "consumer": 8, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -142041,39 +143005,121 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { + "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 16, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" }, - "reduction": "PerEntity" + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" }, + { + "consumer": 10, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { "guarantee": null, - "id": 18, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -142124,11 +143170,56 @@ }, "payload": { "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 40000 + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } @@ -142136,7 +143227,7 @@ }, { "guarantee": null, - "id": 19, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -142188,11 +143279,11 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 18, + "child": 0, "kind": "range", "range": { "nanos": 0, - "secs": 10 + "secs": 60 } } } @@ -142200,7 +143291,7 @@ }, { "guarantee": null, - "id": 20, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -142215,8 +143306,8 @@ { "dtype": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "name": "state", @@ -142255,11 +143346,11 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 19, + "child": 1, "family": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "filter": null, @@ -142280,7 +143371,7 @@ }, { "guarantee": null, - "id": 21, + "id": 3, "output_schema": { "closed": true, "fields": [ @@ -142329,13 +143420,67 @@ "primitive": "Raw", "timing": "query_time" }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, "payload": { "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 50000 + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } } @@ -142343,7 +143488,7 @@ }, { "guarantee": null, - "id": 22, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -142394,12 +143539,56 @@ }, "payload": { "NonASAP": { - "TimeRange": { - "child": 21, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } @@ -142407,7 +143596,7 @@ }, { "guarantee": null, - "id": 23, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -142421,12 +143610,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -142456,38 +143642,25 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 22, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } } } } }, { "guarantee": null, - "id": 24, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -142541,22 +143714,33 @@ }, "payload": { "ASAP": { - "SummaryMerge": { - "children": [ - 8, - 11, - 14, - 17, - 20, - 23 - ] + "SummaryAgg": { + "child": 6, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 25, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -142608,14 +143792,14 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 24 + "child": 7 } } } }, { "guarantee": null, - "id": 26, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -142631,13 +143815,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CountSketchWithHeap", + "algorithm": "CmsWithHeap", "category": "TopK", "params": { - "CountSketchWithHeap": { - "depth": 125, + "CmsWithHeap": { + "depth": 7, "heap_size": 100, - "width": 30000 + "width": 272 } } }, @@ -142663,17 +143847,17 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 25, + "child": 8, "family": { "Sketch": [ { - "algorithm": "CountSketchWithHeap", + "algorithm": "CmsWithHeap", "category": "TopK", "params": { - "CountSketchWithHeap": { - "depth": 125, + "CmsWithHeap": { + "depth": 7, "heap_size": 100, - "width": 30000 + "width": 272 } } }, @@ -142707,7 +143891,7 @@ }, { "guarantee": null, - "id": 27, + "id": 10, "output_schema": { "closed": true, "fields": [ @@ -142756,7 +143940,7 @@ "k": 10 } }, - "summary_input": 26 + "summary_input": 9 } } } @@ -142764,12 +143948,12 @@ ], "roots": [ 4, - 27 + 10 ] }, - "from_logical": "L20", - "id": "P20", - "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes)" + "from_logical": "L16", + "id": "P16", + "label": "Q1 exact (Rate acc) · Q2 CMS+heap (Sum acc)" }, { "dag": { @@ -143001,7 +144185,7 @@ "consumer": 6, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -143050,13 +144234,13 @@ }, "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 7, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -143105,13 +144289,13 @@ }, "producer": 6, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 8, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -143160,13 +144344,13 @@ }, "producer": 7, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 9, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -143215,13 +144399,13 @@ }, "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 10, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -143270,13 +144454,13 @@ }, "producer": 9, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 11, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -143325,13 +144509,13 @@ }, "producer": 10, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 12, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -143380,13 +144564,13 @@ }, "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 13, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -143435,13 +144619,13 @@ }, "producer": 12, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 14, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -143490,13 +144674,13 @@ }, "producer": 13, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 15, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -143545,13 +144729,13 @@ }, "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 16, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -143600,13 +144784,13 @@ }, "producer": 15, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 17, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -143655,13 +144839,13 @@ }, "producer": 16, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 18, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -143710,13 +144894,13 @@ }, "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 19, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -143765,13 +144949,13 @@ }, "producer": 18, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 20, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -143820,13 +145004,13 @@ }, "producer": 19, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 21, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -143875,13 +145059,13 @@ }, "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 22, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -143930,13 +145114,13 @@ }, "producer": 21, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 23, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -143985,13 +145169,13 @@ }, "producer": 22, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -144049,7 +145233,7 @@ "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -144107,7 +145291,7 @@ "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -144165,7 +145349,7 @@ "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -144223,7 +145407,7 @@ "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -144281,7 +145465,7 @@ "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -144470,13 +145654,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CountSketchWithHeap", + "algorithm": "CmsWithHeap", "category": "TopK", "params": { - "CountSketchWithHeap": { - "depth": 125, + "CmsWithHeap": { + "depth": 7, "heap_size": 100, - "width": 30000 + "width": 272 } } }, @@ -144919,7 +146103,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -145027,7 +146211,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -145090,7 +146274,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -145157,7 +146341,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { @@ -145234,7 +146418,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -145297,7 +146481,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -145364,7 +146548,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { @@ -145441,7 +146625,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -145504,7 +146688,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -145571,7 +146755,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { @@ -145648,7 +146832,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -145711,7 +146895,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -145778,7 +146962,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { @@ -145855,7 +147039,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -145918,7 +147102,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -145985,7 +147169,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { @@ -146062,7 +147246,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -146125,7 +147309,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -146192,7 +147376,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { @@ -146366,13 +147550,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CountSketchWithHeap", + "algorithm": "CmsWithHeap", "category": "TopK", "params": { - "CountSketchWithHeap": { - "depth": 125, + "CmsWithHeap": { + "depth": 7, "heap_size": 100, - "width": 30000 + "width": 272 } } }, @@ -146402,13 +147586,13 @@ "family": { "Sketch": [ { - "algorithm": "CountSketchWithHeap", + "algorithm": "CmsWithHeap", "category": "TopK", "params": { - "CountSketchWithHeap": { - "depth": 125, + "CmsWithHeap": { + "depth": 7, "heap_size": 100, - "width": 30000 + "width": 272 } } }, @@ -146502,9 +147686,9 @@ 27 ] }, - "from_logical": "L20", - "id": "P20-m1", - "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · ingestion time: exact Sum ×6 panes" + "from_logical": "L17", + "id": "P17", + "label": "Q1 exact (Rate acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes)" }, { "dag": { @@ -146736,7 +147920,7 @@ "consumer": 6, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -146785,13 +147969,13 @@ }, "producer": 5, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 7, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -146840,65 +148024,16 @@ }, "producer": 6, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 8, "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "primitive": "Raw", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ - { - "guarantee": null, - "id": 0, - "output_schema": { "closed": true, "fields": [ { @@ -146942,71 +148077,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 7, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 1, - "output_schema": { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -147050,27 +148132,73 @@ ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 10, + "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 2, - "output_schema": { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -147083,12 +148211,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -147117,40 +148242,73 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" + "producer": 10, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" }, - "reduction": "PerEntity" + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 3, - "output_schema": { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -147194,24 +148352,91 @@ ] ] }, - "output_state": { + "producer": 12, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 14, + "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 13, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 4, - "output_schema": { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -147222,52 +148447,88 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 16, + "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 15, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 5, - "output_schema": { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -147311,71 +148572,73 @@ ] ] }, - "output_state": { + "producer": 16, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 18, + "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 6, - "output_schema": { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -147419,29 +148682,91 @@ ] ] }, - "output_state": { + "producer": 18, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 20, + "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 19, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 7, - "output_schema": { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -147452,88 +148777,106 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 6, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" }, - "reduction": { - "Reduce": [ - 2 - ] - } + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 8, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -147549,59 +148892,141 @@ "name": "$promql_series_identity", "nullable": false, "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 22, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "summary_input": 7 + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } - } - ], - "roots": [ - 4, - 8 - ] - }, - "from_logical": "L21", - "id": "P21", - "label": "Q1 exact (Rate acc) · Q2 whole-expression CMS+heap" - }, - { - "dag": { - "edges": [ + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 11, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -147617,9 +149042,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -147648,15 +149076,15 @@ ] ] }, - "producer": 0, + "producer": 14, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -147672,9 +149100,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -147703,15 +149134,15 @@ ] ] }, - "producer": 1, + "producer": 17, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -147728,8 +149159,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -147761,15 +149192,15 @@ ] ] }, - "producer": 2, + "producer": 20, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -147785,9 +149216,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -147816,14 +149250,14 @@ ] ] }, - "producer": 3, + "producer": 23, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 25, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -147840,9 +149274,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -147871,12 +149308,12 @@ ] ] }, - "producer": 5, + "producer": 24, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 26, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -147926,12 +149363,12 @@ ] ] }, - "producer": 6, + "producer": 25, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 27, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -147952,13 +149389,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CountSketchWithHeap", + "algorithm": "CmsWithHeap", "category": "TopK", "params": { - "CountSketchWithHeap": { - "depth": 125, + "CmsWithHeap": { + "depth": 7, "heap_size": 100, - "width": 30000 + "width": 272 } } }, @@ -147977,7 +149414,7 @@ ] ] }, - "producer": 7, + "producer": 26, "role": "Input", "window": "NotApplicable" } @@ -148401,7 +149838,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { @@ -148509,16 +149946,15 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "TimeRange": { + "TimeShift": { "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "shift": { + "at": null, + "offset_ms": 0 } } } @@ -148530,6 +149966,22 @@ "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -148540,77 +149992,33 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "SummaryState", - "timing": "query_time" + "primitive": "Raw", + "timing": "ingestion_time" }, "payload": { - "ASAP": { - "SummaryAgg": { + "NonASAP": { + "TimeRange": { "child": 6, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 } } } @@ -148624,75 +150032,82 @@ "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, "output_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "payload": { "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 + "SummaryAgg": { + "child": 7, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } }, - "summary_input": 7 + "reduction": "PerEntity" } } } - } - ], - "roots": [ - 4, - 8 - ] - }, - "from_logical": "L22", - "id": "P22", - "label": "Q1 exact (Rate acc) · Q2 whole-expression CountSketch+heap" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -148736,18 +150151,26 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { "closed": true, "fields": [ { @@ -148791,18 +150214,27 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 3, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 9, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { "closed": true, "fields": [ { @@ -148815,9 +150247,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -148846,20 +150281,58 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 4, - "data_state": { + "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 10, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 12, + "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -148870,35 +150343,41 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 3, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 6, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } + }, + { + "guarantee": null, + "id": 13, + "output_schema": { "closed": true, "fields": [ { @@ -148942,18 +150421,27 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 7, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 12, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 14, + "output_schema": { "closed": true, "fields": [ { @@ -148966,9 +150454,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -148997,18 +150488,40 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 13, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 8, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -149052,18 +150565,26 @@ ] ] }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 9, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { "closed": true, "fields": [ { @@ -149107,15 +150628,26 @@ ] ] }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 15, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, { "guarantee": null, - "id": 0, + "id": 17, "output_schema": { "closed": true, "fields": [ @@ -149129,9 +150661,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -149161,69 +150696,38 @@ ] }, "output_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] + "ASAP": { + "SummaryAgg": { + "child": 16, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" ] }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 1, + "id": 18, "output_schema": { "closed": true, "fields": [ @@ -149270,16 +150774,15 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 40000 } } } @@ -149287,7 +150790,7 @@ }, { "guarantee": null, - "id": 2, + "id": 19, "output_schema": { "closed": true, "fields": [ @@ -149334,39 +150837,33 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "TimeRange": { + "child": 18, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { "guarantee": null, - "id": 3, + "id": 20, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { @@ -149379,23 +150876,40 @@ "name": "state", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 2, + "child": 19, "family": { "ExactAggregate": [ "Sum", @@ -149413,21 +150927,33 @@ "kind": "unknown_or_signed" } }, - "reduction": { - "Reduce": [ - 2 - ] - } + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 4, + "id": 21, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -149438,35 +150964,40 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { "guarantee": null, - "id": 5, + "id": 22, "output_schema": { "closed": true, "fields": [ @@ -149513,60 +151044,16 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "TimeRange": { + "child": 21, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 } } } @@ -149574,7 +151061,7 @@ }, { "guarantee": null, - "id": 6, + "id": 23, "output_schema": { "closed": true, "fields": [ @@ -149588,9 +151075,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -149620,25 +151110,38 @@ ] }, "output_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "ASAP": { + "SummaryAgg": { + "child": 22, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 7, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -149652,9 +151155,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -149684,32 +151190,27 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 6, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "ASAP": { + "SummaryMerge": { + "children": [ + 8, + 11, + 14, + 17, + 20, + 23 + ] } } } }, { "guarantee": null, - "id": 8, + "id": 25, "output_schema": { "closed": true, "fields": [ @@ -149759,47 +151260,111 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Sort": { - "child": 7, - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false - } - ], - "partition_by": [ - 2 - ] + "ASAP": { + "FinalizeExactAccumulator": { + "child": 24 } } } }, { "guarantee": null, - "id": 9, + "id": 26, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null - }, + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 25, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 27, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -149815,13 +151380,21 @@ "name": "$promql_series_identity", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, @@ -149830,14 +151403,14 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Limit": { - "child": 8, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 26 } } } @@ -149845,12 +151418,12 @@ ], "roots": [ 4, - 9 + 27 ] }, - "from_logical": "L23", - "id": "P23", - "label": "Q1 exact (Sum acc) · Q2 exact" + "from_logical": "L17", + "id": "P17-m1", + "label": "Q1 exact (Rate acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · ingestion time: exact Sum ×6 panes" }, { "dag": { @@ -149968,7 +151541,7 @@ { "consumer": 3, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -149985,9 +151558,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -150023,13 +151599,29 @@ { "consumer": 4, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -150040,19 +151632,17 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -150174,7 +151764,7 @@ { "consumer": 8, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -150191,12 +151781,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -150280,7 +151867,7 @@ ] ] }, - "producer": 8, + "producer": 5, "role": "Input", "window": "NotApplicable" }, @@ -150338,13 +151925,15 @@ "producer": 9, "role": "Input", "window": "NotApplicable" - } - ], - "nodes": [ + }, { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -150388,71 +151977,18 @@ ] ] }, - "output_state": { + "producer": 10, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 12, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, - { - "guarantee": null, - "id": 1, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -150496,27 +152032,18 @@ ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 13, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, - { - "guarantee": null, - "id": 2, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -150560,102 +152087,36 @@ ] ] }, - "output_state": { + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 3, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 2, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -150666,36 +152127,33 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 - } - } - } - }, - { - "guarantee": null, - "id": 5, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -150739,71 +152197,18 @@ ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 16, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, - { - "guarantee": null, - "id": 6, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -150847,27 +152252,18 @@ ] ] }, - "output_state": { + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 17, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, - { - "guarantee": null, - "id": 7, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -150880,12 +152276,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -150914,40 +152307,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 6, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 16, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 8, - "output_schema": { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -150991,22 +152362,18 @@ ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 19, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 7 - } - } - } - }, - { - "guarantee": null, - "id": 9, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -151050,34 +152417,18 @@ ] ] }, - "output_state": { + "producer": 18, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 20, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Sort": { - "child": 8, - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false - } - ], - "partition_by": [ - 2 - ] - } - } - } - }, - { - "guarantee": null, - "id": 10, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -151121,38 +152472,12 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Limit": { - "child": 9, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] - } - } - } - } - ], - "roots": [ - 4, - 10 - ] - }, - "from_logical": "L24", - "id": "P24", - "label": "Q1 exact (Sum acc) · Q2 exact (Sum acc)" - }, - { - "dag": { - "edges": [ + "producer": 19, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 21, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -151202,12 +152527,12 @@ ] ] }, - "producer": 0, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 22, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -151257,12 +152582,12 @@ ] ] }, - "producer": 1, + "producer": 21, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 23, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -151312,12 +152637,12 @@ ] ] }, - "producer": 2, + "producer": 22, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 24, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -151328,10 +152653,10 @@ "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { @@ -151344,23 +152669,40 @@ "name": "state", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 3, + "producer": 8, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 24, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -151377,9 +152719,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -151408,14 +152753,14 @@ ] ] }, - "producer": 5, + "producer": 11, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 24, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -151432,9 +152777,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -151463,14 +152811,14 @@ ] ] }, - "producer": 6, + "producer": 14, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 24, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -151487,9 +152835,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -151518,14 +152869,14 @@ ] ] }, - "producer": 7, + "producer": 17, "role": "Input", "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 24, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -151542,9 +152893,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -151573,14 +152927,14 @@ ] ] }, - "producer": 5, + "producer": 20, "role": "Input", "window": "NotApplicable" }, { - "consumer": 10, + "consumer": 24, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -151597,9 +152951,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -151628,14 +152985,14 @@ ] ] }, - "producer": 9, + "producer": 23, "role": "Input", "window": "NotApplicable" }, { - "consumer": 11, + "consumer": 25, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -151652,9 +153009,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -151683,12 +153043,12 @@ ] ] }, - "producer": 10, + "producer": 24, "role": "Input", "window": "NotApplicable" }, { - "consumer": 12, + "consumer": 26, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -151738,36 +153098,20 @@ ] ] }, - "producer": 5, + "producer": 25, "role": "Input", "window": "NotApplicable" }, { - "consumer": 13, + "consumer": 27, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -151778,33 +153122,44 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 12, + "producer": 26, "role": "Input", "window": "NotApplicable" - }, + } + ], + "nodes": [ { - "consumer": 14, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -151848,18 +153203,72 @@ ] ] }, - "producer": 13, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 15, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -151903,73 +153312,39 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 16, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null + "population": {}, + "time_ms": null } ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 15, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 17, - "data_state": { - "primitive": "Raw", - "timing": "query_time" + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -151982,9 +153357,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -152013,18 +153391,37 @@ ] ] }, - "producer": 16, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 18, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { @@ -152068,36 +153465,21 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 19, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 4, + "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -152108,33 +153490,52 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 18, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 20, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ { @@ -152178,18 +153579,72 @@ ] ] }, - "producer": 19, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 21, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -152233,18 +153688,26 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 22, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ { @@ -152288,73 +153751,45 @@ ] ] }, - "producer": 21, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 23, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } } ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 22, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 8, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -152401,18 +153836,37 @@ ] ] }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { + "output_state": { "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -152425,12 +153879,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -152459,18 +153910,26 @@ ] ] }, - "producer": 11, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 10, + "output_schema": { "closed": true, "fields": [ { @@ -152483,12 +153942,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -152517,18 +153973,45 @@ ] ] }, - "producer": 14, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 11, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -152575,18 +154058,37 @@ ] ] }, - "producer": 17, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { + "output_state": { "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 12, + "output_schema": { "closed": true, "fields": [ { @@ -152599,12 +154101,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -152633,18 +154132,26 @@ ] ] }, - "producer": 20, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 13, + "output_schema": { "closed": true, "fields": [ { @@ -152657,12 +154164,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -152691,18 +154195,45 @@ ] ] }, - "producer": 23, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 25, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 14, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -152749,18 +154280,37 @@ ] ] }, - "producer": 24, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 26, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -152804,18 +154354,26 @@ ] ] }, - "producer": 25, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 27, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 16, + "output_schema": { "closed": true, "fields": [ { @@ -152859,15 +154417,44 @@ ] ] }, - "producer": 26, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 0, + "id": 17, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -152881,9 +154468,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -152913,69 +154503,35 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 1, + "id": 18, "output_schema": { "closed": true, "fields": [ @@ -153025,21 +154581,20 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 } } } }, { + "coverage": null, "guarantee": null, - "id": 2, + "id": 19, "output_schema": { "closed": true, "fields": [ @@ -153089,36 +154644,48 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 3, + "id": 20, + "kept": true, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { @@ -153131,55 +154698,7 @@ "name": "state", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 2, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -153190,35 +154709,51 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 5, + "id": 21, "output_schema": { "closed": true, "fields": [ @@ -153268,65 +154803,20 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 } } } }, { + "coverage": null, "guarantee": null, - "id": 6, + "id": 22, "output_schema": { "closed": true, "fields": [ @@ -153376,20 +154866,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 0 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 7, + "id": 23, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -153403,9 +154912,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -153435,25 +154947,52 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 6, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 8, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -153506,34 +155045,13 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 7, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } + "kind": "summary_merge" } }, { + "coverage": null, "guarantee": null, - "id": 9, + "id": 25, "output_schema": { "closed": true, "fields": [ @@ -153583,39 +155101,28 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 10000 - } - } - } + "kind": "finalize_exact_accumulator" } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 10, + "id": 26, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -153626,122 +155133,152 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 9, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] } } }, { + "coverage": null, "guarantee": null, - "id": 11, + "id": 27, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { "Plain": "utf8" }, - "name": "job", - "nullable": true, + "name": "$promql_series_identity", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 10, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 } } } - }, + } + ], + "roots": [ + 4, + 27 + ] + }, + "from_logical": "L17", + "id": "P17-m2", + "label": "Q1 exact (Rate acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · query time, kept: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 12, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -153785,26 +155322,18 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 20000 - } - } - } - } - }, - { - "guarantee": null, - "id": 13, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -153848,27 +155377,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 12, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 14, - "output_schema": { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -153882,8 +155402,8 @@ { "dtype": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "name": "state", @@ -153915,40 +155435,73 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 13, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" }, - "reduction": "PerEntity" + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 15, - "output_schema": { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -153992,26 +155545,18 @@ ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 30000 - } - } - } - } - }, - { - "guarantee": null, - "id": 16, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -154055,27 +155600,18 @@ ] ] }, - "output_state": { + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 15, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 17, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -154088,12 +155624,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -154122,39 +155655,66 @@ ] ] }, - "output_state": { + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 16, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "reduction": "PerEntity" + "name": "state", + "nullable": false, + "table": null } - } - } - }, + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { "guarantee": null, - "id": 18, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -154205,11 +155765,56 @@ }, "payload": { "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 40000 + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } @@ -154217,7 +155822,7 @@ }, { "guarantee": null, - "id": 19, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -154269,11 +155874,11 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 18, + "child": 0, "kind": "range", "range": { "nanos": 0, - "secs": 10 + "secs": 60 } } } @@ -154281,7 +155886,7 @@ }, { "guarantee": null, - "id": 20, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -154296,8 +155901,8 @@ { "dtype": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "name": "state", @@ -154336,11 +155941,11 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 19, + "child": 1, "family": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "filter": null, @@ -154361,7 +155966,7 @@ }, { "guarantee": null, - "id": 21, + "id": 3, "output_schema": { "closed": true, "fields": [ @@ -154411,39 +156016,19 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 50000 - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 } } } }, { "guarantee": null, - "id": 22, + "id": 4, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -154454,17 +156039,16 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -154475,12 +156059,23 @@ }, "payload": { "NonASAP": { - "TimeRange": { - "child": 21, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } } @@ -154488,7 +156083,7 @@ }, { "guarantee": null, - "id": 23, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -154502,12 +156097,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -154537,38 +156129,69 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 22, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - }, - "reduction": "PerEntity" + } } } } }, { "guarantee": null, - "id": 24, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -154582,12 +156205,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -154617,27 +156237,25 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 8, - 11, - 14, - 17, - 20, - 23 - ] + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } } } } }, { "guarantee": null, - "id": 25, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -154687,35 +156305,31 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 24 + "NonASAP": { + "Aggregate": { + "child": 6, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 26, + "id": 8, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -154726,89 +156340,118 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Sort": { - "child": 25, - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } }, - "nulls_first": false + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } - ], - "partition_by": [ - 2 - ] + }, + "reduction": { + "Reduce": [ + 2 + ] + } } } } }, { "guarantee": null, - "id": 27, + "id": 9, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { "Plain": "utf8" }, - "name": "job", - "nullable": true, + "name": "$promql_series_identity", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, @@ -154817,14 +156460,14 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Limit": { - "child": 26, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 8 } } } @@ -154832,12 +156475,12 @@ ], "roots": [ 4, - 27 + 9 ] }, - "from_logical": "L25", - "id": "P25", - "label": "Q1 exact (Sum acc) · Q2 exact (Sum acc · tumbling 10s panes)" + "from_logical": "L18", + "id": "P18", + "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap" }, { "dag": { @@ -154955,7 +156598,7 @@ { "consumer": 3, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -154972,9 +156615,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -155010,13 +156656,29 @@ { "consumer": 4, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -155027,19 +156689,17 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -155052,7 +156712,7 @@ "consumer": 6, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -155101,13 +156761,13 @@ }, "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 7, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -155156,13 +156816,13 @@ }, "producer": 6, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 8, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -155178,9 +156838,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -155211,13 +156874,13 @@ }, "producer": 7, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 9, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -155264,36 +156927,20 @@ ] ] }, - "producer": 5, + "producer": 8, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 10, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -155304,33 +156951,43 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "producer": 9, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, + "window": "NotApplicable" + } + ], + "nodes": [ { - "consumer": 11, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -155374,18 +157031,71 @@ ] ] }, - "producer": 10, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 12, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -155429,18 +157139,27 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 13, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -155453,9 +157172,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -155484,18 +157206,40 @@ ] ] }, - "producer": 12, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 14, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { @@ -155539,36 +157283,24 @@ ] ] }, - "producer": 13, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 15, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -155579,33 +157311,52 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 5, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 16, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ { @@ -155649,18 +157400,71 @@ ] ] }, - "producer": 15, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 17, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -155704,18 +157508,27 @@ ] ] }, - "producer": 16, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 18, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ { @@ -155728,9 +157541,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -155759,18 +157575,40 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 19, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -155814,36 +157652,116 @@ ] ] }, - "producer": 18, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 20, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 7 + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null - }, + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 8, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -155859,25 +157777,59 @@ "name": "$promql_series_identity", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, - "producer": 19, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 9 + } + } + } + } + ], + "roots": [ + 4, + 10 + ] + }, + "from_logical": "L19", + "id": "P19", + "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap (Sum acc)" + }, + { + "dag": { + "edges": [ { - "consumer": 21, + "consumer": 1, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -155924,15 +157876,15 @@ ] ] }, - "producer": 5, + "producer": 0, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 22, + "consumer": 2, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -155979,15 +157931,15 @@ ] ] }, - "producer": 21, + "producer": 1, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 3, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -156003,9 +157955,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -156034,15 +157989,15 @@ ] ] }, - "producer": 22, + "producer": 2, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 4, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -156058,12 +158013,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -156092,15 +158044,15 @@ ] ] }, - "producer": 8, + "producer": 3, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 6, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -156116,12 +158068,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -156150,15 +158099,15 @@ ] ] }, - "producer": 11, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 7, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -156174,12 +158123,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -156208,15 +158154,15 @@ ] ] }, - "producer": 14, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 8, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -156232,12 +158178,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -156266,15 +158209,15 @@ ] ] }, - "producer": 17, + "producer": 7, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 9, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -156290,12 +158233,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -156324,15 +158264,15 @@ ] ] }, - "producer": 20, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 10, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -156348,12 +158288,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -156382,14 +158319,14 @@ ] ] }, - "producer": 23, + "producer": 9, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 11, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -156406,12 +158343,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -156440,12 +158374,12 @@ ] ] }, - "producer": 24, + "producer": 10, "role": "Input", "window": "NotApplicable" }, { - "consumer": 26, + "consumer": 12, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -156495,12 +158429,12 @@ ] ] }, - "producer": 25, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 27, + "consumer": 13, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -156550,16 +158484,18 @@ ] ] }, - "producer": 26, + "producer": 12, "role": "Input", "window": "NotApplicable" - } - ], - "nodes": [ + }, { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -156603,71 +158539,18 @@ ] ] }, - "output_state": { + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, - { - "guarantee": null, - "id": 1, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -156711,27 +158594,18 @@ ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 16, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, - { - "guarantee": null, - "id": 2, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -156775,102 +158649,36 @@ ] ] }, - "output_state": { + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 17, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 3, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 2, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -156881,36 +158689,33 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 18, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 - } - } - } - }, - { - "guarantee": null, - "id": 5, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -156954,71 +158759,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 5, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 6, - "output_schema": { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -157062,26 +158814,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - } + "producer": 18, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 7, - "output_schema": { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -157125,27 +158869,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 6, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 19, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 8, - "output_schema": { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -157158,12 +158893,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -157192,40 +158924,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 7, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 5, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 9, - "output_schema": { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -157269,26 +158979,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 10000 - } - } - } - } + "producer": 21, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 10, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -157332,27 +159034,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 9, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 22, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 11, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -157399,40 +159092,76 @@ ] ] }, - "output_state": { + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 10, - "family": { + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { "ExactAggregate": [ "Sum", "Sum" ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" }, - "reduction": "PerEntity" + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 11, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 12, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -157445,9 +159174,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -157476,26 +159208,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 20000 - } - } - } - } + "producer": 14, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 13, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -157508,9 +159232,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -157539,27 +159266,76 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "producer": 17, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 12, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 14, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -157606,39 +159382,179 @@ ] ] }, - "output_state": { + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 13, - "family": { + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { "ExactAggregate": [ "Sum", "Sum" ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" }, - "reduction": "PerEntity" + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 26, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 25, + "role": "Input", + "window": "NotApplicable" }, + { + "consumer": 27, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 26, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { "guarantee": null, - "id": 15, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -157685,15 +159601,60 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 30000 + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } @@ -157701,7 +159662,7 @@ }, { "guarantee": null, - "id": 16, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -157748,16 +159709,16 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 15, + "child": 0, "kind": "range", "range": { "nanos": 0, - "secs": 10 + "secs": 60 } } } @@ -157765,7 +159726,7 @@ }, { "guarantee": null, - "id": 17, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -157780,8 +159741,8 @@ { "dtype": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "name": "state", @@ -157815,16 +159776,16 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 16, + "child": 1, "family": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "filter": null, @@ -157845,7 +159806,7 @@ }, { "guarantee": null, - "id": 18, + "id": 3, "output_schema": { "closed": true, "fields": [ @@ -157892,42 +159853,22 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 40000 - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 } } } }, { "guarantee": null, - "id": 19, + "id": 4, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -157938,33 +159879,43 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { - "TimeRange": { - "child": 18, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } } @@ -157972,7 +159923,7 @@ }, { "guarantee": null, - "id": 20, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -157986,12 +159937,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -158021,38 +159969,69 @@ ] }, "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 19, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - }, - "reduction": "PerEntity" + } } } } }, { "guarantee": null, - "id": 21, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -158099,7 +160078,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -158107,7 +160086,7 @@ "child": 5, "shift": { "at": null, - "offset_ms": 50000 + "offset_ms": 0 } } } @@ -158115,7 +160094,7 @@ }, { "guarantee": null, - "id": 22, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -158162,12 +160141,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 21, + "child": 6, "kind": "range", "range": { "nanos": 0, @@ -158179,7 +160158,7 @@ }, { "guarantee": null, - "id": 23, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -158229,12 +160208,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 22, + "child": 7, "family": { "ExactAggregate": [ "Sum", @@ -158259,7 +160238,7 @@ }, { "guarantee": null, - "id": 24, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -158273,12 +160252,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -158308,27 +160284,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 8, - 11, - 14, - 17, - 20, - 23 - ] + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 10000 + } } } } }, { "guarantee": null, - "id": 25, + "id": 10, "output_schema": { "closed": true, "fields": [ @@ -158378,16 +160351,21 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 24 + "NonASAP": { + "TimeRange": { + "child": 9, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { "guarantee": null, - "id": 26, + "id": 11, "output_schema": { "closed": true, "fields": [ @@ -158401,9 +160379,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -158433,32 +160414,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Sort": { - "child": 25, - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false + "ASAP": { + "SummaryAgg": { + "child": 10, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - ], - "partition_by": [ - 2 - ] + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 27, + "id": 12, "output_schema": { "closed": true, "fields": [ @@ -158509,38 +160496,20 @@ }, "payload": { "NonASAP": { - "Limit": { - "child": 26, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 20000 + } } } } - } - ], - "roots": [ - 4, - 27 - ] - }, - "from_logical": "L25", - "id": "P25-m1", - "label": "Q1 exact (Sum acc) · Q2 exact (Sum acc · tumbling 10s panes) · ingestion time: exact Sum ×6 panes" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 13, + "output_schema": { "closed": true, "fields": [ { @@ -158584,18 +160553,27 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 12, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 14, + "output_schema": { "closed": true, "fields": [ { @@ -158608,9 +160586,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -158639,18 +160620,40 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 3, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 13, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -158694,20 +160697,44 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 4, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -158718,35 +160745,42 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 3, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 6, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 15, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 17, + "output_schema": { "closed": true, "fields": [ { @@ -158759,9 +160793,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -158790,18 +160827,40 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 7, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 16, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 18, + "output_schema": { "closed": true, "fields": [ { @@ -158845,18 +160904,26 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 8, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + } + }, + { + "guarantee": null, + "id": 19, + "output_schema": { "closed": true, "fields": [ { @@ -158900,66 +160967,26 @@ ] ] }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 9, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null + "payload": { + "NonASAP": { + "TimeRange": { + "child": 18, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + } + } + }, { "guarantee": null, - "id": 0, + "id": 20, "output_schema": { "closed": true, "fields": [ @@ -158973,9 +161000,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -159005,69 +161035,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] + "ASAP": { + "SummaryAgg": { + "child": 19, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" ] }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 1, + "id": 21, "output_schema": { "closed": true, "fields": [ @@ -159118,12 +161117,11 @@ }, "payload": { "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 50000 } } } @@ -159131,7 +161129,7 @@ }, { "guarantee": null, - "id": 2, + "id": 22, "output_schema": { "closed": true, "fields": [ @@ -159182,35 +161180,29 @@ }, "payload": { "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "TimeRange": { + "child": 21, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { "guarantee": null, - "id": 3, + "id": 23, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { @@ -159223,112 +161215,6 @@ "name": "state", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 2, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "sum", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 - } - } - } - }, - { - "guarantee": null, - "id": 5, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null }, { "dtype": { @@ -159356,69 +161242,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] + "ASAP": { + "SummaryAgg": { + "child": 22, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" ] }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 6, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -159432,9 +161287,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -159464,25 +161322,27 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "ASAP": { + "SummaryMerge": { + "children": [ + 8, + 11, + 14, + 17, + 20, + 23 + ] } } } }, { "guarantee": null, - "id": 7, + "id": 25, "output_schema": { "closed": true, "fields": [ @@ -159532,28 +161392,16 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 6, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 24 } } } }, { "guarantee": null, - "id": 8, + "id": 26, "output_schema": { "closed": true, "fields": [ @@ -159569,13 +161417,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CmsWithHeap", + "algorithm": "CountSketchWithHeap", "category": "TopK", "params": { - "CmsWithHeap": { - "depth": 7, + "CountSketchWithHeap": { + "depth": 125, "heap_size": 100, - "width": 272 + "width": 30000 } } }, @@ -159601,17 +161449,17 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 7, + "child": 25, "family": { "Sketch": [ { - "algorithm": "CmsWithHeap", + "algorithm": "CountSketchWithHeap", "category": "TopK", "params": { - "CmsWithHeap": { - "depth": 7, + "CountSketchWithHeap": { + "depth": 125, "heap_size": 100, - "width": 272 + "width": 30000 } } }, @@ -159645,7 +161493,7 @@ }, { "guarantee": null, - "id": 9, + "id": 27, "output_schema": { "closed": true, "fields": [ @@ -159694,7 +161542,7 @@ "k": 10 } }, - "summary_input": 8 + "summary_input": 26 } } } @@ -159702,12 +161550,12 @@ ], "roots": [ 4, - 9 + 27 ] }, - "from_logical": "L26", - "id": "P26", - "label": "Q1 exact (Sum acc) · Q2 CMS+heap" + "from_logical": "L20", + "id": "P20", + "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes)" }, { "dag": { @@ -159825,7 +161673,7 @@ { "consumer": 3, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -159842,9 +161690,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -159880,13 +161731,29 @@ { "consumer": 4, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -159897,19 +161764,17 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -159922,7 +161787,7 @@ "consumer": 6, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -159971,13 +161836,13 @@ }, "producer": 5, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 7, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -160026,13 +161891,13 @@ }, "producer": 6, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 8, "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "primitive": "Raw", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -160048,12 +161913,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -160084,13 +161946,13 @@ }, "producer": 7, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 9, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -160137,67 +161999,18 @@ ] ] }, - "producer": 8, + "producer": 5, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 10, "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "primitive": "Raw", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 9, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ - { - "guarantee": null, - "id": 0, - "output_schema": { "closed": true, "fields": [ { @@ -160241,71 +162054,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 9, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 1, - "output_schema": { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -160349,27 +162109,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } + "producer": 10, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 2, - "output_schema": { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -160413,142 +162164,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 3, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 2, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 4, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "sum", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { + "consumer": 13, + "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 - } - } - } - }, - { - "guarantee": null, - "id": 5, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -160592,71 +162219,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 12, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 6, - "output_schema": { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -160700,27 +162274,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } + "producer": 13, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 7, - "output_schema": { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -160733,12 +162298,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -160767,40 +162329,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 6, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 8, - "output_schema": { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -160844,116 +162384,36 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 7 - } - } - } + "producer": 15, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 9, - "output_schema": { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 8, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 10, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -160969,59 +162429,25 @@ "name": "$promql_series_identity", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 9 - } - } - } - } - ], - "roots": [ - 4, - 10 - ] - }, - "from_logical": "L27", - "id": "P27", - "label": "Q1 exact (Sum acc) · Q2 CMS+heap (Sum acc)" - }, - { - "dag": { - "edges": [ + "producer": 16, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, { - "consumer": 1, + "consumer": 18, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -161068,15 +162494,15 @@ ] ] }, - "producer": 0, + "producer": 5, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 2, + "consumer": 19, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -161123,15 +162549,15 @@ ] ] }, - "producer": 1, + "producer": 18, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 3, + "consumer": 20, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -161178,56 +162604,15 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 4, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 3, + "producer": 19, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 6, + "consumer": 21, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -161276,13 +162661,13 @@ }, "producer": 5, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 7, + "consumer": 22, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -161329,15 +162714,15 @@ ] ] }, - "producer": 6, + "producer": 21, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 8, + "consumer": 23, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -161384,15 +162769,15 @@ ] ] }, - "producer": 7, + "producer": 22, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 9, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -161408,9 +162793,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -161439,15 +162827,15 @@ ] ] }, - "producer": 5, + "producer": 8, "role": "Input", "window": "NotApplicable" }, { - "consumer": 10, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -161463,9 +162851,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -161494,15 +162885,15 @@ ] ] }, - "producer": 9, + "producer": 11, "role": "Input", "window": "NotApplicable" }, { - "consumer": 11, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -161518,9 +162909,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -161549,15 +162943,15 @@ ] ] }, - "producer": 10, + "producer": 14, "role": "Input", "window": "NotApplicable" }, { - "consumer": 12, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -161573,9 +162967,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -161604,15 +163001,15 @@ ] ] }, - "producer": 5, + "producer": 17, "role": "Input", "window": "NotApplicable" }, { - "consumer": 13, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -161628,9 +163025,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -161659,15 +163059,15 @@ ] ] }, - "producer": 12, + "producer": 20, "role": "Input", "window": "NotApplicable" }, { - "consumer": 14, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -161683,9 +163083,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -161714,14 +163117,14 @@ ] ] }, - "producer": 13, + "producer": 23, "role": "Input", "window": "NotApplicable" }, { - "consumer": 15, + "consumer": 25, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -161738,9 +163141,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -161769,12 +163175,12 @@ ] ] }, - "producer": 5, + "producer": 24, "role": "Input", "window": "NotApplicable" }, { - "consumer": 16, + "consumer": 26, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -161824,36 +163230,20 @@ ] ] }, - "producer": 15, + "producer": 25, "role": "Input", "window": "NotApplicable" }, { - "consumer": 17, + "consumer": 27, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -161864,33 +163254,43 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 16, + "producer": 26, "role": "Input", "window": "NotApplicable" - }, + } + ], + "nodes": [ { - "consumer": 18, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -161934,18 +163334,71 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 19, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -161989,18 +163442,27 @@ ] ] }, - "producer": 18, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 20, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -162013,9 +163475,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -162044,18 +163509,40 @@ ] ] }, - "producer": 19, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 21, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { @@ -162099,764 +163586,24 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 22, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 21, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 23, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 22, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 11, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 14, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 17, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 20, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 23, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 25, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 24, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 26, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 25, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 27, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 26, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ - { - "guarantee": null, - "id": 0, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 } } } }, { "guarantee": null, - "id": 1, + "id": 4, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -162865,83 +163612,18 @@ "nullable": true, "table": null }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, - { - "guarantee": null, - "id": 2, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "float64" }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -162953,80 +163635,18 @@ "payload": { "NonASAP": { "Aggregate": { - "child": 1, + "child": 3, "filters": [], "having": null, "measures": [ { - "kind": "rate" + "col": null, + "kind": "sum" } ], "output_names": [ "" ], - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 3, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 2, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, "reduction": { "Reduce": [ 2 @@ -163036,48 +163656,6 @@ } } }, - { - "guarantee": null, - "id": 4, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "sum", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 - } - } - } - }, { "guarantee": null, "id": 5, @@ -163127,7 +163705,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { @@ -163235,7 +163813,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { @@ -163298,7 +163876,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { @@ -163365,7 +163943,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { @@ -163442,7 +164020,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { @@ -163505,7 +164083,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { @@ -163572,7 +164150,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { @@ -163649,7 +164227,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { @@ -163712,7 +164290,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { @@ -163779,7 +164357,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { @@ -163856,7 +164434,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { @@ -163919,7 +164497,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { @@ -163986,7 +164564,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { @@ -164063,7 +164641,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { @@ -164126,7 +164704,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { @@ -164193,7 +164771,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { @@ -164270,7 +164848,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { @@ -164333,7 +164911,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { @@ -164400,7 +164978,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { @@ -164574,13 +165152,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CmsWithHeap", + "algorithm": "CountSketchWithHeap", "category": "TopK", "params": { - "CmsWithHeap": { - "depth": 7, + "CountSketchWithHeap": { + "depth": 125, "heap_size": 100, - "width": 272 + "width": 30000 } } }, @@ -164610,13 +165188,13 @@ "family": { "Sketch": [ { - "algorithm": "CmsWithHeap", + "algorithm": "CountSketchWithHeap", "category": "TopK", "params": { - "CmsWithHeap": { - "depth": 7, + "CountSketchWithHeap": { + "depth": 125, "heap_size": 100, - "width": 272 + "width": 30000 } } }, @@ -164710,9 +165288,9 @@ 27 ] }, - "from_logical": "L28", - "id": "P28", - "label": "Q1 exact (Sum acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes)" + "from_logical": "L20", + "id": "P20-m1", + "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · ingestion time: exact Sum ×6 panes" }, { "dag": { @@ -164830,7 +165408,7 @@ { "consumer": 3, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -164847,9 +165425,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -164885,13 +165466,29 @@ { "consumer": 4, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -164902,19 +165499,17 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -164927,7 +165522,7 @@ "consumer": 6, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -164976,13 +165571,13 @@ }, "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 7, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -165031,13 +165626,13 @@ }, "producer": 6, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 8, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -165086,13 +165681,13 @@ }, "producer": 7, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 9, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -165141,13 +165736,13 @@ }, "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 10, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -165196,13 +165791,13 @@ }, "producer": 9, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 11, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -165251,13 +165846,13 @@ }, "producer": 10, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 12, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -165306,13 +165901,13 @@ }, "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 13, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -165361,13 +165956,13 @@ }, "producer": 12, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 14, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -165416,13 +166011,13 @@ }, "producer": 13, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 15, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -165471,13 +166066,13 @@ }, "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 16, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -165526,13 +166121,13 @@ }, "producer": 15, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 17, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -165581,13 +166176,13 @@ }, "producer": 16, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 18, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -165636,13 +166231,13 @@ }, "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 19, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -165691,13 +166286,13 @@ }, "producer": 18, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 20, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -165746,13 +166341,13 @@ }, "producer": 19, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 21, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -165801,13 +166396,13 @@ }, "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 22, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -165856,13 +166451,13 @@ }, "producer": 21, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 23, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -165911,13 +166506,13 @@ }, "producer": 22, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -165975,7 +166570,7 @@ "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -166033,7 +166628,7 @@ "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -166091,7 +166686,7 @@ "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -166149,7 +166744,7 @@ "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -166207,7 +166802,7 @@ "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -166396,13 +166991,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CmsWithHeap", + "algorithm": "CountSketchWithHeap", "category": "TopK", "params": { - "CmsWithHeap": { - "depth": 7, + "CountSketchWithHeap": { + "depth": 125, "heap_size": 100, - "width": 272 + "width": 30000 } } }, @@ -166428,6 +167023,7 @@ ], "nodes": [ { + "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -166479,63 +167075,64 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } } }, { + "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -166587,19 +167184,31 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 2, "output_schema": { @@ -166615,9 +167224,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -166647,34 +167259,54 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, "id": 3, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -166685,58 +167317,31 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 2, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } + "kind": "finalize_exact_accumulator" } }, { + "coverage": null, "guarantee": null, "id": 4, "output_schema": { @@ -166771,14 +167376,30 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } } }, { + "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -166827,66 +167448,67 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } } }, { + "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -166935,21 +167557,21 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 0 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 } } } }, { + "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -166998,24 +167620,42 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 6, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 8, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -167065,35 +167705,32 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 7, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -167142,21 +167779,21 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 10000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 } } } }, { + "coverage": null, "guarantee": null, "id": 10, "output_schema": { @@ -167205,24 +167842,42 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 9, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 11, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -167272,35 +167927,32 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 10, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, "id": 12, "output_schema": { @@ -167349,21 +168001,21 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 20000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 } } } }, { + "coverage": null, "guarantee": null, "id": 13, "output_schema": { @@ -167412,24 +168064,42 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 12, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 14, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -167479,35 +168149,32 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 13, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, "id": 15, "output_schema": { @@ -167556,21 +168223,21 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 30000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 } } } }, { + "coverage": null, "guarantee": null, "id": 16, "output_schema": { @@ -167619,24 +168286,42 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 15, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 17, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -167686,35 +168371,32 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 16, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, "id": 18, "output_schema": { @@ -167763,21 +168445,21 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 40000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 } } } }, { + "coverage": null, "guarantee": null, "id": 19, "output_schema": { @@ -167826,24 +168508,42 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 18, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 20, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -167893,35 +168593,32 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 19, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, "id": 21, "output_schema": { @@ -167970,21 +168667,21 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 50000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 } } } }, { + "coverage": null, "guarantee": null, "id": 22, "output_schema": { @@ -168033,24 +168730,42 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 21, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 23, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -168100,35 +168815,49 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 22, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 24, "output_schema": { @@ -168183,21 +168912,11 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 8, - 11, - 14, - 17, - 20, - 23 - ] - } - } + "kind": "summary_merge" } }, { + "coverage": null, "guarantee": null, "id": 25, "output_schema": { @@ -168249,14 +168968,23 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 24 - } - } + "kind": "finalize_exact_accumulator" } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 26, "output_schema": { @@ -168274,13 +169002,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CmsWithHeap", + "algorithm": "CountSketchWithHeap", "category": "TopK", "params": { - "CmsWithHeap": { - "depth": 7, + "CountSketchWithHeap": { + "depth": 125, "heap_size": 100, - "width": 272 + "width": 30000 } } }, @@ -168304,51 +169032,48 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 25, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" } }, - "reduction": { - "Reduce": [ - 2 - ] + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] } } }, { + "coverage": null, "guarantee": null, "id": 27, "output_schema": { @@ -168392,14 +169117,10 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 26 + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 } } } @@ -168410,9 +169131,9 @@ 27 ] }, - "from_logical": "L28", - "id": "P28-m1", - "label": "Q1 exact (Sum acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · ingestion time: exact Sum ×6 panes" + "from_logical": "L20", + "id": "P20-m2", + "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · query time, kept: exact Sum ×6 panes" }, { "dag": { @@ -168530,7 +169251,7 @@ { "consumer": 3, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -168547,9 +169268,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -168584,47 +169308,6 @@ }, { "consumer": 4, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 3, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 6, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -168674,12 +169357,12 @@ ] ] }, - "producer": 5, + "producer": 3, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 6, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -168729,12 +169412,12 @@ ] ] }, - "producer": 6, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 7, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -168784,12 +169467,12 @@ ] ] }, - "producer": 7, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 8, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -168810,13 +169493,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CountSketchWithHeap", + "algorithm": "CmsWithHeap", "category": "TopK", "params": { - "CountSketchWithHeap": { - "depth": 125, + "CmsWithHeap": { + "depth": 7, "heap_size": 100, - "width": 30000 + "width": 272 } } }, @@ -168835,7 +169518,7 @@ ] ] }, - "producer": 8, + "producer": 7, "role": "Input", "window": "NotApplicable" } @@ -169029,9 +169712,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -169060,62 +169746,6 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 3, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, "output_state": { "primitive": "SummaryState", "timing": "query_time" @@ -169123,11 +169753,11 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 2, + "child": 1, "family": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "filter": null, @@ -169141,21 +169771,33 @@ "kind": "unknown_or_signed" } }, - "reduction": { - "Reduce": [ - 2 - ] - } + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 4, + "id": 3, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -169166,16 +169808,17 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -169187,33 +169830,17 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 3 + "child": 2 } } } }, { "guarantee": null, - "id": 5, + "id": 4, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -169224,17 +169851,16 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -169245,56 +169871,23 @@ }, "payload": { "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } } @@ -169302,7 +169895,7 @@ }, { "guarantee": null, - "id": 6, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -169353,12 +169946,56 @@ }, "payload": { "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } @@ -169366,7 +170003,7 @@ }, { "guarantee": null, - "id": 7, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -169417,27 +170054,20 @@ }, "payload": { "NonASAP": { - "Aggregate": { - "child": 6, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } } } } }, { "guarantee": null, - "id": 8, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -169453,13 +170083,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CountSketchWithHeap", + "algorithm": "CmsWithHeap", "category": "TopK", "params": { - "CountSketchWithHeap": { - "depth": 125, + "CmsWithHeap": { + "depth": 7, "heap_size": 100, - "width": 30000 + "width": 272 } } }, @@ -169485,17 +170115,17 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 7, + "child": 6, "family": { "Sketch": [ { - "algorithm": "CountSketchWithHeap", + "algorithm": "CmsWithHeap", "category": "TopK", "params": { - "CountSketchWithHeap": { - "depth": 125, + "CmsWithHeap": { + "depth": 7, "heap_size": 100, - "width": 30000 + "width": 272 } } }, @@ -169529,7 +170159,7 @@ }, { "guarantee": null, - "id": 9, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -169578,7 +170208,7 @@ "k": 10 } }, - "summary_input": 8 + "summary_input": 7 } } } @@ -169586,12 +170216,12 @@ ], "roots": [ 4, - 9 + 8 ] }, - "from_logical": "L29", - "id": "P29", - "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap" + "from_logical": "L21", + "id": "P21", + "label": "Q1 exact (Rate acc) · Q2 whole-expression CMS+heap" }, { "dag": { @@ -169709,7 +170339,7 @@ { "consumer": 3, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -169726,9 +170356,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -169764,13 +170397,29 @@ { "consumer": 4, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -169781,19 +170430,17 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -169920,6 +170567,55 @@ }, "grouping": "NotApplicable", "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -169932,12 +170628,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -169966,18 +170659,71 @@ ] ] }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 9, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -170021,66 +170767,26 @@ ] ] }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 10, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 9, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + } + } + }, { "guarantee": null, - "id": 0, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -170094,9 +170800,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -170126,69 +170835,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" ] }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 1, + "id": 3, "output_schema": { "closed": true, "fields": [ @@ -170238,40 +170916,19 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 } } } }, { "guarantee": null, - "id": 2, + "id": 4, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -170282,17 +170939,16 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -170304,80 +170960,18 @@ "payload": { "NonASAP": { "Aggregate": { - "child": 1, + "child": 3, "filters": [], "having": null, "measures": [ { - "kind": "rate" + "col": null, + "kind": "sum" } ], "output_names": [ "" ], - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 3, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 2, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, "reduction": { "Reduce": [ 2 @@ -170387,48 +170981,6 @@ } } }, - { - "guarantee": null, - "id": 4, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "sum", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 - } - } - } - }, { "guarantee": null, "id": 5, @@ -170604,145 +171156,6 @@ { "guarantee": null, "id": 7, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 6, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 8, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 7 - } - } - } - }, - { - "guarantee": null, - "id": 9, "output_schema": { "closed": true, "fields": [ @@ -170790,7 +171203,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 8, + "child": 6, "family": { "Sketch": [ { @@ -170834,7 +171247,7 @@ }, { "guarantee": null, - "id": 10, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -170883,7 +171296,7 @@ "k": 10 } }, - "summary_input": 9 + "summary_input": 7 } } } @@ -170891,12 +171304,12 @@ ], "roots": [ 4, - 10 + 8 ] }, - "from_logical": "L30", - "id": "P30", - "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap (Sum acc)" + "from_logical": "L22", + "id": "P22", + "label": "Q1 exact (Rate acc) · Q2 whole-expression CountSketch+heap" }, { "dag": { @@ -171323,18 +171736,16 @@ ] ] }, - "producer": 5, + "producer": 8, "role": "Input", "window": "NotApplicable" - }, + } + ], + "nodes": [ { - "consumer": 10, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -171378,73 +171789,71 @@ ] ] }, - "producer": 9, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 11, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] }, - "name": "$promql_series_identity", - "nullable": false, - "table": null + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 10, - "role": "Input", - "window": "NotApplicable" + } + } }, { - "consumer": 12, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -171488,18 +171897,27 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 13, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -171543,36 +171961,35 @@ ] ] }, - "producer": 12, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 14, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -171583,106 +172000,63 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 13, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 15, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 2, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } }, - "name": "$promql_series_identity", - "nullable": false, - "table": null + "reduction": { + "Reduce": [ + 2 + ] + } } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" + } + } }, { - "consumer": 16, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 4, + "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -171693,33 +172067,36 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 15, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 17, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ { @@ -171763,18 +172140,71 @@ ] ] }, - "producer": 16, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 18, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -171818,18 +172248,27 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 19, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ { @@ -171873,18 +172312,34 @@ ] ] }, - "producer": 18, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 20, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Aggregate": { + "child": 6, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -171928,18 +172383,34 @@ ] ] }, - "producer": 19, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 21, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Sort": { + "child": 7, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -171983,12 +172454,38 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Limit": { + "child": 8, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + } + ], + "roots": [ + 4, + 9 + ] + }, + "from_logical": "L23", + "id": "P23", + "label": "Q1 exact (Sum acc) · Q2 exact" + }, + { + "dag": { + "edges": [ { - "consumer": 22, + "consumer": 1, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -172038,12 +172535,12 @@ ] ] }, - "producer": 21, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 2, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -172093,14 +172590,14 @@ ] ] }, - "producer": 22, + "producer": 1, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 3, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -172117,12 +172614,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -172151,12 +172645,12 @@ ] ] }, - "producer": 8, + "producer": 2, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 4, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -172165,25 +172659,6 @@ "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -172192,45 +172667,6 @@ "nullable": true, "table": null }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 11, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, { "dtype": { "ExactAggregate": [ @@ -172241,40 +172677,23 @@ "name": "state", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 14, + "producer": 3, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 6, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -172291,12 +172710,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -172325,14 +172741,14 @@ ] ] }, - "producer": 17, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 7, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -172349,12 +172765,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -172383,12 +172796,12 @@ ] ] }, - "producer": 20, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 8, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -172441,14 +172854,14 @@ ] ] }, - "producer": 23, + "producer": 7, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 9, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -172465,12 +172878,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -172499,12 +172909,12 @@ ] ] }, - "producer": 24, + "producer": 8, "role": "Input", "window": "NotApplicable" }, { - "consumer": 26, + "consumer": 10, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -172554,58 +172964,7 @@ ] ] }, - "producer": 25, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 27, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 26, + "producer": 9, "role": "Input", "window": "NotApplicable" } @@ -173121,77 +173480,14 @@ "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - } - }, - { - "guarantee": null, - "id": 7, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, "payload": { "NonASAP": { "TimeRange": { - "child": 6, + "child": 5, "kind": "range", "range": { "nanos": 0, - "secs": 10 + "secs": 60 } } } @@ -173199,7 +173495,7 @@ }, { "guarantee": null, - "id": 8, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -173254,7 +173550,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 7, + "child": 6, "family": { "ExactAggregate": [ "Sum", @@ -173279,7 +173575,7 @@ }, { "guarantee": null, - "id": 9, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -173329,20 +173625,16 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 10000 - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 7 } } } }, { "guarantee": null, - "id": 10, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -173393,20 +173685,27 @@ }, "payload": { "NonASAP": { - "TimeRange": { - "child": 9, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "Sort": { + "child": 8, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] } } } }, { "guarantee": null, - "id": 11, + "id": 10, "output_schema": { "closed": true, "fields": [ @@ -173420,12 +173719,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -173455,39 +173751,43 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 10, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "NonASAP": { + "Limit": { + "child": 9, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] } } } - }, + } + ], + "roots": [ + 4, + 10 + ] + }, + "from_logical": "L24", + "id": "P24", + "label": "Q1 exact (Sum acc) · Q2 exact (Sum acc)" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 12, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -173531,26 +173831,18 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 20000 - } - } - } - } - }, - { - "guarantee": null, - "id": 13, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -173594,27 +173886,18 @@ ] ] }, - "output_state": { + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 12, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 14, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -173627,12 +173910,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -173661,40 +173941,59 @@ ] ] }, - "output_state": { + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 13, - "family": { + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { "ExactAggregate": [ "Sum", "Sum" ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "name": "state", + "nullable": false, + "table": null } - } - } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 15, - "output_schema": { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -173738,26 +174037,18 @@ ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 30000 - } - } - } - } - }, - { - "guarantee": null, - "id": 16, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -173801,27 +174092,18 @@ ] ] }, - "output_state": { + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 15, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 17, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -173834,12 +174116,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -173868,40 +174147,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 16, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 7, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 18, - "output_schema": { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -173945,26 +174202,18 @@ ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 10, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 40000 - } - } - } - } - }, - { - "guarantee": null, - "id": 19, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -174008,27 +174257,18 @@ ] ] }, - "output_state": { + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 11, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 18, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 20, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -174041,12 +174281,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -174075,40 +174312,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 19, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 10, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 21, - "output_schema": { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -174152,26 +174367,18 @@ ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 13, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 50000 - } - } - } - } - }, - { - "guarantee": null, - "id": 22, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -174215,27 +174422,18 @@ ] ] }, - "output_state": { + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 21, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 23, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -174248,12 +174446,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -174282,40 +174477,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 22, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 13, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 24, - "output_schema": { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -174328,12 +174501,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -174362,29 +174532,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 8, - 11, - 14, - 17, - 20, - 23 - ] - } - } - } + "producer": 5, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 25, - "output_schema": { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -174428,116 +174587,36 @@ ] ] }, - "output_state": { + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 17, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 24 - } - } - } - }, - { - "guarantee": null, - "id": 26, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 25, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 27, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -174553,56 +174632,22 @@ "name": "$promql_series_identity", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 26 - } - } - } - } - ], - "roots": [ - 4, - 27 - ] - }, - "from_logical": "L31", - "id": "P31", - "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes)" - }, - { - "dag": { - "edges": [ + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 18, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -174652,12 +174697,12 @@ ] ] }, - "producer": 0, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 19, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -174707,12 +174752,12 @@ ] ] }, - "producer": 1, + "producer": 18, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 20, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -174762,20 +174807,36 @@ ] ] }, - "producer": 2, + "producer": 19, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 21, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -174786,32 +174847,30 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 3, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 22, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -174858,15 +174917,15 @@ ] ] }, - "producer": 5, + "producer": 21, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 23, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -174913,15 +174972,15 @@ ] ] }, - "producer": 6, + "producer": 22, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -174937,9 +174996,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -174968,15 +175030,15 @@ ] ] }, - "producer": 7, + "producer": 8, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -174992,9 +175054,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -175023,15 +175088,15 @@ ] ] }, - "producer": 5, + "producer": 11, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 10, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -175047,9 +175112,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -175078,15 +175146,15 @@ ] ] }, - "producer": 9, + "producer": 14, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 11, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -175102,9 +175170,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -175133,15 +175204,15 @@ ] ] }, - "producer": 10, + "producer": 17, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 12, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -175157,9 +175228,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -175188,15 +175262,15 @@ ] ] }, - "producer": 5, + "producer": 20, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 13, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -175212,9 +175286,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -175243,15 +175320,15 @@ ] ] }, - "producer": 12, + "producer": 23, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 14, + "consumer": 25, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -175267,9 +175344,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -175298,15 +175378,15 @@ ] ] }, - "producer": 13, + "producer": 24, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 15, + "consumer": 26, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -175353,15 +175433,15 @@ ] ] }, - "producer": 5, + "producer": 25, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 16, + "consumer": 27, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -175408,903 +175488,6 @@ ] ] }, - "producer": 15, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 17, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 16, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 18, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 5, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 19, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 18, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 20, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 19, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 21, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 5, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 22, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 21, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 23, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 22, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 11, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 14, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 17, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 20, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 23, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 25, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 24, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 26, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 25, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 27, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, "producer": 26, "role": "Input", "window": "NotApplicable" @@ -176711,7 +175894,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -176819,7 +176002,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -176882,7 +176065,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -176949,7 +176132,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { @@ -177026,7 +176209,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -177089,7 +176272,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -177156,7 +176339,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { @@ -177233,7 +176416,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -177296,7 +176479,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -177363,7 +176546,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { @@ -177440,7 +176623,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -177503,7 +176686,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -177570,7 +176753,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { @@ -177647,7 +176830,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -177710,7 +176893,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -177777,7 +176960,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { @@ -177854,7 +177037,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -177917,7 +177100,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -177984,7 +177167,7 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { @@ -178146,6 +177329,22 @@ "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -178156,78 +177355,41 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { + "NonASAP": { + "Sort": { "child": 25, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" + "nulls_first": false } - }, - "reduction": { - "Reduce": [ - 2 - ] - } + ], + "partition_by": [ + 2 + ] } } } @@ -178240,34 +177402,42 @@ "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, @@ -178276,14 +177446,14 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 26 + "NonASAP": { + "Limit": { + "child": 26, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] } } } @@ -178294,9 +177464,9 @@ 27 ] }, - "from_logical": "L31", - "id": "P31-m1", - "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · ingestion time: exact Sum ×6 panes" + "from_logical": "L25", + "id": "P25", + "label": "Q1 exact (Sum acc) · Q2 exact (Sum acc · tumbling 10s panes)" }, { "dag": { @@ -178511,7 +177681,7 @@ "consumer": 6, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -178560,13 +177730,13 @@ }, "producer": 5, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 7, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -178615,18 +177785,34 @@ }, "producer": 6, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 8, "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "primitive": "Raw", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -178637,43 +177823,33 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "producer": 7, "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -178717,71 +177893,73 @@ ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 10, + "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 1, - "output_schema": { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -178825,27 +178003,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } + "producer": 10, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 2, - "output_schema": { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -178889,35 +178058,36 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 3, - "output_schema": { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -178928,63 +178098,106 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" + "producer": 12, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 2, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" }, - "reduction": { - "Reduce": [ - 2 - ] - } + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 13, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 4, - "output_schema": { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -178995,36 +178208,33 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 - } - } - } + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 5, - "output_schema": { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -179068,71 +178278,73 @@ ] ] }, - "output_state": { + "producer": 15, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 17, + "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 16, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 6, - "output_schema": { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -179176,29 +178388,91 @@ ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 19, + "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 18, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 7, - "output_schema": { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -179209,88 +178483,106 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" + "producer": 19, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 6, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" }, - "reduction": { - "Reduce": [ - 2 - ] - } + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 8, - "output_schema": { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -179306,6 +178598,37 @@ "name": "$promql_series_identity", "nullable": false, "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 23, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, { "dtype": { @@ -179314,51 +178637,99 @@ "name": "value", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" + "producer": 22, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "summary_input": 7 + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } - } - ], - "roots": [ - 4, - 8 - ] - }, - "from_logical": "L32", - "id": "P32", - "label": "Q1 exact (Sum acc) · Q2 whole-expression CMS+heap" - }, - { - "dag": { - "edges": [ + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -179374,9 +178745,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -179405,15 +178779,15 @@ ] ] }, - "producer": 0, + "producer": 11, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -179429,9 +178803,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -179460,15 +178837,15 @@ ] ] }, - "producer": 1, + "producer": 14, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -179484,9 +178861,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -179515,20 +178895,39 @@ ] ] }, - "producer": 2, + "producer": 17, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -179537,6 +178936,45 @@ "nullable": true, "table": null }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, { "dtype": { "ExactAggregate": [ @@ -179547,23 +178985,40 @@ "name": "state", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 3, + "producer": 23, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 25, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -179580,9 +179035,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -179611,12 +179069,12 @@ ] ] }, - "producer": 5, + "producer": 24, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 26, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -179666,20 +179124,36 @@ ] ] }, - "producer": 6, + "producer": 25, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 27, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -179690,34 +179164,22 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 7, + "producer": 26, "role": "Input", "window": "NotApplicable" } @@ -180123,7 +179585,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { @@ -180231,16 +179693,15 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "TimeRange": { + "TimeShift": { "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "shift": { + "at": null, + "offset_ms": 0 } } } @@ -180252,6 +179713,22 @@ "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -180262,77 +179739,33 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "SummaryState", - "timing": "query_time" + "primitive": "Raw", + "timing": "ingestion_time" }, "payload": { - "ASAP": { - "SummaryAgg": { + "NonASAP": { + "TimeRange": { "child": 6, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 } } } @@ -180346,75 +179779,82 @@ "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, "output_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "payload": { "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 7 + "SummaryAgg": { + "child": 7, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } - } - ], - "roots": [ - 4, - 8 - ] - }, - "from_logical": "L33", - "id": "P33", - "label": "Q1 exact (Sum acc) · Q2 whole-expression CountSketch+heap" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -180458,18 +179898,26 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { "closed": true, "fields": [ { @@ -180513,18 +179961,27 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 9, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } }, { - "consumer": 3, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 11, + "output_schema": { "closed": true, "fields": [ { @@ -180538,8 +179995,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -180571,18 +180028,40 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 10, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 4, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 12, + "output_schema": { "closed": true, "fields": [ { @@ -180626,20 +180105,44 @@ ] ] }, - "producer": 3, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } }, { - "consumer": 5, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 13, + "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -180650,35 +180153,42 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 4, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 7, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 12, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 14, + "output_schema": { "closed": true, "fields": [ { @@ -180691,9 +180201,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -180722,18 +180235,40 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 13, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 8, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -180777,18 +180312,26 @@ ] ] }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 9, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { "closed": true, "fields": [ { @@ -180832,18 +180375,27 @@ ] ] }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 10, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 15, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 17, + "output_schema": { "closed": true, "fields": [ { @@ -180856,9 +180408,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -180887,15 +180442,39 @@ ] ] }, - "producer": 9, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 16, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, { "guarantee": null, - "id": 0, + "id": 18, "output_schema": { "closed": true, "fields": [ @@ -180942,60 +180521,15 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 40000 } } } @@ -181003,7 +180537,7 @@ }, { "guarantee": null, - "id": 1, + "id": 19, "output_schema": { "closed": true, "fields": [ @@ -181050,16 +180584,16 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 0, + "child": 18, "kind": "range", "range": { "nanos": 0, - "secs": 60 + "secs": 10 } } } @@ -181067,7 +180601,7 @@ }, { "guarantee": null, - "id": 2, + "id": 20, "output_schema": { "closed": true, "fields": [ @@ -181082,8 +180616,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -181117,16 +180651,16 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 1, + "child": 19, "family": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "filter": null, @@ -181147,7 +180681,7 @@ }, { "guarantee": null, - "id": 3, + "id": 21, "output_schema": { "closed": true, "fields": [ @@ -181194,89 +180728,42 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { "guarantee": null, - "id": 4, + "id": 22, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 3, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 5, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -181287,35 +180774,41 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 4 + "NonASAP": { + "TimeRange": { + "child": 21, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { "guarantee": null, - "id": 6, + "id": 23, "output_schema": { "closed": true, "fields": [ @@ -181329,9 +180822,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -181361,69 +180857,38 @@ ] }, "output_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] + "ASAP": { + "SummaryAgg": { + "child": 22, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" ] }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 7, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -181437,9 +180902,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -181469,25 +180937,27 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 6, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "ASAP": { + "SummaryMerge": { + "children": [ + 8, + 11, + 14, + 17, + 20, + 23 + ] } } } }, { "guarantee": null, - "id": 8, + "id": 25, "output_schema": { "closed": true, "fields": [ @@ -181537,28 +181007,16 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 7, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 24 } } } }, { "guarantee": null, - "id": 9, + "id": 26, "output_schema": { "closed": true, "fields": [ @@ -181610,7 +181068,7 @@ "payload": { "NonASAP": { "Sort": { - "child": 8, + "child": 25, "keys": [ { "ascending": false, @@ -181629,7 +181087,7 @@ }, { "guarantee": null, - "id": 10, + "id": 27, "output_schema": { "closed": true, "fields": [ @@ -181681,7 +181139,7 @@ "payload": { "NonASAP": { "Limit": { - "child": 9, + "child": 26, "n": 10, "offset": 0, "partition_by": [ @@ -181693,13 +181151,13 @@ } ], "roots": [ - 5, - 10 + 4, + 27 ] }, - "from_logical": "L34", - "id": "P34", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact" + "from_logical": "L25", + "id": "P25-m1", + "label": "Q1 exact (Sum acc) · Q2 exact (Sum acc · tumbling 10s panes) · ingestion time: exact Sum ×6 panes" }, { "dag": { @@ -181817,7 +181275,7 @@ { "consumer": 3, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -181834,12 +181292,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -181874,6 +181329,47 @@ }, { "consumer": 4, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -181923,20 +181419,36 @@ ] ] }, - "producer": 3, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 7, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -181947,29 +181459,27 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 4, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 8, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -182019,12 +181529,12 @@ ] ] }, - "producer": 6, + "producer": 7, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 9, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -182074,14 +181584,14 @@ ] ] }, - "producer": 7, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 10, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -182098,12 +181608,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -182132,12 +181639,12 @@ ] ] }, - "producer": 8, + "producer": 9, "role": "Input", "window": "NotApplicable" }, { - "consumer": 10, + "consumer": 11, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -182187,12 +181694,12 @@ ] ] }, - "producer": 9, + "producer": 10, "role": "Input", "window": "NotApplicable" }, { - "consumer": 11, + "consumer": 12, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -182242,16 +181749,18 @@ ] ] }, - "producer": 10, + "producer": 5, "role": "Input", "window": "NotApplicable" - } - ], - "nodes": [ + }, { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -182295,71 +181804,18 @@ ] ] }, - "output_state": { + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, - { - "guarantee": null, - "id": 1, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -182403,27 +181859,18 @@ ] ] }, - "output_state": { + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, - { - "guarantee": null, - "id": 2, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -182436,12 +181883,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -182470,40 +181914,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 5, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 3, - "output_schema": { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -182547,91 +181969,36 @@ ] ] }, - "output_state": { + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 17, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 3, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 5, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -182642,36 +182009,33 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 18, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 4 - } - } - } - }, - { - "guarantee": null, - "id": 6, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -182715,71 +182079,18 @@ ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 19, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, - { - "guarantee": null, - "id": 7, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -182823,27 +182134,18 @@ ] ] }, - "output_state": { + "producer": 18, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 20, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 6, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, - { - "guarantee": null, - "id": 8, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -182856,12 +182158,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -182890,40 +182189,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 7, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 19, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 9, - "output_schema": { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -182967,22 +182244,18 @@ ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 8 - } - } - } - }, - { - "guarantee": null, - "id": 10, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -183026,34 +182299,18 @@ ] ] }, - "output_state": { + "producer": 21, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Sort": { - "child": 9, - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false - } - ], - "partition_by": [ - 2 - ] - } - } - } - }, - { - "guarantee": null, - "id": 11, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -183097,40 +182354,14 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Limit": { - "child": 10, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] - } - } - } - } - ], - "roots": [ - 5, - 11 - ] - }, - "from_logical": "L35", - "id": "P35", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact (Sum acc)" - }, - { - "dag": { - "edges": [ + "producer": 22, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 24, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -183147,9 +182378,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -183178,14 +182412,14 @@ ] ] }, - "producer": 0, + "producer": 8, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 24, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -183202,9 +182436,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -183233,12 +182470,12 @@ ] ] }, - "producer": 1, + "producer": 11, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 24, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -183258,8 +182495,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -183291,14 +182528,14 @@ ] ] }, - "producer": 2, + "producer": 14, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 24, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -183315,9 +182552,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -183346,12 +182586,12 @@ ] ] }, - "producer": 3, + "producer": 17, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 24, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -183362,10 +182602,10 @@ "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { @@ -183378,23 +182618,40 @@ "name": "state", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 4, + "producer": 20, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 24, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -183411,9 +182668,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -183442,14 +182702,14 @@ ] ] }, - "producer": 6, + "producer": 23, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 25, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -183466,9 +182726,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -183497,12 +182760,12 @@ ] ] }, - "producer": 7, + "producer": 24, "role": "Input", "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 26, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -183552,12 +182815,12 @@ ] ] }, - "producer": 8, + "producer": 25, "role": "Input", "window": "NotApplicable" }, { - "consumer": 10, + "consumer": 27, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -183607,18 +182870,17 @@ ] ] }, - "producer": 6, + "producer": 26, "role": "Input", "window": "NotApplicable" - }, + } + ], + "nodes": [ { - "consumer": 11, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -183662,18 +182924,72 @@ ] ] }, - "producer": 10, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 12, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -183717,18 +183033,27 @@ ] ] }, - "producer": 11, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 13, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -183772,36 +183097,47 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 14, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -183812,51 +183148,60 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 13, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 15, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 4, + "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -183867,33 +183212,33 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 14, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 16, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ { @@ -183937,18 +183282,72 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 17, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -183992,18 +183391,26 @@ ] ] }, - "producer": 16, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 18, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ { @@ -184047,18 +183454,45 @@ ] ] }, - "producer": 17, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 19, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 8, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -184071,9 +183505,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -184102,18 +183539,37 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 20, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -184157,18 +183613,26 @@ ] ] }, - "producer": 19, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 21, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 10, + "output_schema": { "closed": true, "fields": [ { @@ -184212,18 +183676,45 @@ ] ] }, - "producer": 20, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 22, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 11, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -184236,9 +183727,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -184267,18 +183761,37 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 23, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 12, + "output_schema": { "closed": true, "fields": [ { @@ -184322,18 +183835,26 @@ ] ] }, - "producer": 22, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 13, + "output_schema": { "closed": true, "fields": [ { @@ -184377,18 +183898,45 @@ ] ] }, - "producer": 23, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 25, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 14, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -184435,18 +183983,37 @@ ] ] }, - "producer": 9, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 25, - "data_state": { + "output_state": { "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -184459,12 +184026,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -184493,18 +184057,26 @@ ] ] }, - "producer": 12, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 25, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 16, + "output_schema": { "closed": true, "fields": [ { @@ -184517,12 +184089,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -184551,18 +184120,45 @@ ] ] }, - "producer": 15, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 25, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 17, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -184609,18 +184205,37 @@ ] ] }, - "producer": 18, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 25, - "data_state": { + "output_state": { "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 18, + "output_schema": { "closed": true, "fields": [ { @@ -184633,12 +184248,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -184667,18 +184279,26 @@ ] ] }, - "producer": 21, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 25, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 19, + "output_schema": { "closed": true, "fields": [ { @@ -184691,12 +184311,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -184725,18 +184342,45 @@ ] ] }, - "producer": 24, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 26, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 20, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -184783,18 +184427,37 @@ ] ] }, - "producer": 25, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 27, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 21, + "output_schema": { "closed": true, "fields": [ { @@ -184838,18 +184501,26 @@ ] ] }, - "producer": 26, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 28, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 22, + "output_schema": { "closed": true, "fields": [ { @@ -184893,15 +184564,44 @@ ] ] }, - "producer": 27, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 0, + "id": 23, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -184915,9 +184615,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -184947,69 +184650,52 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 1, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -185023,9 +184709,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -185055,25 +184744,17 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } + "kind": "summary_merge" } }, { + "coverage": null, "guarantee": null, - "id": 2, + "id": 25, "output_schema": { "closed": true, "fields": [ @@ -185087,12 +184768,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -185122,38 +184800,17 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } + "kind": "finalize_exact_accumulator" } }, { + "coverage": null, "guarantee": null, - "id": 3, + "id": 26, "output_schema": { "closed": true, "fields": [ @@ -185203,86 +184860,47 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } + "kind": "relational", + "operator": { + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "kind": "sort", + "partition_by": [ + 2 + ] } } }, { + "coverage": null, "guarantee": null, - "id": 4, + "id": 27, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 3, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 5, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -185293,16 +184911,17 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -185312,17 +184931,38 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 4 - } + "kind": "relational", + "operator": { + "kind": "limit", + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] } } - }, + } + ], + "roots": [ + 4, + 27 + ] + }, + "from_logical": "L25", + "id": "P25-m2", + "label": "Q1 exact (Sum acc) · Q2 exact (Sum acc · tumbling 10s panes) · query time, kept: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 6, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -185366,71 +185006,18 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, - { - "guarantee": null, - "id": 7, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -185474,26 +185061,18 @@ ] ] }, - "output_state": { + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - } - }, - { - "guarantee": null, - "id": 8, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -185537,35 +185116,26 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 7, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 2, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 9, - "output_schema": { + "consumer": 4, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { @@ -185578,66 +185148,27 @@ "name": "state", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 8, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 3, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 10, - "output_schema": { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -185681,26 +185212,18 @@ ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 10000 - } - } - } - } - }, - { - "guarantee": null, - "id": 11, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -185744,27 +185267,18 @@ ] ] }, - "output_state": { + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 10, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 12, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -185777,12 +185291,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -185811,58 +185322,20 @@ ] ] }, - "output_state": { + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 11, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 13, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -185873,40 +185346,42 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 20000 - } - } - } - } - }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { "guarantee": null, - "id": 14, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -185957,100 +185432,64 @@ }, "payload": { "NonASAP": { - "TimeRange": { - "child": 13, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 15, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 14, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - }, - "reduction": "PerEntity" + } } } } }, { "guarantee": null, - "id": 16, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -186101,11 +185540,12 @@ }, "payload": { "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 30000 + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } @@ -186113,7 +185553,7 @@ }, { "guarantee": null, - "id": 17, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -186164,29 +185604,35 @@ }, "payload": { "NonASAP": { - "TimeRange": { - "child": 16, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 18, + "id": 3, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { @@ -186199,28 +185645,11 @@ "name": "state", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -186232,7 +185661,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 17, + "child": 2, "family": { "ExactAggregate": [ "Sum", @@ -186250,33 +185679,21 @@ "kind": "unknown_or_signed" } }, - "reduction": "PerEntity" + "reduction": { + "Reduce": [ + 2 + ] + } } } } }, { "guarantee": null, - "id": 19, + "id": 4, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -186287,17 +185704,16 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -186307,20 +185723,16 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 40000 - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 } } } }, { "guarantee": null, - "id": 20, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -186371,12 +185783,56 @@ }, "payload": { "NonASAP": { - "TimeRange": { - "child": 19, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } @@ -186384,7 +185840,7 @@ }, { "guarantee": null, - "id": 21, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -186398,12 +185854,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -186433,38 +185886,25 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 20, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } } } } }, { "guarantee": null, - "id": 22, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -186515,38 +185955,30 @@ }, "payload": { "NonASAP": { - "TimeShift": { + "Aggregate": { "child": 6, - "shift": { - "at": null, - "offset_ms": 50000 - } + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 23, + "id": 8, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -186557,33 +185989,77 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 22, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] } } } @@ -186591,88 +186067,81 @@ }, { "guarantee": null, - "id": 24, + "id": 9, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { "Plain": "utf8" }, - "name": "job", - "nullable": true, + "name": "$promql_series_identity", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { "ASAP": { - "SummaryAgg": { - "child": 23, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 } }, - "reduction": "PerEntity" + "summary_input": 8 } } } - }, + } + ], + "roots": [ + 4, + 9 + ] + }, + "from_logical": "L26", + "id": "P26", + "label": "Q1 exact (Sum acc) · Q2 CMS+heap" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 25, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -186685,12 +186154,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -186719,29 +186185,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 9, - 12, - 15, - 18, - 21, - 24 - ] - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 26, - "output_schema": { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -186785,22 +186240,18 @@ ] ] }, - "output_state": { + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 25 - } - } - } - }, - { - "guarantee": null, - "id": 27, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -186844,52 +186295,20 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Sort": { - "child": 26, - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false - } - ], - "partition_by": [ - 2 - ] - } - } - } + "producer": 2, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 28, - "output_schema": { + "consumer": 4, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -186900,53 +186319,29 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Limit": { - "child": 27, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] - } - } - } - } - ], - "roots": [ - 5, - 28 - ] - }, - "from_logical": "L36", - "id": "P36", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact (Sum acc · tumbling 10s panes)" - }, - { - "dag": { - "edges": [ + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 6, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -186996,12 +186391,12 @@ ] ] }, - "producer": 0, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 7, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -187051,12 +186446,12 @@ ] ] }, - "producer": 1, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 8, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -187076,8 +186471,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -187109,12 +186504,12 @@ ] ] }, - "producer": 2, + "producer": 7, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 9, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -187164,12 +186559,12 @@ ] ] }, - "producer": 3, + "producer": 8, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 10, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -187188,9 +186583,19 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" ] }, "name": "state", @@ -187205,18 +186610,16 @@ ] ] }, - "producer": 4, + "producer": 9, "role": "Input", "window": "NotApplicable" - }, + } + ], + "nodes": [ { - "consumer": 7, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -187260,45 +186663,98 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 8, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { "dtype": { "Plain": "utf8" }, @@ -187315,18 +186771,27 @@ ] ] }, - "producer": 7, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 9, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -187370,18 +186835,142 @@ ] ] }, - "producer": 8, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } }, { - "consumer": 10, - "data_state": { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 2, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ { @@ -187425,18 +187014,71 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 11, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -187480,18 +187122,27 @@ ] ] }, - "producer": 10, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 12, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ { @@ -187504,9 +187155,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -187535,18 +187189,40 @@ ] ] }, - "producer": 11, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 13, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -187590,36 +187266,116 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 14, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 7 + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null - }, + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 8, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -187635,25 +187391,59 @@ "name": "$promql_series_identity", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, - "producer": 13, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 9 + } + } + } + } + ], + "roots": [ + 4, + 10 + ] + }, + "from_logical": "L27", + "id": "P27", + "label": "Q1 exact (Sum acc) · Q2 CMS+heap (Sum acc)" + }, + { + "dag": { + "edges": [ { - "consumer": 15, + "consumer": 1, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -187700,15 +187490,15 @@ ] ] }, - "producer": 14, + "producer": 0, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 16, + "consumer": 2, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -187755,15 +187545,15 @@ ] ] }, - "producer": 6, + "producer": 1, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 17, + "consumer": 3, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -187810,15 +187600,56 @@ ] ] }, - "producer": 16, + "producer": 2, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 18, + "consumer": 4, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -187865,15 +187696,15 @@ ] ] }, - "producer": 17, + "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 19, + "consumer": 7, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -187922,13 +187753,13 @@ }, "producer": 6, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 20, + "consumer": 8, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -187975,15 +187806,15 @@ ] ] }, - "producer": 19, + "producer": 7, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 21, + "consumer": 9, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -188030,15 +187861,15 @@ ] ] }, - "producer": 20, + "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 22, + "consumer": 10, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -188085,15 +187916,15 @@ ] ] }, - "producer": 6, + "producer": 9, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 11, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -188140,15 +187971,15 @@ ] ] }, - "producer": 22, + "producer": 10, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 12, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -188195,15 +188026,15 @@ ] ] }, - "producer": 23, + "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 13, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -188219,12 +188050,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -188253,15 +188081,15 @@ ] ] }, - "producer": 9, + "producer": 12, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 14, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -188277,12 +188105,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -188311,15 +188136,15 @@ ] ] }, - "producer": 12, + "producer": 13, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 15, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -188335,12 +188160,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -188369,15 +188191,15 @@ ] ] }, - "producer": 15, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 16, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -188393,12 +188215,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -188427,15 +188246,15 @@ ] ] }, - "producer": 18, + "producer": 15, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 17, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -188451,12 +188270,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -188485,15 +188301,15 @@ ] ] }, - "producer": 21, + "producer": 16, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 18, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -188509,12 +188325,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -188543,14 +188356,14 @@ ] ] }, - "producer": 24, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 26, + "consumer": 19, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -188567,12 +188380,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -188601,12 +188411,12 @@ ] ] }, - "producer": 25, + "producer": 18, "role": "Input", "window": "NotApplicable" }, { - "consumer": 27, + "consumer": 20, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -188656,12 +188466,12 @@ ] ] }, - "producer": 26, + "producer": 19, "role": "Input", "window": "NotApplicable" }, { - "consumer": 28, + "consumer": 21, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -188711,16 +188521,18 @@ ] ] }, - "producer": 27, + "producer": 5, "role": "Input", "window": "NotApplicable" - } - ], - "nodes": [ + }, { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -188764,71 +188576,18 @@ ] ] }, - "output_state": { + "producer": 21, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, - { - "guarantee": null, - "id": 1, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -188872,27 +188631,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } + "producer": 22, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 2, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -188906,8 +188656,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -188939,40 +188689,18 @@ ] ] }, - "output_state": { + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 3, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -188985,9 +188713,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -189016,30 +188747,26 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - } + "producer": 11, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 4, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { @@ -189052,55 +188779,181 @@ "name": "state", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { + "producer": 14, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 3, - "family": { + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { "ExactAggregate": [ "Sum", "Sum" ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" }, - "reduction": { - "Reduce": [ - 2 + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 17, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" ] - } + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 5, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -189111,35 +188964,194 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 26, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 4 + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 25, + "role": "Input", + "window": "NotApplicable" }, + { + "consumer": 27, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 26, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { "guarantee": null, - "id": 6, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -189186,7 +189198,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -189247,7 +189259,7 @@ }, { "guarantee": null, - "id": 7, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -189294,15 +189306,16 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 0 + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } @@ -189310,7 +189323,7 @@ }, { "guarantee": null, - "id": 8, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -189357,33 +189370,39 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { - "TimeRange": { - "child": 7, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 9, + "id": 3, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { @@ -189396,6 +189415,112 @@ "name": "state", "nullable": false, "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 2, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, { "dtype": { @@ -189423,38 +189548,69 @@ ] }, "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 8, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - }, - "reduction": "PerEntity" + } } } } }, { "guarantee": null, - "id": 10, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -189501,15 +189657,15 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeShift": { - "child": 6, + "child": 5, "shift": { "at": null, - "offset_ms": 10000 + "offset_ms": 0 } } } @@ -189517,7 +189673,7 @@ }, { "guarantee": null, - "id": 11, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -189564,12 +189720,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 10, + "child": 6, "kind": "range", "range": { "nanos": 0, @@ -189581,7 +189737,7 @@ }, { "guarantee": null, - "id": 12, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -189631,12 +189787,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 11, + "child": 7, "family": { "ExactAggregate": [ "Sum", @@ -189661,7 +189817,7 @@ }, { "guarantee": null, - "id": 13, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -189708,15 +189864,15 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeShift": { - "child": 6, + "child": 5, "shift": { "at": null, - "offset_ms": 20000 + "offset_ms": 10000 } } } @@ -189724,7 +189880,7 @@ }, { "guarantee": null, - "id": 14, + "id": 10, "output_schema": { "closed": true, "fields": [ @@ -189771,12 +189927,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 13, + "child": 9, "kind": "range", "range": { "nanos": 0, @@ -189788,7 +189944,7 @@ }, { "guarantee": null, - "id": 15, + "id": 11, "output_schema": { "closed": true, "fields": [ @@ -189838,12 +189994,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 14, + "child": 10, "family": { "ExactAggregate": [ "Sum", @@ -189868,7 +190024,7 @@ }, { "guarantee": null, - "id": 16, + "id": 12, "output_schema": { "closed": true, "fields": [ @@ -189915,15 +190071,15 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeShift": { - "child": 6, + "child": 5, "shift": { "at": null, - "offset_ms": 30000 + "offset_ms": 20000 } } } @@ -189931,7 +190087,7 @@ }, { "guarantee": null, - "id": 17, + "id": 13, "output_schema": { "closed": true, "fields": [ @@ -189978,12 +190134,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 16, + "child": 12, "kind": "range", "range": { "nanos": 0, @@ -189995,7 +190151,7 @@ }, { "guarantee": null, - "id": 18, + "id": 14, "output_schema": { "closed": true, "fields": [ @@ -190045,12 +190201,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 17, + "child": 13, "family": { "ExactAggregate": [ "Sum", @@ -190075,7 +190231,7 @@ }, { "guarantee": null, - "id": 19, + "id": 15, "output_schema": { "closed": true, "fields": [ @@ -190122,15 +190278,15 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeShift": { - "child": 6, + "child": 5, "shift": { "at": null, - "offset_ms": 40000 + "offset_ms": 30000 } } } @@ -190138,7 +190294,7 @@ }, { "guarantee": null, - "id": 20, + "id": 16, "output_schema": { "closed": true, "fields": [ @@ -190185,12 +190341,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 19, + "child": 15, "kind": "range", "range": { "nanos": 0, @@ -190202,7 +190358,7 @@ }, { "guarantee": null, - "id": 21, + "id": 17, "output_schema": { "closed": true, "fields": [ @@ -190252,12 +190408,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 20, + "child": 16, "family": { "ExactAggregate": [ "Sum", @@ -190282,7 +190438,7 @@ }, { "guarantee": null, - "id": 22, + "id": 18, "output_schema": { "closed": true, "fields": [ @@ -190329,15 +190485,15 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeShift": { - "child": 6, + "child": 5, "shift": { "at": null, - "offset_ms": 50000 + "offset_ms": 40000 } } } @@ -190345,7 +190501,7 @@ }, { "guarantee": null, - "id": 23, + "id": 19, "output_schema": { "closed": true, "fields": [ @@ -190392,12 +190548,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 22, + "child": 18, "kind": "range", "range": { "nanos": 0, @@ -190409,7 +190565,7 @@ }, { "guarantee": null, - "id": 24, + "id": 20, "output_schema": { "closed": true, "fields": [ @@ -190459,12 +190615,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 23, + "child": 19, "family": { "ExactAggregate": [ "Sum", @@ -190489,7 +190645,7 @@ }, { "guarantee": null, - "id": 25, + "id": 21, "output_schema": { "closed": true, "fields": [ @@ -190503,12 +190659,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -190538,27 +190691,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 9, - 12, - 15, - 18, - 21, - 24 - ] + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { "guarantee": null, - "id": 26, + "id": 22, "output_schema": { "closed": true, "fields": [ @@ -190608,16 +190758,21 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 25 + "NonASAP": { + "TimeRange": { + "child": 21, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { "guarantee": null, - "id": 27, + "id": 23, "output_schema": { "closed": true, "fields": [ @@ -190631,9 +190786,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -190663,32 +190821,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Sort": { - "child": 26, - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false + "ASAP": { + "SummaryAgg": { + "child": 22, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - ], - "partition_by": [ - 2 - ] + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 28, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -190702,9 +190866,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -190734,43 +190901,28 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Limit": { - "child": 27, - "n": 10, - "offset": 0, - "partition_by": [ - 2 + "ASAP": { + "SummaryMerge": { + "children": [ + 8, + 11, + 14, + 17, + 20, + 23 ] } } } - } - ], - "roots": [ - 5, - 28 - ] - }, - "from_logical": "L36", - "id": "P36-m1", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact (Sum acc · tumbling 10s panes) · ingestion time: exact Sum ×6 panes" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 25, + "output_schema": { "closed": true, "fields": [ { @@ -190814,12 +190966,181 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 24 + } + } + } }, { - "consumer": 2, + "guarantee": null, + "id": 26, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 25, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 27, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 26 + } + } + } + } + ], + "roots": [ + 4, + 27 + ] + }, + "from_logical": "L28", + "id": "P28", + "label": "Q1 exact (Sum acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes)" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -190869,14 +191190,14 @@ ] ] }, - "producer": 1, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 2, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -190893,12 +191214,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -190927,12 +191245,12 @@ ] ] }, - "producer": 2, + "producer": 1, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 3, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -190982,12 +191300,12 @@ ] ] }, - "producer": 3, + "producer": 2, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 4, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -191023,15 +191341,15 @@ ] ] }, - "producer": 4, + "producer": 3, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 6, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -191078,15 +191396,15 @@ ] ] }, - "producer": 6, + "producer": 5, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 8, + "consumer": 7, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -191133,15 +191451,15 @@ ] ] }, - "producer": 7, + "producer": 6, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 9, + "consumer": 8, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -191188,20 +191506,36 @@ ] ] }, - "producer": 8, + "producer": 7, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 10, + "consumer": 9, "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "primitive": "Raw", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -191212,43 +191546,33 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 9, + "producer": 5, "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -191292,71 +191616,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 9, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 1, - "output_schema": { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -191400,27 +191671,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } + "producer": 10, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 2, - "output_schema": { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -191433,12 +191695,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -191467,40 +191726,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 3, - "output_schema": { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -191544,24 +191781,36 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - } + "producer": 12, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 4, - "output_schema": { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -191572,63 +191821,51 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 3, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } + "producer": 13, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 5, - "output_schema": { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -191639,36 +191876,33 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 4 - } - } - } + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 6, - "output_schema": { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -191712,71 +191946,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 15, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 7, - "output_schema": { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -191820,27 +192001,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 6, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } + "producer": 16, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 8, - "output_schema": { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -191884,36 +192056,36 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 7, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 9, - "output_schema": { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -191924,88 +192096,51 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 8, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } + "producer": 18, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 10, - "output_schema": { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -192021,6 +192156,37 @@ "name": "$promql_series_identity", "nullable": false, "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 19, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, { "dtype": { @@ -192029,51 +192195,41 @@ "name": "value", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 9 - } - } - } - } - ], - "roots": [ - 5, - 10 - ] - }, - "from_logical": "L37", - "id": "P37", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap" - }, - { - "dag": { - "edges": [ + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, { - "consumer": 1, + "consumer": 22, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -192120,15 +192276,15 @@ ] ] }, - "producer": 0, + "producer": 21, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 2, + "consumer": 23, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -192175,15 +192331,15 @@ ] ] }, - "producer": 1, + "producer": 22, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 3, + "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -192200,8 +192356,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -192233,15 +192389,15 @@ ] ] }, - "producer": 2, + "producer": 8, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -192257,9 +192413,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -192288,20 +192447,39 @@ ] ] }, - "producer": 3, + "producer": 11, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -192310,6 +192488,45 @@ "nullable": true, "table": null }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 14, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, { "dtype": { "ExactAggregate": [ @@ -192320,24 +192537,41 @@ "name": "state", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 4, + "producer": 17, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -192353,9 +192587,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -192384,15 +192621,15 @@ ] ] }, - "producer": 6, + "producer": 20, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -192408,9 +192645,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -192439,12 +192679,12 @@ ] ] }, - "producer": 7, + "producer": 23, "role": "Input", "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 25, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -192497,12 +192737,12 @@ ] ] }, - "producer": 8, + "producer": 24, "role": "Input", "window": "NotApplicable" }, { - "consumer": 10, + "consumer": 26, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -192552,12 +192792,12 @@ ] ] }, - "producer": 9, + "producer": 25, "role": "Input", "window": "NotApplicable" }, { - "consumer": 11, + "consumer": 27, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -192603,7 +192843,7 @@ ] ] }, - "producer": 10, + "producer": 26, "role": "Input", "window": "NotApplicable" } @@ -192797,12 +193037,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -192832,30 +193069,23 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { + "NonASAP": { + "Aggregate": { "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" } - }, + ], + "output_names": [ + "" + ], "reduction": "PerEntity" } } @@ -192864,65 +193094,6 @@ { "guarantee": null, "id": 3, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - } - }, - { - "guarantee": null, - "id": 4, "output_schema": { "closed": true, "fields": [ @@ -192960,7 +193131,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 3, + "child": 2, "family": { "ExactAggregate": [ "Sum", @@ -192989,7 +193160,7 @@ }, { "guarantee": null, - "id": 5, + "id": 4, "output_schema": { "closed": true, "fields": [ @@ -193024,14 +193195,14 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 4 + "child": 3 } } } }, { "guarantee": null, - "id": 6, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -193078,7 +193249,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { @@ -193139,7 +193310,7 @@ }, { "guarantee": null, - "id": 7, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -193186,16 +193357,15 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "TimeRange": { - "child": 6, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 0 } } } @@ -193203,7 +193373,7 @@ }, { "guarantee": null, - "id": 8, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -193217,12 +193387,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -193252,29 +193419,96 @@ ] }, "output_state": { - "primitive": "SummaryState", - "timing": "query_time" + "primitive": "Raw", + "timing": "ingestion_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 7, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } }, "reduction": "PerEntity" } @@ -193330,12 +193564,16 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 8 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 10000 + } } } } @@ -193346,6 +193584,22 @@ "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -193356,77 +193610,33 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "SummaryState", - "timing": "query_time" + "primitive": "Raw", + "timing": "ingestion_time" }, "payload": { - "ASAP": { - "SummaryAgg": { + "NonASAP": { + "TimeRange": { "child": 9, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 } } } @@ -193440,75 +193650,82 @@ "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, "output_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "payload": { "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 + "SummaryAgg": { + "child": 10, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } }, - "summary_input": 10 + "reduction": "PerEntity" } } } - } - ], - "roots": [ - 5, - 11 - ] - }, - "from_logical": "L38", - "id": "P38", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap (Sum acc)" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 12, + "output_schema": { "closed": true, "fields": [ { @@ -193552,18 +193769,26 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } + }, + { + "guarantee": null, + "id": 13, + "output_schema": { "closed": true, "fields": [ { @@ -193607,18 +193832,27 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 12, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } }, { - "consumer": 3, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 14, + "output_schema": { "closed": true, "fields": [ { @@ -193632,8 +193866,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -193665,18 +193899,40 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 13, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 4, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -193720,20 +193976,44 @@ ] ] }, - "producer": 3, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } }, { - "consumer": 5, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 16, + "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -193744,35 +194024,42 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 4, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 7, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 15, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 17, + "output_schema": { "closed": true, "fields": [ { @@ -193785,9 +194072,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -193816,18 +194106,40 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 16, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 8, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 18, + "output_schema": { "closed": true, "fields": [ { @@ -193871,18 +194183,26 @@ ] ] }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 9, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + } + }, + { + "guarantee": null, + "id": 19, + "output_schema": { "closed": true, "fields": [ { @@ -193926,18 +194246,27 @@ ] ] }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 10, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 18, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 20, + "output_schema": { "closed": true, "fields": [ { @@ -193950,9 +194279,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -193981,18 +194313,40 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 19, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 11, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 21, + "output_schema": { "closed": true, "fields": [ { @@ -194036,18 +194390,26 @@ ] ] }, - "producer": 10, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 12, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + } + }, + { + "guarantee": null, + "id": 22, + "output_schema": { "closed": true, "fields": [ { @@ -194091,18 +194453,27 @@ ] ] }, - "producer": 11, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 13, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 21, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 23, + "output_schema": { "closed": true, "fields": [ { @@ -194115,9 +194486,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -194146,18 +194520,40 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 22, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 14, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 24, + "output_schema": { "closed": true, "fields": [ { @@ -194170,9 +194566,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -194201,18 +194600,29 @@ ] ] }, - "producer": 13, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 15, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryMerge": { + "children": [ + 8, + 11, + 14, + 17, + 20, + 23 + ] + } + } + } + }, + { + "guarantee": null, + "id": 25, + "output_schema": { "closed": true, "fields": [ { @@ -194256,36 +194666,116 @@ ] ] }, - "producer": 14, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 16, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 24 + } + } + } + }, + { + "guarantee": null, + "id": 26, + "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null - }, + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 25, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 27, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -194301,22 +194791,56 @@ "name": "$promql_series_identity", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 26 + } + } + } + } + ], + "roots": [ + 4, + 27 + ] + }, + "from_logical": "L28", + "id": "P28-m1", + "label": "Q1 exact (Sum acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · ingestion time: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ { - "consumer": 17, + "consumer": 1, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -194366,12 +194890,12 @@ ] ] }, - "producer": 16, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 18, + "consumer": 2, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -194421,12 +194945,12 @@ ] ] }, - "producer": 17, + "producer": 1, "role": "Input", "window": "NotApplicable" }, { - "consumer": 19, + "consumer": 3, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -194476,36 +195000,20 @@ ] ] }, - "producer": 6, + "producer": 2, "role": "Input", "window": "NotApplicable" }, { - "consumer": 20, + "consumer": 4, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -194516,27 +195024,29 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 19, + "producer": 3, "role": "Input", "window": "NotApplicable" }, { - "consumer": 21, + "consumer": 6, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -194586,12 +195096,12 @@ ] ] }, - "producer": 20, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 22, + "consumer": 7, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -194646,7 +195156,7 @@ "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 8, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -194696,12 +195206,12 @@ ] ] }, - "producer": 22, + "producer": 7, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 9, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -194751,14 +195261,14 @@ ] ] }, - "producer": 23, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 10, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -194775,12 +195285,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -194814,9 +195321,9 @@ "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 11, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -194833,12 +195340,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -194867,14 +195371,14 @@ ] ] }, - "producer": 12, + "producer": 10, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 12, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -194891,12 +195395,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -194925,14 +195426,14 @@ ] ] }, - "producer": 15, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 13, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -194949,12 +195450,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -194983,14 +195481,14 @@ ] ] }, - "producer": 18, + "producer": 12, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 14, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -195007,12 +195505,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -195041,14 +195536,14 @@ ] ] }, - "producer": 21, + "producer": 13, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 15, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -195065,12 +195560,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -195099,14 +195591,14 @@ ] ] }, - "producer": 24, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 26, + "consumer": 16, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -195123,12 +195615,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -195157,12 +195646,12 @@ ] ] }, - "producer": 25, + "producer": 15, "role": "Input", "window": "NotApplicable" }, { - "consumer": 27, + "consumer": 17, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -195212,20 +195701,36 @@ ] ] }, - "producer": 26, + "producer": 16, "role": "Input", "window": "NotApplicable" }, { - "consumer": 28, + "consumer": 18, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -195236,43 +195741,33 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 27, + "producer": 5, "role": "Input", "window": "NotApplicable" - } - ], - "nodes": [ + }, { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -195316,71 +195811,18 @@ ] ] }, - "output_state": { + "producer": 18, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 20, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, - { - "guarantee": null, - "id": 1, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -195424,27 +195866,18 @@ ] ] }, - "output_state": { + "producer": 19, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 21, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, - { - "guarantee": null, - "id": 2, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -195457,12 +195890,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -195491,40 +195921,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 5, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 3, - "output_schema": { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -195568,91 +195976,36 @@ ] ] }, - "output_state": { + "producer": 21, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 3, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 5, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -195663,36 +196016,33 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 4 - } - } - } + "producer": 22, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 6, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -195705,9 +196055,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -195736,71 +196089,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 8, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 7, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -195813,9 +196113,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -195844,26 +196147,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - } + "producer": 11, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 8, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -195876,9 +196171,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -195907,27 +196205,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 7, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 14, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 9, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -195974,40 +196263,18 @@ ] ] }, - "output_state": { + "producer": 17, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 8, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 10, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -196020,9 +196287,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -196051,26 +196321,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 10000 - } - } - } - } + "producer": 20, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 11, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -196083,9 +196345,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -196114,27 +196379,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 10, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 23, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 12, - "output_schema": { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -196181,40 +196437,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 11, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 24, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 13, - "output_schema": { + "consumer": 26, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -196258,25 +196492,67 @@ ] ] }, - "output_state": { - "primitive": "Raw", + "producer": 25, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 27, + "data_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 20000 - } + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null } - } - } - }, + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 26, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { + "coverage": null, "guarantee": null, - "id": 14, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -196326,21 +196602,66 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 13, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } } }, { + "coverage": null, "guarantee": null, - "id": 15, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -196354,12 +196675,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -196389,38 +196707,25 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 14, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" } } }, { + "coverage": null, "guarantee": null, - "id": 16, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -196470,39 +196775,106 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 30000 + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" } - } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 17, + "id": 3, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -196513,17 +196885,16 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -196533,21 +196904,13 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 16, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } + "kind": "finalize_exact_accumulator" } }, { + "coverage": null, "guarantee": null, - "id": 18, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -196561,12 +196924,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -196596,38 +196956,70 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 17, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "weight_domain": { - "kind": "unknown_or_signed" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - }, - "reduction": "PerEntity" + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } }, { + "coverage": null, "guarantee": null, - "id": 19, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -196677,20 +197069,20 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 40000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 } } } }, { + "coverage": null, "guarantee": null, - "id": 20, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -196740,21 +197132,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 19, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 21, + "id": 8, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -196807,34 +197217,31 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 20, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 22, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -196884,20 +197291,20 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 50000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 } } } }, { + "coverage": null, "guarantee": null, - "id": 23, + "id": 10, "output_schema": { "closed": true, "fields": [ @@ -196947,21 +197354,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 22, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 24, + "id": 11, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -197014,34 +197439,31 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 23, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 25, + "id": 12, "output_schema": { "closed": true, "fields": [ @@ -197055,12 +197477,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -197090,27 +197509,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 9, - 12, - 15, - 18, - 21, - 24 - ] + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 } } } }, { + "coverage": null, "guarantee": null, - "id": 26, + "id": 13, "output_schema": { "closed": true, "fields": [ @@ -197160,111 +197576,61 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 25 - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 27, + "id": 14, + "kept": true, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" + "ExactAggregate": [ + "Sum", + "Sum" ] }, "name": "state", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 26, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 28, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -197280,62 +197646,47 @@ "name": "$promql_series_identity", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 27 + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } - } - ], - "roots": [ - 5, - 28 - ] - }, - "from_logical": "L39", - "id": "P39", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes)" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -197379,18 +197730,26 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 16, + "output_schema": { "closed": true, "fields": [ { @@ -197434,18 +197793,45 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 3, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 17, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -197459,8 +197845,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -197492,18 +197878,37 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 4, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 18, + "output_schema": { "closed": true, "fields": [ { @@ -197547,59 +197952,26 @@ ] ] }, - "producer": 3, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 5, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 4, - "role": "Input", - "window": "NotApplicable" + } + } }, { - "consumer": 7, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 19, + "output_schema": { "closed": true, "fields": [ { @@ -197643,18 +198015,45 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 8, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 20, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -197667,9 +198066,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -197698,18 +198100,37 @@ ] ] }, - "producer": 7, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } }, { - "consumer": 9, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 21, + "output_schema": { "closed": true, "fields": [ { @@ -197753,18 +198174,26 @@ ] ] }, - "producer": 8, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 10, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 22, + "output_schema": { "closed": true, "fields": [ { @@ -197808,18 +198237,45 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 11, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 23, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -197832,9 +198288,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -197863,18 +198322,54 @@ ] ] }, - "producer": 10, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } }, { - "consumer": 12, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 24, + "output_schema": { "closed": true, "fields": [ { @@ -197887,9 +198382,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -197918,18 +198416,19 @@ ] ] }, - "producer": 11, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "kind": "summary_merge" + } }, { - "consumer": 13, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 25, + "output_schema": { "closed": true, "fields": [ { @@ -197973,36 +198472,122 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "finalize_exact_accumulator" + } }, { - "consumer": 14, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 26, + "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 27, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -198018,25 +198603,55 @@ "name": "$promql_series_identity", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, - "producer": 13, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + } + } + ], + "roots": [ + 4, + 27 + ] + }, + "from_logical": "L28", + "id": "P28-m2", + "label": "Q1 exact (Sum acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · query time, kept: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ { - "consumer": 15, + "consumer": 1, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -198083,15 +198698,15 @@ ] ] }, - "producer": 14, + "producer": 0, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 16, + "consumer": 2, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -198138,15 +198753,15 @@ ] ] }, - "producer": 6, + "producer": 1, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 17, + "consumer": 3, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -198193,36 +198808,20 @@ ] ] }, - "producer": 16, + "producer": 2, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 18, + "consumer": 4, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -198233,30 +198832,32 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 17, + "producer": 3, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 19, + "consumer": 6, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -198303,15 +198904,15 @@ ] ] }, - "producer": 6, + "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 20, + "consumer": 7, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -198358,15 +198959,15 @@ ] ] }, - "producer": 19, + "producer": 6, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 21, + "consumer": 8, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -198413,36 +199014,20 @@ ] ] }, - "producer": 20, + "producer": 7, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 22, + "consumer": 9, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -198453,33 +199038,43 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 6, + "producer": 8, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, + "window": "NotApplicable" + } + ], + "nodes": [ { - "consumer": 23, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -198523,18 +199118,71 @@ ] ] }, - "producer": 22, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 24, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -198578,18 +199226,27 @@ ] ] }, - "producer": 23, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } }, { - "consumer": 25, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -198602,12 +199259,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -198636,26 +199290,41 @@ ] ] }, - "producer": 9, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } }, { - "consumer": 25, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { @@ -198668,7 +199337,55 @@ "name": "state", "nullable": false, "table": null - }, + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 2, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -198679,33 +199396,36 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 12, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } + } }, { - "consumer": 25, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ { @@ -198718,12 +199438,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -198752,18 +199469,71 @@ ] ] }, - "producer": 15, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 25, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -198776,14 +199546,311 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 6, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" ] }, "name": "state", "nullable": false, "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 8 + } + } + } + } + ], + "roots": [ + 4, + 9 + ] + }, + "from_logical": "L29", + "id": "P29", + "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, { "dtype": { @@ -198810,15 +199877,15 @@ ] ] }, - "producer": 18, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 2, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -198834,12 +199901,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -198868,15 +199932,15 @@ ] ] }, - "producer": 21, + "producer": 1, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 3, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -198890,6 +199954,61 @@ "nullable": false, "table": null }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, { "dtype": { "ExactAggregate": [ @@ -198900,6 +200019,44 @@ "name": "state", "nullable": false, "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, { "dtype": { @@ -198926,12 +200083,67 @@ ] ] }, - "producer": 24, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 26, + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -198984,12 +200196,12 @@ ] ] }, - "producer": 25, + "producer": 7, "role": "Input", "window": "NotApplicable" }, { - "consumer": 27, + "consumer": 9, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -199039,12 +200251,12 @@ ] ] }, - "producer": 26, + "producer": 8, "role": "Input", "window": "NotApplicable" }, { - "consumer": 28, + "consumer": 10, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -199065,13 +200277,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CmsWithHeap", + "algorithm": "CountSketchWithHeap", "category": "TopK", "params": { - "CmsWithHeap": { - "depth": 7, + "CountSketchWithHeap": { + "depth": 125, "heap_size": 100, - "width": 272 + "width": 30000 } } }, @@ -199090,7 +200302,7 @@ ] ] }, - "producer": 27, + "producer": 9, "role": "Input", "window": "NotApplicable" } @@ -199284,12 +200496,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -199319,30 +200528,23 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { + "NonASAP": { + "Aggregate": { "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" } - }, + ], + "output_names": [ + "" + ], "reduction": "PerEntity" } } @@ -199351,65 +200553,6 @@ { "guarantee": null, "id": 3, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - } - }, - { - "guarantee": null, - "id": 4, "output_schema": { "closed": true, "fields": [ @@ -199447,7 +200590,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 3, + "child": 2, "family": { "ExactAggregate": [ "Sum", @@ -199476,7 +200619,7 @@ }, { "guarantee": null, - "id": 5, + "id": 4, "output_schema": { "closed": true, "fields": [ @@ -199511,14 +200654,14 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 4 + "child": 3 } } } }, { "guarantee": null, - "id": 6, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -199565,7 +200708,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -199626,70 +200769,7 @@ }, { "guarantee": null, - "id": 7, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - } - }, - { - "guarantee": null, - "id": 8, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -199736,16 +200816,16 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 7, + "child": 5, "kind": "range", "range": { "nanos": 0, - "secs": 10 + "secs": 60 } } } @@ -199753,7 +200833,7 @@ }, { "guarantee": null, - "id": 9, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -199803,12 +200883,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 8, + "child": 6, "family": { "ExactAggregate": [ "Sum", @@ -199833,7 +200913,7 @@ }, { "guarantee": null, - "id": 10, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -199880,42 +200960,22 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 10000 - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 7 } } } }, { "guarantee": null, - "id": 11, + "id": 9, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -199926,33 +200986,77 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 10, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 + "ASAP": { + "SummaryAgg": { + "child": 8, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] } } } @@ -199960,88 +201064,81 @@ }, { "guarantee": null, - "id": 12, + "id": 10, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { "Plain": "utf8" }, - "name": "job", - "nullable": true, + "name": "$promql_series_identity", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "payload": { "ASAP": { - "SummaryAgg": { - "child": 11, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 } }, - "reduction": "PerEntity" + "summary_input": 9 } } } - }, + } + ], + "roots": [ + 4, + 10 + ] + }, + "from_logical": "L30", + "id": "P30", + "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap (Sum acc)" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 13, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -200085,26 +201182,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 20000 - } - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 14, - "output_schema": { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -200148,27 +201237,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 13, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 15, - "output_schema": { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -200181,12 +201261,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -200215,40 +201292,59 @@ ] ] }, - "output_state": { + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 14, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "reduction": "PerEntity" + "name": "state", + "nullable": false, + "table": null } - } - } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 16, - "output_schema": { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -200292,26 +201388,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 30000 - } - } - } - } + "producer": 5, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 17, - "output_schema": { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -200355,27 +201443,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 16, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 6, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 18, - "output_schema": { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -200388,12 +201467,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -200422,40 +201498,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 17, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 7, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 19, - "output_schema": { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -200499,26 +201553,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 40000 - } - } - } - } + "producer": 5, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 20, - "output_schema": { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -200562,27 +201608,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 19, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 9, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 21, - "output_schema": { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -200595,12 +201632,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -200629,40 +201663,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 20, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 10, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 22, - "output_schema": { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -200706,26 +201718,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 50000 - } - } - } - } + "producer": 5, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 23, - "output_schema": { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -200769,27 +201773,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 22, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 12, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 24, - "output_schema": { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -200802,12 +201797,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -200836,40 +201828,73 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 23, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" }, - "reduction": "PerEntity" + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 25, - "output_schema": { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -200882,12 +201907,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -200916,29 +201938,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 9, - 12, - 15, - 18, - 21, - 24 - ] - } - } - } + "producer": 15, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 26, - "output_schema": { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -200982,24 +201993,36 @@ ] ] }, - "output_state": { + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 18, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 25 - } - } - } - }, - { - "guarantee": null, - "id": 27, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -201010,88 +202033,106 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "SummaryState", + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 19, + "data_state": { + "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 26, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" }, - "reduction": { - "Reduce": [ - 2 - ] - } + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 18, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 28, - "output_schema": { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -201107,6 +202148,37 @@ "name": "$promql_series_identity", "nullable": false, "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 19, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, { "dtype": { @@ -201115,48 +202187,93 @@ "name": "value", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "summary_input": 27 + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } - } - ], - "roots": [ - 5, - 28 - ] - }, - "from_logical": "L39", - "id": "P39-m1", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · ingestion time: exact Sum ×6 panes" - }, - { - "dag": { - "edges": [ + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 23, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -201206,14 +202323,14 @@ ] ] }, - "producer": 0, + "producer": 22, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 24, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -201230,9 +202347,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -201261,12 +202381,12 @@ ] ] }, - "producer": 1, + "producer": 8, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 24, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -201286,8 +202406,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -201319,14 +202439,14 @@ ] ] }, - "producer": 2, + "producer": 11, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 24, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -201343,9 +202463,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -201374,12 +202497,12 @@ ] ] }, - "producer": 3, + "producer": 14, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 24, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -201388,6 +202511,25 @@ "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -201396,6 +202538,45 @@ "nullable": true, "table": null }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 17, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, { "dtype": { "ExactAggregate": [ @@ -201406,23 +202587,40 @@ "name": "state", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 4, + "producer": 20, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 24, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -201439,9 +202637,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -201470,14 +202671,14 @@ ] ] }, - "producer": 6, + "producer": 23, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 25, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -201494,9 +202695,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -201525,12 +202729,12 @@ ] ] }, - "producer": 7, + "producer": 24, "role": "Input", "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 26, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -201580,12 +202784,12 @@ ] ] }, - "producer": 8, + "producer": 25, "role": "Input", "window": "NotApplicable" }, { - "consumer": 10, + "consumer": 27, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -201631,7 +202835,7 @@ ] ] }, - "producer": 9, + "producer": 26, "role": "Input", "window": "NotApplicable" } @@ -201825,12 +203029,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -201860,30 +203061,23 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { + "NonASAP": { + "Aggregate": { "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" } - }, + ], + "output_names": [ + "" + ], "reduction": "PerEntity" } } @@ -201892,65 +203086,6 @@ { "guarantee": null, "id": 3, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - } - }, - { - "guarantee": null, - "id": 4, "output_schema": { "closed": true, "fields": [ @@ -201988,7 +203123,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 3, + "child": 2, "family": { "ExactAggregate": [ "Sum", @@ -202017,7 +203152,7 @@ }, { "guarantee": null, - "id": 5, + "id": 4, "output_schema": { "closed": true, "fields": [ @@ -202052,14 +203187,14 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 4 + "child": 3 } } } }, { "guarantee": null, - "id": 6, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -202167,7 +203302,7 @@ }, { "guarantee": null, - "id": 7, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -202218,12 +203353,11 @@ }, "payload": { "NonASAP": { - "TimeRange": { - "child": 6, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 0 } } } @@ -202231,7 +203365,7 @@ }, { "guarantee": null, - "id": 8, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -202282,30 +203416,42 @@ }, "payload": { "NonASAP": { - "Aggregate": { - "child": 7, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { "guarantee": null, - "id": 9, + "id": 8, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -202316,29 +203462,17 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -202350,84 +203484,73 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 8, + "child": 7, "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" + "ExactAggregate": [ + "Sum", + "Sum" ] }, "filter": null, "grouping": "PerSubpopulationInstance", "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, + "item": null, "weight": { "Column": "SampleValue" }, "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" + "kind": "unknown_or_signed" } }, - "reduction": { - "Reduce": [ - 2 - ] - } + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 10, + "id": 9, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, @@ -202436,39 +203559,21 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 9 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 10000 + } } } } - } - ], - "roots": [ - 5, - 10 - ] - }, - "from_logical": "L40", - "id": "P40", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 10, + "output_schema": { "closed": true, "fields": [ { @@ -202512,18 +203617,27 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 9, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { "closed": true, "fields": [ { @@ -202536,9 +203650,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -202567,18 +203684,40 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 3, - "data_state": { + "output_state": { "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 10, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 12, + "output_schema": { "closed": true, "fields": [ { @@ -202591,12 +203730,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -202625,18 +203761,26 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 4, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } + }, + { + "guarantee": null, + "id": 13, + "output_schema": { "closed": true, "fields": [ { @@ -202680,59 +203824,27 @@ ] ] }, - "producer": 3, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 5, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null + "payload": { + "NonASAP": { + "TimeRange": { + "child": 12, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 4, - "role": "Input", - "window": "NotApplicable" + } + } }, { - "consumer": 7, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 14, + "output_schema": { "closed": true, "fields": [ { @@ -202745,9 +203857,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -202776,18 +203891,40 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 8, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 13, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -202831,18 +203968,26 @@ ] ] }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 9, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { "closed": true, "fields": [ { @@ -202855,12 +204000,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -202889,18 +204031,27 @@ ] ] }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 10, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 15, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 17, + "output_schema": { "closed": true, "fields": [ { @@ -202913,9 +204064,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -202944,66 +204098,39 @@ ] ] }, - "producer": 9, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 11, - "data_state": { + "output_state": { "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 16, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" ] }, - "name": "state", - "nullable": false, - "table": null + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 10, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + } + } + }, { "guarantee": null, - "id": 0, + "id": 18, "output_schema": { "closed": true, "fields": [ @@ -203054,56 +204181,11 @@ }, "payload": { "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 40000 } } } @@ -203111,7 +204193,7 @@ }, { "guarantee": null, - "id": 1, + "id": 19, "output_schema": { "closed": true, "fields": [ @@ -203163,11 +204245,11 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 0, + "child": 18, "kind": "range", "range": { "nanos": 0, - "secs": 60 + "secs": 10 } } } @@ -203175,7 +204257,7 @@ }, { "guarantee": null, - "id": 2, + "id": 20, "output_schema": { "closed": true, "fields": [ @@ -203190,8 +204272,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -203230,11 +204312,11 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 1, + "child": 19, "family": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "filter": null, @@ -203255,7 +204337,7 @@ }, { "guarantee": null, - "id": 3, + "id": 21, "output_schema": { "closed": true, "fields": [ @@ -203305,75 +204387,12 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 3, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 50000 } } } @@ -203381,49 +204400,7 @@ }, { "guarantee": null, - "id": 5, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "sum", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 4 - } - } - } - }, - { - "guarantee": null, - "id": 6, + "id": 22, "output_schema": { "closed": true, "fields": [ @@ -203474,56 +204451,12 @@ }, "payload": { "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "TimeRange": { + "child": 21, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 } } } @@ -203531,7 +204464,7 @@ }, { "guarantee": null, - "id": 7, + "id": 23, "output_schema": { "closed": true, "fields": [ @@ -203545,9 +204478,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -203577,25 +204513,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 6, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "ASAP": { + "SummaryAgg": { + "child": 22, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 8, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -203649,33 +204598,22 @@ }, "payload": { "ASAP": { - "SummaryAgg": { - "child": 7, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "SummaryMerge": { + "children": [ + 8, + 11, + 14, + 17, + 20, + 23 + ] } } } }, { "guarantee": null, - "id": 9, + "id": 25, "output_schema": { "closed": true, "fields": [ @@ -203727,14 +204665,14 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 8 + "child": 24 } } } }, { "guarantee": null, - "id": 10, + "id": 26, "output_schema": { "closed": true, "fields": [ @@ -203782,7 +204720,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 9, + "child": 25, "family": { "Sketch": [ { @@ -203826,7 +204764,7 @@ }, { "guarantee": null, - "id": 11, + "id": 27, "output_schema": { "closed": true, "fields": [ @@ -203875,20 +204813,20 @@ "k": 10 } }, - "summary_input": 10 + "summary_input": 26 } } } } ], "roots": [ - 5, - 11 + 4, + 27 ] }, - "from_logical": "L41", - "id": "P41", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap (Sum acc)" + "from_logical": "L31", + "id": "P31", + "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes)" }, { "dag": { @@ -204006,7 +204944,7 @@ { "consumer": 3, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -204023,12 +204961,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -204064,29 +204999,13 @@ { "consumer": 4, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -204097,17 +205016,19 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -204117,15 +205038,31 @@ "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 6, "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "primitive": "Raw", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -204136,32 +205073,30 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 4, + "producer": 5, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 7, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -204210,13 +205145,13 @@ }, "producer": 6, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 8, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -204265,13 +205200,13 @@ }, "producer": 7, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 9, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -204318,15 +205253,15 @@ ] ] }, - "producer": 8, + "producer": 5, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 10, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -204373,15 +205308,15 @@ ] ] }, - "producer": 6, + "producer": 9, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 11, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -204430,13 +205365,13 @@ }, "producer": 10, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 12, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -204483,15 +205418,15 @@ ] ] }, - "producer": 11, + "producer": 5, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 13, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -204538,15 +205473,15 @@ ] ] }, - "producer": 6, + "producer": 12, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 14, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -204595,13 +205530,13 @@ }, "producer": 13, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 15, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -204648,15 +205583,15 @@ ] ] }, - "producer": 14, + "producer": 5, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 16, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -204703,15 +205638,15 @@ ] ] }, - "producer": 6, + "producer": 15, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 17, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -204760,13 +205695,13 @@ }, "producer": 16, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 18, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -204813,15 +205748,15 @@ ] ] }, - "producer": 17, + "producer": 5, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 19, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -204868,15 +205803,15 @@ ] ] }, - "producer": 6, + "producer": 18, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 20, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -204925,13 +205860,13 @@ }, "producer": 19, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 21, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -204978,15 +205913,15 @@ ] ] }, - "producer": 20, + "producer": 5, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 22, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -205033,15 +205968,15 @@ ] ] }, - "producer": 6, + "producer": 21, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 23, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -205090,184 +206025,13 @@ }, "producer": 22, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 24, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 23, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 25, "data_state": { "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 9, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 25, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 12, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 25, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -205317,15 +206081,15 @@ ] ] }, - "producer": 15, + "producer": 8, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -205375,15 +206139,15 @@ ] ] }, - "producer": 18, + "producer": 11, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -205433,15 +206197,15 @@ ] ] }, - "producer": 21, + "producer": 14, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -205491,12 +206255,128 @@ ] ] }, - "producer": 24, + "producer": 17, "role": "Input", "window": "NotApplicable" }, { - "consumer": 26, + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -205549,12 +206429,12 @@ ] ] }, - "producer": 25, + "producer": 24, "role": "Input", "window": "NotApplicable" }, { - "consumer": 27, + "consumer": 26, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -205604,12 +206484,12 @@ ] ] }, - "producer": 26, + "producer": 25, "role": "Input", "window": "NotApplicable" }, { - "consumer": 28, + "consumer": 27, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -205655,7 +206535,7 @@ ] ] }, - "producer": 27, + "producer": 26, "role": "Input", "window": "NotApplicable" } @@ -205849,12 +206729,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -205884,30 +206761,23 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { + "NonASAP": { + "Aggregate": { "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" } - }, + ], + "output_names": [ + "" + ], "reduction": "PerEntity" } } @@ -205916,65 +206786,6 @@ { "guarantee": null, "id": 3, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - } - }, - { - "guarantee": null, - "id": 4, "output_schema": { "closed": true, "fields": [ @@ -206012,7 +206823,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 3, + "child": 2, "family": { "ExactAggregate": [ "Sum", @@ -206041,7 +206852,7 @@ }, { "guarantee": null, - "id": 5, + "id": 4, "output_schema": { "closed": true, "fields": [ @@ -206076,14 +206887,14 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 4 + "child": 3 } } } }, { "guarantee": null, - "id": 6, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -206130,7 +206941,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { @@ -206191,7 +207002,7 @@ }, { "guarantee": null, - "id": 7, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -206238,12 +207049,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeShift": { - "child": 6, + "child": 5, "shift": { "at": null, "offset_ms": 0 @@ -206254,7 +207065,7 @@ }, { "guarantee": null, - "id": 8, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -206301,12 +207112,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 7, + "child": 6, "kind": "range", "range": { "nanos": 0, @@ -206318,7 +207129,7 @@ }, { "guarantee": null, - "id": 9, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -206368,12 +207179,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 8, + "child": 7, "family": { "ExactAggregate": [ "Sum", @@ -206398,7 +207209,7 @@ }, { "guarantee": null, - "id": 10, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -206445,12 +207256,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeShift": { - "child": 6, + "child": 5, "shift": { "at": null, "offset_ms": 10000 @@ -206461,7 +207272,7 @@ }, { "guarantee": null, - "id": 11, + "id": 10, "output_schema": { "closed": true, "fields": [ @@ -206508,12 +207319,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 10, + "child": 9, "kind": "range", "range": { "nanos": 0, @@ -206525,7 +207336,7 @@ }, { "guarantee": null, - "id": 12, + "id": 11, "output_schema": { "closed": true, "fields": [ @@ -206575,12 +207386,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 11, + "child": 10, "family": { "ExactAggregate": [ "Sum", @@ -206605,7 +207416,7 @@ }, { "guarantee": null, - "id": 13, + "id": 12, "output_schema": { "closed": true, "fields": [ @@ -206652,12 +207463,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeShift": { - "child": 6, + "child": 5, "shift": { "at": null, "offset_ms": 20000 @@ -206668,7 +207479,7 @@ }, { "guarantee": null, - "id": 14, + "id": 13, "output_schema": { "closed": true, "fields": [ @@ -206715,12 +207526,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 13, + "child": 12, "kind": "range", "range": { "nanos": 0, @@ -206732,7 +207543,7 @@ }, { "guarantee": null, - "id": 15, + "id": 14, "output_schema": { "closed": true, "fields": [ @@ -206782,12 +207593,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 14, + "child": 13, "family": { "ExactAggregate": [ "Sum", @@ -206812,7 +207623,7 @@ }, { "guarantee": null, - "id": 16, + "id": 15, "output_schema": { "closed": true, "fields": [ @@ -206859,12 +207670,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeShift": { - "child": 6, + "child": 5, "shift": { "at": null, "offset_ms": 30000 @@ -206875,7 +207686,7 @@ }, { "guarantee": null, - "id": 17, + "id": 16, "output_schema": { "closed": true, "fields": [ @@ -206922,12 +207733,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 16, + "child": 15, "kind": "range", "range": { "nanos": 0, @@ -206939,7 +207750,7 @@ }, { "guarantee": null, - "id": 18, + "id": 17, "output_schema": { "closed": true, "fields": [ @@ -206989,12 +207800,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 17, + "child": 16, "family": { "ExactAggregate": [ "Sum", @@ -207019,7 +207830,7 @@ }, { "guarantee": null, - "id": 19, + "id": 18, "output_schema": { "closed": true, "fields": [ @@ -207066,12 +207877,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeShift": { - "child": 6, + "child": 5, "shift": { "at": null, "offset_ms": 40000 @@ -207082,7 +207893,7 @@ }, { "guarantee": null, - "id": 20, + "id": 19, "output_schema": { "closed": true, "fields": [ @@ -207129,12 +207940,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 19, + "child": 18, "kind": "range", "range": { "nanos": 0, @@ -207146,7 +207957,7 @@ }, { "guarantee": null, - "id": 21, + "id": 20, "output_schema": { "closed": true, "fields": [ @@ -207196,12 +208007,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 20, + "child": 19, "family": { "ExactAggregate": [ "Sum", @@ -207226,7 +208037,7 @@ }, { "guarantee": null, - "id": 22, + "id": 21, "output_schema": { "closed": true, "fields": [ @@ -207273,12 +208084,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeShift": { - "child": 6, + "child": 5, "shift": { "at": null, "offset_ms": 50000 @@ -207289,7 +208100,7 @@ }, { "guarantee": null, - "id": 23, + "id": 22, "output_schema": { "closed": true, "fields": [ @@ -207336,12 +208147,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 22, + "child": 21, "kind": "range", "range": { "nanos": 0, @@ -207353,7 +208164,7 @@ }, { "guarantee": null, - "id": 24, + "id": 23, "output_schema": { "closed": true, "fields": [ @@ -207403,12 +208214,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 23, + "child": 22, "family": { "ExactAggregate": [ "Sum", @@ -207433,7 +208244,7 @@ }, { "guarantee": null, - "id": 25, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -207489,12 +208300,12 @@ "ASAP": { "SummaryMerge": { "children": [ - 9, - 12, - 15, - 18, - 21, - 24 + 8, + 11, + 14, + 17, + 20, + 23 ] } } @@ -207502,7 +208313,7 @@ }, { "guarantee": null, - "id": 26, + "id": 25, "output_schema": { "closed": true, "fields": [ @@ -207554,14 +208365,14 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 25 + "child": 24 } } } }, { "guarantee": null, - "id": 27, + "id": 26, "output_schema": { "closed": true, "fields": [ @@ -207609,7 +208420,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 26, + "child": 25, "family": { "Sketch": [ { @@ -207653,7 +208464,7 @@ }, { "guarantee": null, - "id": 28, + "id": 27, "output_schema": { "closed": true, "fields": [ @@ -207702,20 +208513,20 @@ "k": 10 } }, - "summary_input": 27 + "summary_input": 26 } } } } ], "roots": [ - 5, - 28 + 4, + 27 ] }, - "from_logical": "L42", - "id": "P42", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes)" + "from_logical": "L31", + "id": "P31-m1", + "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · ingestion time: exact Sum ×6 panes" }, { "dag": { @@ -207833,7 +208644,7 @@ { "consumer": 3, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -207850,12 +208661,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -207891,29 +208699,13 @@ { "consumer": 4, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -207924,17 +208716,19 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -207944,15 +208738,31 @@ "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 6, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -207963,24 +208773,22 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 4, + "producer": 5, "role": "Input", "window": "NotApplicable" }, @@ -207988,7 +208796,7 @@ "consumer": 7, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -208037,13 +208845,13 @@ }, "producer": 6, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 8, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -208092,13 +208900,13 @@ }, "producer": 7, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 9, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -208145,15 +208953,15 @@ ] ] }, - "producer": 8, + "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 10, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -208200,15 +209008,15 @@ ] ] }, - "producer": 6, + "producer": 9, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 11, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -208257,13 +209065,13 @@ }, "producer": 10, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 12, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -208310,15 +209118,15 @@ ] ] }, - "producer": 11, + "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 13, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -208365,15 +209173,15 @@ ] ] }, - "producer": 6, + "producer": 12, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 14, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -208422,13 +209230,13 @@ }, "producer": 13, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 15, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -208475,15 +209283,15 @@ ] ] }, - "producer": 14, + "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 16, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -208530,15 +209338,15 @@ ] ] }, - "producer": 6, + "producer": 15, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 17, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -208587,13 +209395,13 @@ }, "producer": 16, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 18, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -208640,15 +209448,15 @@ ] ] }, - "producer": 17, + "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 19, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -208695,15 +209503,15 @@ ] ] }, - "producer": 6, + "producer": 18, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 20, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -208752,13 +209560,13 @@ }, "producer": 19, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 21, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -208805,15 +209613,15 @@ ] ] }, - "producer": 20, + "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 22, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -208860,15 +209668,15 @@ ] ] }, - "producer": 6, + "producer": 21, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 23, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -208917,68 +209725,13 @@ }, "producer": 22, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 24, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 23, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 25, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -209028,15 +209781,15 @@ ] ] }, - "producer": 9, + "producer": 8, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -209086,15 +209839,15 @@ ] ] }, - "producer": 12, + "producer": 11, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -209144,15 +209897,15 @@ ] ] }, - "producer": 15, + "producer": 14, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -209202,15 +209955,15 @@ ] ] }, - "producer": 18, + "producer": 17, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -209260,15 +210013,15 @@ ] ] }, - "producer": 21, + "producer": 20, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -209318,12 +210071,12 @@ ] ] }, - "producer": 24, + "producer": 23, "role": "Input", "window": "NotApplicable" }, { - "consumer": 26, + "consumer": 25, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -209376,12 +210129,12 @@ ] ] }, - "producer": 25, + "producer": 24, "role": "Input", "window": "NotApplicable" }, { - "consumer": 27, + "consumer": 26, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -209431,12 +210184,12 @@ ] ] }, - "producer": 26, + "producer": 25, "role": "Input", "window": "NotApplicable" }, { - "consumer": 28, + "consumer": 27, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -209482,13 +210235,14 @@ ] ] }, - "producer": 27, + "producer": 26, "role": "Input", "window": "NotApplicable" } ], "nodes": [ { + "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -209540,63 +210294,64 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } } }, { + "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -209648,101 +210403,21 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, - { - "guarantee": null, - "id": 2, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "name": "state", - "nullable": false, - "table": null + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } + "range_kind": "range" } } }, { + "coverage": null, "guarantee": null, - "id": 3, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -209792,16 +210467,39 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 4, + "id": 3, "output_schema": { "closed": true, "fields": [ @@ -209837,38 +210535,35 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 3, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] } } }, { + "coverage": null, "guarantee": null, - "id": 5, + "id": 4, "output_schema": { "closed": true, "fields": [ @@ -209901,16 +210596,13 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 4 - } - } + "kind": "finalize_exact_accumulator" } }, { + "coverage": null, "guarantee": null, - "id": 6, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -209957,68 +210649,69 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } } }, { + "coverage": null, "guarantee": null, - "id": 7, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -210065,23 +210758,23 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 0 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 } } } }, { + "coverage": null, "guarantee": null, - "id": 8, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -210128,24 +210821,42 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 7, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 9, + "id": 8, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -210195,37 +210906,34 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 8, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 10, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -210272,23 +210980,23 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 10000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 } } } }, { + "coverage": null, "guarantee": null, - "id": 11, + "id": 10, "output_schema": { "closed": true, "fields": [ @@ -210335,24 +211043,42 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 10, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 12, + "id": 11, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -210402,37 +211128,34 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 11, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 13, + "id": 12, "output_schema": { "closed": true, "fields": [ @@ -210479,23 +211202,23 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 20000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 } } } }, { + "coverage": null, "guarantee": null, - "id": 14, + "id": 13, "output_schema": { "closed": true, "fields": [ @@ -210542,24 +211265,42 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 13, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 15, + "id": 14, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -210609,37 +211350,34 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 14, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 16, + "id": 15, "output_schema": { "closed": true, "fields": [ @@ -210686,23 +211424,23 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 30000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 } } } }, { + "coverage": null, "guarantee": null, - "id": 17, + "id": 16, "output_schema": { "closed": true, "fields": [ @@ -210749,24 +211487,42 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 16, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 18, + "id": 17, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -210816,37 +211572,34 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 17, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 19, + "id": 18, "output_schema": { "closed": true, "fields": [ @@ -210893,23 +211646,23 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 40000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 } } } }, { + "coverage": null, "guarantee": null, - "id": 20, + "id": 19, "output_schema": { "closed": true, "fields": [ @@ -210956,24 +211709,42 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 19, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 21, + "id": 20, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -211023,100 +211794,34 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 20, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 22, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + "family": { + "ExactAggregate": [ + "Sum", + "Sum" ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 50000 - } + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 23, + "id": 21, "output_schema": { "closed": true, "fields": [ @@ -211163,24 +211868,23 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 22, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 } } } }, { + "coverage": null, "guarantee": null, - "id": 24, + "id": 22, "output_schema": { "closed": true, "fields": [ @@ -211194,12 +211898,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -211229,38 +211930,137 @@ ] }, "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 23, - "family": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 23, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { "ExactAggregate": [ "Sum", "Sum" ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" }, - "reduction": "PerEntity" + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 25, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -211313,23 +212113,13 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 9, - 12, - 15, - 18, - 21, - 24 - ] - } - } + "kind": "summary_merge" } }, { + "coverage": null, "guarantee": null, - "id": 26, + "id": 25, "output_schema": { "closed": true, "fields": [ @@ -211379,16 +212169,25 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 25 - } - } + "kind": "finalize_exact_accumulator" } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 27, + "id": 26, "output_schema": { "closed": true, "fields": [ @@ -211434,53 +212233,50 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 26, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" } }, - "reduction": { - "Reduce": [ - 2 - ] + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] } } }, { + "coverage": null, "guarantee": null, - "id": 28, + "id": 27, "output_schema": { "closed": true, "fields": [ @@ -211522,27 +212318,23 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 27 + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 } } } } ], "roots": [ - 5, - 28 + 4, + 27 ] }, - "from_logical": "L42", - "id": "P42-m1", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · ingestion time: exact Sum ×6 panes" + "from_logical": "L31", + "id": "P31-m2", + "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · query time, kept: exact Sum ×6 panes" }, { "dag": { @@ -211660,7 +212452,7 @@ { "consumer": 3, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -211677,12 +212469,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -211717,6 +212506,47 @@ }, { "consumer": 4, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -211766,48 +212596,7 @@ ] ] }, - "producer": 3, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 5, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 4, + "producer": 5, "role": "Input", "window": "NotApplicable" }, @@ -211868,61 +212657,6 @@ }, { "consumer": 8, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 9, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -211968,7 +212702,7 @@ ] ] }, - "producer": 8, + "producer": 7, "role": "Input", "window": "NotApplicable" } @@ -212162,12 +212896,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -212197,30 +212928,23 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { + "NonASAP": { + "Aggregate": { "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" } - }, + ], + "output_names": [ + "" + ], "reduction": "PerEntity" } } @@ -212229,65 +212953,6 @@ { "guarantee": null, "id": 3, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - } - }, - { - "guarantee": null, - "id": 4, "output_schema": { "closed": true, "fields": [ @@ -212325,7 +212990,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 3, + "child": 2, "family": { "ExactAggregate": [ "Sum", @@ -212354,7 +213019,7 @@ }, { "guarantee": null, - "id": 5, + "id": 4, "output_schema": { "closed": true, "fields": [ @@ -212389,14 +213054,14 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 4 + "child": 3 } } } }, { "guarantee": null, - "id": 6, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -212504,7 +213169,7 @@ }, { "guarantee": null, - "id": 7, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -212556,7 +213221,7 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 6, + "child": 5, "kind": "range", "range": { "nanos": 0, @@ -212568,7 +213233,7 @@ }, { "guarantee": null, - "id": 8, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -212616,7 +213281,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 7, + "child": 6, "family": { "Sketch": [ { @@ -212660,7 +213325,7 @@ }, { "guarantee": null, - "id": 9, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -212709,20 +213374,20 @@ "k": 10 } }, - "summary_input": 8 + "summary_input": 7 } } } } ], "roots": [ - 5, - 9 + 4, + 8 ] }, - "from_logical": "L43", - "id": "P43", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 whole-expression CMS+heap" + "from_logical": "L32", + "id": "P32", + "label": "Q1 exact (Sum acc) · Q2 whole-expression CMS+heap" }, { "dag": { @@ -212840,7 +213505,7 @@ { "consumer": 3, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -212857,12 +213522,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -212897,6 +213559,47 @@ }, { "consumer": 4, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -212946,48 +213649,7 @@ ] ] }, - "producer": 3, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 5, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 4, + "producer": 5, "role": "Input", "window": "NotApplicable" }, @@ -213048,61 +213710,6 @@ }, { "consumer": 8, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 9, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -213148,7 +213755,7 @@ ] ] }, - "producer": 8, + "producer": 7, "role": "Input", "window": "NotApplicable" } @@ -213342,12 +213949,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -213377,30 +213981,23 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { + "NonASAP": { + "Aggregate": { "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" } - }, + ], + "output_names": [ + "" + ], "reduction": "PerEntity" } } @@ -213409,65 +214006,6 @@ { "guarantee": null, "id": 3, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - } - }, - { - "guarantee": null, - "id": 4, "output_schema": { "closed": true, "fields": [ @@ -213505,7 +214043,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 3, + "child": 2, "family": { "ExactAggregate": [ "Sum", @@ -213534,7 +214072,7 @@ }, { "guarantee": null, - "id": 5, + "id": 4, "output_schema": { "closed": true, "fields": [ @@ -213569,14 +214107,14 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 4 + "child": 3 } } } }, { "guarantee": null, - "id": 6, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -213684,7 +214222,7 @@ }, { "guarantee": null, - "id": 7, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -213736,7 +214274,7 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 6, + "child": 5, "kind": "range", "range": { "nanos": 0, @@ -213748,7 +214286,7 @@ }, { "guarantee": null, - "id": 8, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -213796,7 +214334,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 7, + "child": 6, "family": { "Sketch": [ { @@ -213840,7 +214378,7 @@ }, { "guarantee": null, - "id": 9, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -213889,20 +214427,20 @@ "k": 10 } }, - "summary_input": 8 + "summary_input": 7 } } } } ], "roots": [ - 5, - 9 + 4, + 8 ] }, - "from_logical": "L44", - "id": "P44", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 whole-expression CountSketch+heap" + "from_logical": "L33", + "id": "P33", + "label": "Q1 exact (Sum acc) · Q2 whole-expression CountSketch+heap" }, { "dag": { @@ -214020,7 +214558,7 @@ { "consumer": 3, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -214037,9 +214575,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -214123,36 +214664,20 @@ ] ] }, - "producer": 1, + "producer": 3, "role": "Input", "window": "NotApplicable" }, { "consumer": 5, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -214163,17 +214688,19 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -214183,7 +214710,7 @@ "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 7, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -214233,7 +214760,172 @@ ] ] }, - "producer": 5, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 9, "role": "Input", "window": "NotApplicable" } @@ -214427,9 +215119,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -214459,23 +215154,30 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { + "ASAP": { + "SummaryAgg": { "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - ], - "output_names": [ - "" - ], + }, "reduction": "PerEntity" } } @@ -214487,6 +215189,22 @@ "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -214497,16 +215215,17 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -214516,20 +215235,71 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - ], - "output_names": [ - "" - ], + }, "reduction": { "Reduce": [ 2 @@ -214541,7 +215311,221 @@ }, { "guarantee": null, - "id": 4, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -214593,7 +215577,7 @@ "payload": { "NonASAP": { "Aggregate": { - "child": 1, + "child": 7, "filters": [], "having": null, "measures": [ @@ -214612,7 +215596,7 @@ }, { "guarantee": null, - "id": 5, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -214664,7 +215648,7 @@ "payload": { "NonASAP": { "Sort": { - "child": 4, + "child": 8, "keys": [ { "ascending": false, @@ -214683,7 +215667,7 @@ }, { "guarantee": null, - "id": 6, + "id": 10, "output_schema": { "closed": true, "fields": [ @@ -214735,7 +215719,7 @@ "payload": { "NonASAP": { "Limit": { - "child": 5, + "child": 9, "n": 10, "offset": 0, "partition_by": [ @@ -214747,13 +215731,13 @@ } ], "roots": [ - 3, - 6 + 5, + 10 ] }, - "from_logical": "L45", - "id": "P45", - "label": "Q1 exact · Q2 exact · shared input" + "from_logical": "L34", + "id": "P34", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact" }, { "dag": { @@ -214871,7 +215855,7 @@ { "consumer": 3, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -214888,9 +215872,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -214974,7 +215961,7 @@ ] ] }, - "producer": 1, + "producer": 3, "role": "Input", "window": "NotApplicable" }, @@ -214985,6 +215972,157 @@ "timing": "query_time" }, "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ @@ -215032,12 +216170,12 @@ ] ] }, - "producer": 4, + "producer": 8, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 10, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -215087,12 +216225,12 @@ ] ] }, - "producer": 5, + "producer": 9, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 11, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -215142,7 +216280,7 @@ ] ] }, - "producer": 6, + "producer": 10, "role": "Input", "window": "NotApplicable" } @@ -215336,9 +216474,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -215368,23 +216509,30 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { + "ASAP": { + "SummaryAgg": { "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - ], - "output_names": [ - "" - ], + }, "reduction": "PerEntity" } } @@ -215396,6 +216544,22 @@ "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -215406,16 +216570,17 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -215425,25 +216590,9 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 } } } @@ -215456,10 +216605,10 @@ "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { @@ -215472,28 +216621,11 @@ "name": "state", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -215505,7 +216637,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 1, + "child": 3, "family": { "ExactAggregate": [ "Sum", @@ -215523,7 +216655,11 @@ "kind": "unknown_or_signed" } }, - "reduction": "PerEntity" + "reduction": { + "Reduce": [ + 2 + ] + } } } } @@ -215534,22 +216670,6 @@ "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -215560,17 +216680,16 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -215640,20 +216759,57 @@ }, "payload": { "NonASAP": { - "Sort": { - "child": 5, - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "nulls_first": false + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "partition_by": [ - 2 - ] + } } } } @@ -215711,38 +216867,21 @@ }, "payload": { "NonASAP": { - "Limit": { + "TimeRange": { "child": 6, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } } } } - } - ], - "roots": [ - 3, - 7 - ] - }, - "from_logical": "L46", - "id": "P46", - "label": "Q1 exact · Q2 exact (Sum acc) · shared input" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -215755,9 +216894,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -215786,18 +216928,40 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -215841,18 +217005,22 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 3, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 8 + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { "closed": true, "fields": [ { @@ -215896,18 +217064,34 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 4, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Sort": { + "child": 9, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { "closed": true, "fields": [ { @@ -215951,12 +217135,38 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Limit": { + "child": 10, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + } + ], + "roots": [ + 5, + 11 + ] + }, + "from_logical": "L35", + "id": "P35", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact (Sum acc)" + }, + { + "dag": { + "edges": [ { - "consumer": 5, + "consumer": 1, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -216006,12 +217216,12 @@ ] ] }, - "producer": 4, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 2, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -216061,14 +217271,14 @@ ] ] }, - "producer": 5, + "producer": 1, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 3, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -216085,9 +217295,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -216116,12 +217329,12 @@ ] ] }, - "producer": 0, + "producer": 2, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 4, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -216171,36 +217384,20 @@ ] ] }, - "producer": 7, + "producer": 3, "role": "Input", "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 5, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -216211,27 +217408,29 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 8, + "producer": 4, "role": "Input", "window": "NotApplicable" }, { - "consumer": 10, + "consumer": 7, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -216281,12 +217480,12 @@ ] ] }, - "producer": 0, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 11, + "consumer": 8, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -216336,12 +217535,12 @@ ] ] }, - "producer": 10, + "producer": 7, "role": "Input", "window": "NotApplicable" }, { - "consumer": 12, + "consumer": 9, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -216391,12 +217590,12 @@ ] ] }, - "producer": 11, + "producer": 8, "role": "Input", "window": "NotApplicable" }, { - "consumer": 13, + "consumer": 10, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -216446,12 +217645,12 @@ ] ] }, - "producer": 0, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 14, + "consumer": 11, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -216501,12 +217700,12 @@ ] ] }, - "producer": 13, + "producer": 10, "role": "Input", "window": "NotApplicable" }, { - "consumer": 15, + "consumer": 12, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -216556,12 +217755,12 @@ ] ] }, - "producer": 14, + "producer": 11, "role": "Input", "window": "NotApplicable" }, { - "consumer": 16, + "consumer": 13, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -216611,12 +217810,12 @@ ] ] }, - "producer": 0, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 17, + "consumer": 14, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -216666,12 +217865,12 @@ ] ] }, - "producer": 16, + "producer": 13, "role": "Input", "window": "NotApplicable" }, { - "consumer": 18, + "consumer": 15, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -216721,12 +217920,12 @@ ] ] }, - "producer": 17, + "producer": 14, "role": "Input", "window": "NotApplicable" }, { - "consumer": 19, + "consumer": 16, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -216776,12 +217975,12 @@ ] ] }, - "producer": 0, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 20, + "consumer": 17, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -216831,12 +218030,12 @@ ] ] }, - "producer": 19, + "producer": 16, "role": "Input", "window": "NotApplicable" }, { - "consumer": 21, + "consumer": 18, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -216886,14 +218085,14 @@ ] ] }, - "producer": 20, + "producer": 17, "role": "Input", "window": "NotApplicable" }, { - "consumer": 22, + "consumer": 19, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -216910,12 +218109,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -216949,9 +218145,9 @@ "window": "NotApplicable" }, { - "consumer": 22, + "consumer": 20, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -216968,12 +218164,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -217002,14 +218195,14 @@ ] ] }, - "producer": 9, + "producer": 19, "role": "Input", "window": "NotApplicable" }, { - "consumer": 22, + "consumer": 21, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -217026,12 +218219,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -217060,14 +218250,14 @@ ] ] }, - "producer": 12, + "producer": 20, "role": "Input", "window": "NotApplicable" }, { "consumer": 22, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -217084,12 +218274,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -217118,14 +218305,14 @@ ] ] }, - "producer": 15, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 22, + "consumer": 23, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -217142,12 +218329,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -217176,14 +218360,14 @@ ] ] }, - "producer": 18, + "producer": 22, "role": "Input", "window": "NotApplicable" }, { - "consumer": 22, + "consumer": 24, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -217200,12 +218384,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -217234,12 +218415,12 @@ ] ] }, - "producer": 21, + "producer": 23, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 25, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -217292,14 +218473,14 @@ ] ] }, - "producer": 22, + "producer": 9, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 25, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -217316,9 +218497,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -217347,14 +218531,14 @@ ] ] }, - "producer": 23, + "producer": 12, "role": "Input", "window": "NotApplicable" }, { "consumer": 25, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -217371,9 +218555,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -217402,16 +218589,18 @@ ] ] }, - "producer": 24, + "producer": 15, "role": "Input", "window": "NotApplicable" - } - ], - "nodes": [ + }, { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -217424,9 +218613,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -217455,71 +218647,76 @@ ] ] }, - "output_state": { - "primitive": "Raw", + "producer": 18, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" ] }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 1, - "output_schema": { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -217532,9 +218729,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -217563,27 +218763,76 @@ ] ] }, - "output_state": { - "primitive": "Raw", + "producer": 24, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 26, + "data_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 25, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 2, - "output_schema": { + "consumer": 27, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -217627,35 +218876,36 @@ ] ] }, - "output_state": { + "producer": 26, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 28, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 3, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -217666,51 +218916,30 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, + "producer": 27, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { "guarantee": null, - "id": 4, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -217761,11 +218990,56 @@ }, "payload": { "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 0 + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } @@ -217773,7 +219047,7 @@ }, { "guarantee": null, - "id": 5, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -217825,11 +219099,11 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 4, + "child": 0, "kind": "range", "range": { "nanos": 0, - "secs": 10 + "secs": 60 } } } @@ -217837,7 +219111,7 @@ }, { "guarantee": null, - "id": 6, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -217852,8 +219126,8 @@ { "dtype": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "name": "state", @@ -217892,11 +219166,11 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 5, + "child": 1, "family": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "filter": null, @@ -217917,7 +219191,7 @@ }, { "guarantee": null, - "id": 7, + "id": 3, "output_schema": { "closed": true, "fields": [ @@ -217967,39 +219241,86 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 10000 - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 } } } }, { "guarantee": null, - "id": 8, + "id": 4, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null - }, + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -218010,17 +219331,16 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -218030,21 +219350,16 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 7, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 } } } }, { "guarantee": null, - "id": 9, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -218058,12 +219373,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -218093,38 +219405,69 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 8, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - }, - "reduction": "PerEntity" + } } } } }, { "guarantee": null, - "id": 10, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -218176,10 +219519,10 @@ "payload": { "NonASAP": { "TimeShift": { - "child": 0, + "child": 6, "shift": { "at": null, - "offset_ms": 20000 + "offset_ms": 0 } } } @@ -218187,7 +219530,7 @@ }, { "guarantee": null, - "id": 11, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -218239,7 +219582,7 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 10, + "child": 7, "kind": "range", "range": { "nanos": 0, @@ -218251,7 +219594,7 @@ }, { "guarantee": null, - "id": 12, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -218306,7 +219649,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 11, + "child": 8, "family": { "ExactAggregate": [ "Sum", @@ -218331,7 +219674,7 @@ }, { "guarantee": null, - "id": 13, + "id": 10, "output_schema": { "closed": true, "fields": [ @@ -218383,10 +219726,10 @@ "payload": { "NonASAP": { "TimeShift": { - "child": 0, + "child": 6, "shift": { "at": null, - "offset_ms": 30000 + "offset_ms": 10000 } } } @@ -218394,7 +219737,7 @@ }, { "guarantee": null, - "id": 14, + "id": 11, "output_schema": { "closed": true, "fields": [ @@ -218446,7 +219789,7 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 13, + "child": 10, "kind": "range", "range": { "nanos": 0, @@ -218458,7 +219801,7 @@ }, { "guarantee": null, - "id": 15, + "id": 12, "output_schema": { "closed": true, "fields": [ @@ -218513,7 +219856,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 14, + "child": 11, "family": { "ExactAggregate": [ "Sum", @@ -218538,7 +219881,7 @@ }, { "guarantee": null, - "id": 16, + "id": 13, "output_schema": { "closed": true, "fields": [ @@ -218590,10 +219933,217 @@ "payload": { "NonASAP": { "TimeShift": { - "child": 0, + "child": 6, "shift": { "at": null, - "offset_ms": 40000 + "offset_ms": 20000 + } + } + } + } + }, + { + "guarantee": null, + "id": 14, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 13, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 15, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 14, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 30000 } } } @@ -218797,10 +220347,10 @@ "payload": { "NonASAP": { "TimeShift": { - "child": 0, + "child": 6, "shift": { "at": null, - "offset_ms": 50000 + "offset_ms": 40000 } } } @@ -218966,12 +220516,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -219001,20 +220548,17 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 6, - 9, - 12, - 15, - 18, - 21 - ] + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } @@ -219071,9 +220615,14 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 22 + "NonASAP": { + "TimeRange": { + "child": 22, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } @@ -219094,9 +220643,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -219126,25 +220678,31 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Sort": { + "ASAP": { + "SummaryAgg": { "child": 23, - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - ], - "partition_by": [ - 2 - ] + }, + "reduction": "PerEntity" } } } @@ -219165,9 +220723,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -219197,43 +220758,28 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Limit": { - "child": 24, - "n": 10, - "offset": 0, - "partition_by": [ - 2 + "ASAP": { + "SummaryMerge": { + "children": [ + 9, + 12, + 15, + 18, + 21, + 24 ] } } } - } - ], - "roots": [ - 3, - 25 - ] - }, - "from_logical": "L47", - "id": "P47", - "label": "Q1 exact · Q2 exact (Sum acc · tumbling 10s panes) · shared input" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 26, + "output_schema": { "closed": true, "fields": [ { @@ -219277,18 +220823,22 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 25 + } + } + } + }, + { + "guarantee": null, + "id": 27, + "output_schema": { "closed": true, "fields": [ { @@ -219332,18 +220882,34 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 3, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Sort": { + "child": 26, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } + } + } + }, + { + "guarantee": null, + "id": 28, + "output_schema": { "closed": true, "fields": [ { @@ -219387,15 +220953,41 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Limit": { + "child": 27, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + } + ], + "roots": [ + 5, + 28 + ] + }, + "from_logical": "L36", + "id": "P36", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact (Sum acc · tumbling 10s panes)" + }, + { + "dag": { + "edges": [ { - "consumer": 5, + "consumer": 1, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -219442,15 +221034,15 @@ ] ] }, - "producer": 4, + "producer": 0, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 2, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -219497,15 +221089,15 @@ ] ] }, - "producer": 5, + "producer": 1, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 3, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -219521,9 +221113,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -219552,15 +221147,15 @@ ] ] }, - "producer": 6, + "producer": 2, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 4, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -219607,36 +221202,20 @@ ] ] }, - "producer": 4, + "producer": 3, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 5, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -219647,27 +221226,29 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 8, + "producer": 4, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 10, + "consumer": 7, "data_state": { "primitive": "Raw", "timing": "ingestion_time" @@ -219717,12 +221298,12 @@ ] ] }, - "producer": 9, + "producer": 6, "role": "Input", "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 11, + "consumer": 8, "data_state": { "primitive": "Raw", "timing": "ingestion_time" @@ -219772,12 +221353,12 @@ ] ] }, - "producer": 4, + "producer": 7, "role": "Input", "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 12, + "consumer": 9, "data_state": { "primitive": "Raw", "timing": "ingestion_time" @@ -219827,12 +221408,12 @@ ] ] }, - "producer": 11, + "producer": 8, "role": "Input", "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 13, + "consumer": 10, "data_state": { "primitive": "Raw", "timing": "ingestion_time" @@ -219882,12 +221463,12 @@ ] ] }, - "producer": 12, + "producer": 6, "role": "Input", "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 14, + "consumer": 11, "data_state": { "primitive": "Raw", "timing": "ingestion_time" @@ -219937,12 +221518,12 @@ ] ] }, - "producer": 4, + "producer": 10, "role": "Input", "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 15, + "consumer": 12, "data_state": { "primitive": "Raw", "timing": "ingestion_time" @@ -219992,12 +221573,12 @@ ] ] }, - "producer": 14, + "producer": 11, "role": "Input", "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 16, + "consumer": 13, "data_state": { "primitive": "Raw", "timing": "ingestion_time" @@ -220047,12 +221628,12 @@ ] ] }, - "producer": 15, + "producer": 6, "role": "Input", "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 17, + "consumer": 14, "data_state": { "primitive": "Raw", "timing": "ingestion_time" @@ -220102,12 +221683,12 @@ ] ] }, - "producer": 4, + "producer": 13, "role": "Input", "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 18, + "consumer": 15, "data_state": { "primitive": "Raw", "timing": "ingestion_time" @@ -220157,12 +221738,12 @@ ] ] }, - "producer": 17, + "producer": 14, "role": "Input", "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 19, + "consumer": 16, "data_state": { "primitive": "Raw", "timing": "ingestion_time" @@ -220212,12 +221793,12 @@ ] ] }, - "producer": 18, + "producer": 6, "role": "Input", "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 20, + "consumer": 17, "data_state": { "primitive": "Raw", "timing": "ingestion_time" @@ -220267,12 +221848,12 @@ ] ] }, - "producer": 4, + "producer": 16, "role": "Input", "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 21, + "consumer": 18, "data_state": { "primitive": "Raw", "timing": "ingestion_time" @@ -220322,12 +221903,12 @@ ] ] }, - "producer": 20, + "producer": 17, "role": "Input", "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 22, + "consumer": 19, "data_state": { "primitive": "Raw", "timing": "ingestion_time" @@ -220377,14 +221958,14 @@ ] ] }, - "producer": 21, + "producer": 6, "role": "Input", "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 23, + "consumer": 20, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "ingestion_time" }, "grouping": "NotApplicable", @@ -220401,12 +221982,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -220435,14 +222013,14 @@ ] ] }, - "producer": 7, + "producer": 19, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 23, + "consumer": 21, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "ingestion_time" }, "grouping": "NotApplicable", @@ -220459,12 +222037,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -220493,14 +222068,14 @@ ] ] }, - "producer": 10, + "producer": 20, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 23, + "consumer": 22, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "ingestion_time" }, "grouping": "NotApplicable", @@ -220517,12 +222092,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -220551,14 +222123,14 @@ ] ] }, - "producer": 13, + "producer": 6, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { "consumer": 23, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "ingestion_time" }, "grouping": "NotApplicable", @@ -220575,12 +222147,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -220609,14 +222178,14 @@ ] ] }, - "producer": 16, + "producer": 22, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 23, + "consumer": 24, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "ingestion_time" }, "grouping": "NotApplicable", @@ -220633,12 +222202,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -220667,12 +222233,12 @@ ] ] }, - "producer": 19, + "producer": 23, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 23, + "consumer": 25, "data_state": { "primitive": "SummaryState", "timing": "ingestion_time" @@ -220725,15 +222291,15 @@ ] ] }, - "producer": 22, + "producer": 9, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 25, "data_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -220783,15 +222349,15 @@ ] ] }, - "producer": 23, + "producer": 12, "role": "Input", "window": "NotApplicable" }, { "consumer": 25, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -220807,9 +222373,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -220838,15 +222407,15 @@ ] ] }, - "producer": 24, + "producer": 15, "role": "Input", "window": "NotApplicable" }, { - "consumer": 26, + "consumer": 25, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -220862,9 +222431,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -220893,16 +222465,18 @@ ] ] }, - "producer": 25, + "producer": 18, "role": "Input", "window": "NotApplicable" - } - ], - "nodes": [ + }, { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -220915,9 +222489,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -220946,71 +222523,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 21, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 1, - "output_schema": { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -221023,9 +222547,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -221054,27 +222581,76 @@ ] ] }, - "output_state": { - "primitive": "Raw", + "producer": 24, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 26, + "data_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 25, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 2, - "output_schema": { + "consumer": 27, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -221118,35 +222694,36 @@ ] ] }, - "output_state": { + "producer": 26, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 28, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 3, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -221157,51 +222734,30 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, + "producer": 27, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { "guarantee": null, - "id": 4, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -221248,7 +222804,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -221309,70 +222865,7 @@ }, { "guarantee": null, - "id": 5, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - } - }, - { - "guarantee": null, - "id": 6, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -221419,16 +222912,16 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 5, + "child": 0, "kind": "range", "range": { "nanos": 0, - "secs": 10 + "secs": 60 } } } @@ -221436,7 +222929,7 @@ }, { "guarantee": null, - "id": 7, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -221451,8 +222944,8 @@ { "dtype": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "name": "state", @@ -221486,16 +222979,16 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 6, + "child": 1, "family": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "filter": null, @@ -221516,7 +223009,7 @@ }, { "guarantee": null, - "id": 8, + "id": 3, "output_schema": { "closed": true, "fields": [ @@ -221563,42 +223056,89 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 10000 - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 } } } }, { "guarantee": null, - "id": 9, + "id": 4, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null - }, + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -221609,41 +223149,35 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 8, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 } } } }, { "guarantee": null, - "id": 10, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -221657,12 +223191,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -221692,38 +223223,69 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "ingestion_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 9, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - }, - "reduction": "PerEntity" + } } } } }, { "guarantee": null, - "id": 11, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -221775,10 +223337,10 @@ "payload": { "NonASAP": { "TimeShift": { - "child": 4, + "child": 6, "shift": { "at": null, - "offset_ms": 20000 + "offset_ms": 0 } } } @@ -221786,7 +223348,7 @@ }, { "guarantee": null, - "id": 12, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -221838,7 +223400,7 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 11, + "child": 7, "kind": "range", "range": { "nanos": 0, @@ -221850,7 +223412,7 @@ }, { "guarantee": null, - "id": 13, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -221905,7 +223467,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 12, + "child": 8, "family": { "ExactAggregate": [ "Sum", @@ -221930,7 +223492,7 @@ }, { "guarantee": null, - "id": 14, + "id": 10, "output_schema": { "closed": true, "fields": [ @@ -221982,10 +223544,10 @@ "payload": { "NonASAP": { "TimeShift": { - "child": 4, + "child": 6, "shift": { "at": null, - "offset_ms": 30000 + "offset_ms": 10000 } } } @@ -221993,7 +223555,7 @@ }, { "guarantee": null, - "id": 15, + "id": 11, "output_schema": { "closed": true, "fields": [ @@ -222045,7 +223607,7 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 14, + "child": 10, "kind": "range", "range": { "nanos": 0, @@ -222057,7 +223619,7 @@ }, { "guarantee": null, - "id": 16, + "id": 12, "output_schema": { "closed": true, "fields": [ @@ -222112,7 +223674,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 15, + "child": 11, "family": { "ExactAggregate": [ "Sum", @@ -222137,7 +223699,7 @@ }, { "guarantee": null, - "id": 17, + "id": 13, "output_schema": { "closed": true, "fields": [ @@ -222189,10 +223751,10 @@ "payload": { "NonASAP": { "TimeShift": { - "child": 4, + "child": 6, "shift": { "at": null, - "offset_ms": 40000 + "offset_ms": 20000 } } } @@ -222200,7 +223762,7 @@ }, { "guarantee": null, - "id": 18, + "id": 14, "output_schema": { "closed": true, "fields": [ @@ -222252,7 +223814,7 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 17, + "child": 13, "kind": "range", "range": { "nanos": 0, @@ -222264,7 +223826,7 @@ }, { "guarantee": null, - "id": 19, + "id": 15, "output_schema": { "closed": true, "fields": [ @@ -222319,7 +223881,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 18, + "child": 14, "family": { "ExactAggregate": [ "Sum", @@ -222344,7 +223906,7 @@ }, { "guarantee": null, - "id": 20, + "id": 16, "output_schema": { "closed": true, "fields": [ @@ -222396,10 +223958,10 @@ "payload": { "NonASAP": { "TimeShift": { - "child": 4, + "child": 6, "shift": { "at": null, - "offset_ms": 50000 + "offset_ms": 30000 } } } @@ -222407,7 +223969,7 @@ }, { "guarantee": null, - "id": 21, + "id": 17, "output_schema": { "closed": true, "fields": [ @@ -222459,7 +224021,7 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 20, + "child": 16, "kind": "range", "range": { "nanos": 0, @@ -222471,7 +224033,7 @@ }, { "guarantee": null, - "id": 22, + "id": 18, "output_schema": { "closed": true, "fields": [ @@ -222526,7 +224088,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 21, + "child": 17, "family": { "ExactAggregate": [ "Sum", @@ -222551,7 +224113,7 @@ }, { "guarantee": null, - "id": 23, + "id": 19, "output_schema": { "closed": true, "fields": [ @@ -222565,12 +224127,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -222600,27 +224159,24 @@ ] }, "output_state": { - "primitive": "SummaryState", - "timing": "query_time" + "primitive": "Raw", + "timing": "ingestion_time" }, "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 7, - 10, - 13, - 16, - 19, - 22 - ] + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 40000 + } } } } }, { "guarantee": null, - "id": 24, + "id": 20, "output_schema": { "closed": true, "fields": [ @@ -222667,19 +224223,24 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 23 + "NonASAP": { + "TimeRange": { + "child": 19, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { "guarantee": null, - "id": 25, + "id": 21, "output_schema": { "closed": true, "fields": [ @@ -222693,9 +224254,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -222725,32 +224289,38 @@ ] }, "output_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "payload": { - "NonASAP": { - "Sort": { - "child": 24, - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false + "ASAP": { + "SummaryAgg": { + "child": 20, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - ], - "partition_by": [ - 2 - ] + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 26, + "id": 22, "output_schema": { "closed": true, "fields": [ @@ -222797,42 +224367,24 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "Limit": { - "child": 25, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } - } - ], - "roots": [ - 3, - 26 - ] - }, - "from_logical": "L47", - "id": "P47-m1", - "label": "Q1 exact · Q2 exact (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 23, + "output_schema": { "closed": true, "fields": [ { @@ -222876,18 +224428,27 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 22, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 24, + "output_schema": { "closed": true, "fields": [ { @@ -222900,9 +224461,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -222931,18 +224495,40 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 23, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 3, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 25, + "output_schema": { "closed": true, "fields": [ { @@ -222955,9 +224541,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -222986,18 +224575,29 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 4, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryMerge": { + "children": [ + 9, + 12, + 15, + 18, + 21, + 24 + ] + } + } + } + }, + { + "guarantee": null, + "id": 26, + "output_schema": { "closed": true, "fields": [ { @@ -223041,18 +224641,22 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 5, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 25 + } + } + } + }, + { + "guarantee": null, + "id": 27, + "output_schema": { "closed": true, "fields": [ { @@ -223096,66 +224700,33 @@ ] ] }, - "producer": 4, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 6, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } + "payload": { + "NonASAP": { + "Sort": { + "child": 26, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + } + } + }, { "guarantee": null, - "id": 0, + "id": 28, "output_schema": { "closed": true, "fields": [ @@ -223206,65 +224777,38 @@ }, "payload": { "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } + "Limit": { + "child": 27, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] } } } - }, + } + ], + "roots": [ + 5, + 28 + ] + }, + "from_logical": "L36", + "id": "P36-m1", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact (Sum acc · tumbling 10s panes) · ingestion time: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 1, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -223308,27 +224852,18 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, - { - "guarantee": null, - "id": 2, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -223372,35 +224907,39 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 3, - "output_schema": { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -223411,52 +224950,33 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -223500,34 +225020,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } + "producer": 3, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 5, - "output_schema": { + "consumer": 5, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -223540,19 +225044,9 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" + "ExactAggregate": [ + "Sum", + "Sum" ] }, "name": "state", @@ -223567,126 +225061,12 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 4, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } + "producer": 4, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 6, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0, - 1 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 5 - } - } - } - } - ], - "roots": [ - 3, - 6 - ] - }, - "from_logical": "L48", - "id": "P48", - "label": "Q1 exact · Q2 CMS+heap · shared input" - }, - { - "dag": { - "edges": [ - { - "consumer": 1, + "consumer": 7, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -223736,12 +225116,12 @@ ] ] }, - "producer": 0, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 8, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -223791,12 +225171,12 @@ ] ] }, - "producer": 1, + "producer": 7, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 9, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -223846,12 +225226,12 @@ ] ] }, - "producer": 2, + "producer": 8, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 10, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -223901,14 +225281,14 @@ ] ] }, - "producer": 1, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 11, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -223925,12 +225305,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -223959,12 +225336,12 @@ ] ] }, - "producer": 4, + "producer": 10, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 12, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -224014,67 +225391,18 @@ ] ] }, - "producer": 5, + "producer": 11, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 13, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ - { - "guarantee": null, - "id": 0, - "output_schema": { "closed": true, "fields": [ { @@ -224118,71 +225446,18 @@ ] ] }, - "output_state": { + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, - { - "guarantee": null, - "id": 1, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -224226,27 +225501,18 @@ ] ] }, - "output_state": { + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, - { - "guarantee": null, - "id": 2, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -224290,91 +225556,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } + "producer": 14, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 3, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "sum", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { + "consumer": 16, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -224387,12 +225580,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -224421,40 +225611,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 6, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 5, - "output_schema": { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -224498,116 +225666,36 @@ ] ] }, - "output_state": { + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 18, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 4 - } - } - } - }, - { - "guarantee": null, - "id": 6, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 5, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 7, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -224623,56 +225711,22 @@ "name": "$promql_series_identity", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 6 - } - } - } - } - ], - "roots": [ - 3, - 7 - ] - }, - "from_logical": "L49", - "id": "P49", - "label": "Q1 exact · Q2 CMS+heap (Sum acc) · shared input" - }, - { - "dag": { - "edges": [ + "producer": 17, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 19, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -224722,12 +225776,12 @@ ] ] }, - "producer": 0, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 20, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -224777,12 +225831,12 @@ ] ] }, - "producer": 1, + "producer": 19, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 21, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -224832,12 +225886,12 @@ ] ] }, - "producer": 2, + "producer": 20, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 22, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -224887,12 +225941,12 @@ ] ] }, - "producer": 0, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 23, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -224942,12 +225996,12 @@ ] ] }, - "producer": 4, + "producer": 22, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 24, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -224997,14 +226051,14 @@ ] ] }, - "producer": 5, + "producer": 23, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 25, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -225021,9 +226075,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -225052,14 +226109,14 @@ ] ] }, - "producer": 0, + "producer": 9, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 25, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -225076,9 +226133,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -225107,14 +226167,14 @@ ] ] }, - "producer": 7, + "producer": 12, "role": "Input", "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 25, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -225131,9 +226191,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -225162,14 +226225,14 @@ ] ] }, - "producer": 8, + "producer": 15, "role": "Input", "window": "NotApplicable" }, { - "consumer": 10, + "consumer": 25, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -225186,9 +226249,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -225217,14 +226283,14 @@ ] ] }, - "producer": 0, + "producer": 18, "role": "Input", "window": "NotApplicable" }, { - "consumer": 11, + "consumer": 25, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -225241,9 +226307,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -225272,14 +226341,14 @@ ] ] }, - "producer": 10, + "producer": 21, "role": "Input", "window": "NotApplicable" }, { - "consumer": 12, + "consumer": 25, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -225296,9 +226365,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -225327,14 +226399,14 @@ ] ] }, - "producer": 11, + "producer": 24, "role": "Input", "window": "NotApplicable" }, { - "consumer": 13, + "consumer": 26, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -225351,9 +226423,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -225382,12 +226457,12 @@ ] ] }, - "producer": 0, + "producer": 25, "role": "Input", "window": "NotApplicable" }, { - "consumer": 14, + "consumer": 27, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -225437,12 +226512,12 @@ ] ] }, - "producer": 13, + "producer": 26, "role": "Input", "window": "NotApplicable" }, { - "consumer": 15, + "consumer": 28, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -225492,18 +226567,17 @@ ] ] }, - "producer": 14, + "producer": 27, "role": "Input", "window": "NotApplicable" - }, + } + ], + "nodes": [ { - "consumer": 16, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -225547,73 +226621,72 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 17, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null + "payload": { + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 16, - "role": "Input", - "window": "NotApplicable" + } + } }, { - "consumer": 18, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -225657,73 +226730,39 @@ ] ] }, - "producer": 17, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 19, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null + "population": {}, + "time_ms": null } ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 20, - "data_state": { - "primitive": "Raw", - "timing": "query_time" + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -225736,9 +226775,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -225767,18 +226809,37 @@ ] ] }, - "producer": 19, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 21, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { @@ -225822,26 +226883,39 @@ ] ] }, - "producer": 20, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "finalize_exact_accumulator" + } }, { - "consumer": 22, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 4, + "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { @@ -225854,65 +226928,52 @@ "name": "state", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 22, - "data_state": { + "output_state": { "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -225923,33 +226984,33 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 9, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 22, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -225962,12 +227023,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -225996,18 +227054,72 @@ ] ] }, - "producer": 12, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 22, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ { @@ -226020,12 +227132,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -226054,18 +227163,26 @@ ] ] }, - "producer": 15, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 22, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -226078,12 +227195,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -226112,18 +227226,45 @@ ] ] }, - "producer": 18, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 22, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 9, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -226170,18 +227311,37 @@ ] ] }, - "producer": 21, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 23, - "data_state": { + "output_state": { "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 10, + "output_schema": { "closed": true, "fields": [ { @@ -226194,12 +227354,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -226228,18 +227385,26 @@ ] ] }, - "producer": 22, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 11, + "output_schema": { "closed": true, "fields": [ { @@ -226283,66 +227448,44 @@ ] ] }, - "producer": 23, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 25, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ { - "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "producer": 24, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ - { "guarantee": null, - "id": 0, + "id": 12, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -226356,9 +227499,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -226388,69 +227534,35 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 1, + "id": 13, "output_schema": { "closed": true, "fields": [ @@ -226500,21 +227612,20 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 } } } }, { + "coverage": null, "guarantee": null, - "id": 2, + "id": 14, "output_schema": { "closed": true, "fields": [ @@ -226564,30 +227675,61 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 3, + "id": 15, + "kept": true, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -226598,51 +227740,51 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 4, + "id": 16, "output_schema": { "closed": true, "fields": [ @@ -226692,20 +227834,20 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 0 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 } } } }, { + "coverage": null, "guarantee": null, - "id": 5, + "id": 17, "output_schema": { "closed": true, "fields": [ @@ -226755,21 +227897,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 4, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 6, + "id": 18, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -226822,34 +227982,31 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 5, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 7, + "id": 19, "output_schema": { "closed": true, "fields": [ @@ -226899,20 +228056,20 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 10000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 } } } }, { + "coverage": null, "guarantee": null, - "id": 8, + "id": 20, "output_schema": { "closed": true, "fields": [ @@ -226962,21 +228119,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 7, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 9, + "id": 21, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -227029,34 +228204,31 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 8, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 10, + "id": 22, "output_schema": { "closed": true, "fields": [ @@ -227106,20 +228278,20 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 20000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 } } } }, { + "coverage": null, "guarantee": null, - "id": 11, + "id": 23, "output_schema": { "closed": true, "fields": [ @@ -227169,21 +228341,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 10, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 12, + "id": 24, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -227236,34 +228426,48 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 11, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 13, + "id": 25, "output_schema": { "closed": true, "fields": [ @@ -227277,9 +228481,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -227309,24 +228516,17 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 30000 - } - } - } + "kind": "summary_merge" } }, { + "coverage": null, "guarantee": null, - "id": 14, + "id": 26, "output_schema": { "closed": true, "fields": [ @@ -227376,21 +228576,13 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 13, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } + "kind": "finalize_exact_accumulator" } }, { + "coverage": null, "guarantee": null, - "id": 15, + "id": 27, "output_schema": { "closed": true, "fields": [ @@ -227404,12 +228596,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -227439,38 +228628,32 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 14, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" + "kind": "relational", + "operator": { + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } + "nulls_first": false + } + ], + "kind": "sort", + "partition_by": [ + 2 + ] } } }, { + "coverage": null, "guarantee": null, - "id": 16, + "id": 28, "output_schema": { "closed": true, "fields": [ @@ -227520,21 +228703,38 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 40000 - } - } + "kind": "relational", + "operator": { + "kind": "limit", + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] } } - }, + } + ], + "roots": [ + 5, + 28 + ] + }, + "from_logical": "L36", + "id": "P36-m2", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact (Sum acc · tumbling 10s panes) · query time, kept: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 17, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -227578,27 +228778,18 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 16, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 18, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -227611,12 +228802,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -227645,40 +228833,18 @@ ] ] }, - "output_state": { + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 17, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 19, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -227691,9 +228857,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -227722,26 +228891,18 @@ ] ] }, - "output_state": { + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 50000 - } - } - } - } - }, - { - "guarantee": null, - "id": 20, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -227785,27 +228946,59 @@ ] ] }, - "output_state": { - "primitive": "Raw", + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 19, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null } - } - } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 21, - "output_schema": { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -227818,12 +229011,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -227852,40 +229042,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 20, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 22, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -227898,12 +229066,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -227932,29 +229097,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 6, - 9, - 12, - 15, - 18, - 21 - ] - } - } - } + "producer": 7, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 23, - "output_schema": { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -227998,22 +229152,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 22 - } - } - } + "producer": 8, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 24, - "output_schema": { + "consumer": 10, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -228053,91 +229203,56 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 23, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, + "producer": 9, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { "guarantee": null, - "id": 25, + "id": 0, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, @@ -228146,39 +229261,66 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] }, - "summary_input": 24 + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } } } } - } - ], - "roots": [ - 3, - 25 - ] - }, - "from_logical": "L50", - "id": "P50", - "label": "Q1 exact · Q2 CMS+heap (Sum acc · tumbling 10s panes) · shared input" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -228222,18 +229364,27 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -228246,9 +229397,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -228277,18 +229431,40 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 3, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { @@ -228332,36 +229508,91 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 5, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null - }, + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -228372,33 +229603,36 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 4, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 6, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -228442,18 +229676,71 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 7, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ { @@ -228497,18 +229784,27 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 8, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -228552,36 +229848,128 @@ ] ] }, - "producer": 4, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 9, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Aggregate": { + "child": 7, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null - }, + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 8, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -228597,25 +229985,59 @@ "name": "$promql_series_identity", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, - "producer": 8, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 9 + } + } + } + } + ], + "roots": [ + 5, + 10 + ] + }, + "from_logical": "L37", + "id": "P37", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap" + }, + { + "dag": { + "edges": [ { - "consumer": 10, + "consumer": 1, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -228662,15 +230084,15 @@ ] ] }, - "producer": 9, + "producer": 0, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 11, + "consumer": 2, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -228717,15 +230139,15 @@ ] ] }, - "producer": 4, + "producer": 1, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 12, + "consumer": 3, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -228741,9 +230163,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -228772,15 +230197,15 @@ ] ] }, - "producer": 11, + "producer": 2, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 13, + "consumer": 4, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -228827,36 +230252,20 @@ ] ] }, - "producer": 12, + "producer": 3, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 14, + "consumer": 5, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -228867,30 +230276,32 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "producer": 4, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 15, + "consumer": 7, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -228937,15 +230348,15 @@ ] ] }, - "producer": 14, + "producer": 6, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 16, + "consumer": 8, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -228992,15 +230403,15 @@ ] ] }, - "producer": 15, + "producer": 7, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 17, + "consumer": 9, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -229016,9 +230427,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -229047,15 +230461,15 @@ ] ] }, - "producer": 4, + "producer": 8, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 18, + "consumer": 10, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -229102,36 +230516,20 @@ ] ] }, - "producer": 17, + "producer": 9, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 19, + "consumer": 11, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -229142,33 +230540,43 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 18, + "producer": 10, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, + "window": "NotApplicable" + } + ], + "nodes": [ { - "consumer": 20, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -229212,18 +230620,71 @@ ] ] }, - "producer": 4, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 21, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -229267,18 +230728,27 @@ ] ] }, - "producer": 20, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 22, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -229291,9 +230761,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -229322,18 +230795,40 @@ ] ] }, - "producer": 21, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 23, - "data_state": { + "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { @@ -229344,6 +230839,65 @@ "nullable": false, "table": null }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, { "dtype": { "ExactAggregate": [ @@ -229354,6 +230908,112 @@ "name": "state", "nullable": false, "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, { "dtype": { @@ -229380,18 +231040,135 @@ ] ] }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } }, { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] }, - "grouping": "NotApplicable", - "intermediate_schema": { + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -229438,15 +231215,261 @@ ] ] }, - "producer": 10, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 23, - "data_state": { + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 8 + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 9, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 10 + } + } + } + } + ], + "roots": [ + 5, + 11 + ] + }, + "from_logical": "L38", + "id": "P38", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap (Sum acc)" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -229462,12 +231485,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -229496,15 +231516,15 @@ ] ] }, - "producer": 13, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 2, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -229520,12 +231540,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -229554,15 +231571,15 @@ ] ] }, - "producer": 16, + "producer": 1, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 3, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -229579,8 +231596,8 @@ { "dtype": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "name": "state", @@ -229612,15 +231629,15 @@ ] ] }, - "producer": 19, + "producer": 2, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 4, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -229636,12 +231653,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -229670,12 +231684,12 @@ ] ] }, - "producer": 22, + "producer": 3, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 5, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -229686,10 +231700,10 @@ "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { @@ -229702,6 +231716,44 @@ "name": "state", "nullable": false, "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, { "dtype": { @@ -229728,12 +231780,12 @@ ] ] }, - "producer": 23, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 8, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -229783,20 +231835,36 @@ ] ] }, - "producer": 24, + "producer": 7, "role": "Input", "window": "NotApplicable" }, { - "consumer": 26, + "consumer": 9, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -229807,43 +231875,33 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 25, + "producer": 8, "role": "Input", "window": "NotApplicable" - } - ], - "nodes": [ + }, { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -229887,71 +231945,73 @@ ] ] }, - "output_state": { + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 11, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 10, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 1, - "output_schema": { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -229995,27 +232055,18 @@ ] ] }, - "output_state": { + "producer": 11, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 13, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, - { - "guarantee": null, - "id": 2, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -230059,35 +232110,36 @@ ] ] }, - "output_state": { + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 3, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -230098,52 +232150,33 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -230187,71 +232220,85944 @@ ] ] }, - "output_state": { + "producer": 14, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 16, + "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 17, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 19, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 22, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 18, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 26, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 25, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 27, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 26, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 28, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 27, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 7, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 8, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 10, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 12, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 11, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 13, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } + }, + { + "guarantee": null, + "id": 14, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 13, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 15, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 14, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } + }, + { + "guarantee": null, + "id": 17, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 16, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 18, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 17, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 19, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + } + }, + { + "guarantee": null, + "id": 20, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 19, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 21, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 20, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 22, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + } + }, + { + "guarantee": null, + "id": 23, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 22, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 24, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 23, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 25, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryMerge": { + "children": [ + 9, + 12, + 15, + 18, + 21, + 24 + ] + } + } + } + }, + { + "guarantee": null, + "id": 26, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 25 + } + } + } + }, + { + "guarantee": null, + "id": 27, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 26, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 28, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 27 + } + } + } + } + ], + "roots": [ + 5, + 28 + ] + }, + "from_logical": "L39", + "id": "P39", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes)" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 10, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 11, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 13, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 14, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 16, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 17, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 19, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 23, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 22, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 24, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 23, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 18, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 26, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 25, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 27, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 26, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 28, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 27, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 7, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 8, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 10, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 12, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 11, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 13, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } + }, + { + "guarantee": null, + "id": 14, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 13, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 15, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 14, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } + }, + { + "guarantee": null, + "id": 17, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 16, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 18, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 17, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 19, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + } + }, + { + "guarantee": null, + "id": 20, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 19, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 21, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 20, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 22, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + } + }, + { + "guarantee": null, + "id": 23, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 22, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 24, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 23, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 25, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryMerge": { + "children": [ + 9, + 12, + 15, + 18, + 21, + 24 + ] + } + } + } + }, + { + "guarantee": null, + "id": 26, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 25 + } + } + } + }, + { + "guarantee": null, + "id": 27, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 26, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 28, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 27 + } + } + } + } + ], + "roots": [ + 5, + 28 + ] + }, + "from_logical": "L39", + "id": "P39-m1", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · ingestion time: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 10, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 11, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 14, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 17, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 19, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 22, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 18, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 26, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 25, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 27, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 26, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 28, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 27, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "coverage": null, + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 9, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 12, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 13, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 14, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 15, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 16, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 17, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 18, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 19, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 20, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 21, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 22, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 23, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 24, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 25, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "kind": "summary_merge" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 26, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 27, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 28, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + } + } + ], + "roots": [ + 5, + 28 + ] + }, + "from_logical": "L39", + "id": "P39-m2", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · query time, kept: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 10, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 7, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 8, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 9 + } + } + } + } + ], + "roots": [ + 5, + 10 + ] + }, + "from_logical": "L40", + "id": "P40", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 11, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 10, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 8 + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 9, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 10 + } + } + } + } + ], + "roots": [ + 5, + 11 + ] + }, + "from_logical": "L41", + "id": "P41", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap (Sum acc)" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 10, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 11, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 14, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 17, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 19, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 22, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 18, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 26, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 25, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 27, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 26, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 28, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 27, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 7, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 8, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 10, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 12, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 11, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 13, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } + }, + { + "guarantee": null, + "id": 14, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 13, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 15, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 14, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } + }, + { + "guarantee": null, + "id": 17, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 16, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 18, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 17, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 19, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + } + }, + { + "guarantee": null, + "id": 20, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 19, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 21, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 20, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 22, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + } + }, + { + "guarantee": null, + "id": 23, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 22, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 24, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 23, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 25, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryMerge": { + "children": [ + 9, + 12, + 15, + 18, + 21, + 24 + ] + } + } + } + }, + { + "guarantee": null, + "id": 26, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 25 + } + } + } + }, + { + "guarantee": null, + "id": 27, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 26, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 28, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 27 + } + } + } + } + ], + "roots": [ + 5, + 28 + ] + }, + "from_logical": "L42", + "id": "P42", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes)" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 10, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 11, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 13, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 14, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 16, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 17, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 19, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 23, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 22, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 24, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 23, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 18, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 26, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 25, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 27, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 26, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 28, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 27, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 7, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 8, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 10, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 12, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 11, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 13, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } + }, + { + "guarantee": null, + "id": 14, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 13, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 15, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 14, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } + }, + { + "guarantee": null, + "id": 17, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 16, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 18, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 17, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 19, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + } + }, + { + "guarantee": null, + "id": 20, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 19, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 21, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 20, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 22, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + } + }, + { + "guarantee": null, + "id": 23, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 22, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 24, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 23, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 25, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryMerge": { + "children": [ + 9, + 12, + 15, + 18, + 21, + 24 + ] + } + } + } + }, + { + "guarantee": null, + "id": 26, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 25 + } + } + } + }, + { + "guarantee": null, + "id": 27, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 26, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 28, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 27 + } + } + } + } + ], + "roots": [ + 5, + 28 + ] + }, + "from_logical": "L42", + "id": "P42-m1", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · ingestion time: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 10, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 11, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 14, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 17, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 19, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 22, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 18, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 26, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 25, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 27, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 26, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 28, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 27, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "coverage": null, + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 9, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 12, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 13, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 14, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 15, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 16, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 17, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 18, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 19, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 20, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 21, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 22, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 23, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 24, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 25, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "kind": "summary_merge" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 26, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 27, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 28, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + } + } + ], + "roots": [ + 5, + 28 + ] + }, + "from_logical": "L42", + "id": "P42-m2", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · query time, kept: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 8 + } + } + } + } + ], + "roots": [ + 5, + 9 + ] + }, + "from_logical": "L43", + "id": "P43", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 whole-expression CMS+heap" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 8 + } + } + } + } + ], + "roots": [ + 5, + 9 + ] + }, + "from_logical": "L44", + "id": "P44", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 whole-expression CountSketch+heap" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Sort": { + "child": 4, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Limit": { + "child": 5, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + } + ], + "roots": [ + 3, + 6 + ] + }, + "from_logical": "L45", + "id": "P45", + "label": "Q1 exact · Q2 exact · shared input" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Sort": { + "child": 5, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Limit": { + "child": 6, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + } + ], + "roots": [ + 3, + 7 + ] + }, + "from_logical": "L46", + "id": "P46", + "label": "Q1 exact · Q2 exact (Sum acc) · shared input" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 10, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 11, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 14, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 17, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 19, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 18, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 22, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 4, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 5, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 7, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 8, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 10, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 12, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 11, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 13, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } + }, + { + "guarantee": null, + "id": 14, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 13, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 15, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 14, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + } + }, + { + "guarantee": null, + "id": 17, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 16, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 18, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 17, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 19, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + } + }, + { + "guarantee": null, + "id": 20, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 19, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 21, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 20, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 22, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryMerge": { + "children": [ + 6, + 9, + 12, + 15, + 18, + 21 + ] + } + } + } + }, + { + "guarantee": null, + "id": 23, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 22 + } + } + } + }, + { + "guarantee": null, + "id": 24, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Sort": { + "child": 23, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } + } + } + }, + { + "guarantee": null, + "id": 25, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Limit": { + "child": 24, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + } + ], + "roots": [ + 3, + 25 + ] + }, + "from_logical": "L47", + "id": "P47", + "label": "Q1 exact · Q2 exact (Sum acc · tumbling 10s panes) · shared input" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 11, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 12, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 14, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 15, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 17, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 18, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 10, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 19, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 22, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 26, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 25, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 8, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 9, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } + }, + { + "guarantee": null, + "id": 12, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 11, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 13, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 12, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 14, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } + }, + { + "guarantee": null, + "id": 15, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 14, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 15, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 17, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + } + }, + { + "guarantee": null, + "id": 18, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 17, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 19, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 18, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 20, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + } + }, + { + "guarantee": null, + "id": 21, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 20, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 22, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 21, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 23, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryMerge": { + "children": [ + 7, + 10, + 13, + 16, + 19, + 22 + ] + } + } + } + }, + { + "guarantee": null, + "id": 24, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 23 + } + } + } + }, + { + "guarantee": null, + "id": 25, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Sort": { + "child": 24, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } + } + } + }, + { + "guarantee": null, + "id": 26, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Limit": { + "child": 25, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + } + ], + "roots": [ + 3, + 26 + ] + }, + "from_logical": "L47", + "id": "P47-m1", + "label": "Q1 exact · Q2 exact (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 10, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 11, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 14, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 17, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 19, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 18, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 22, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "coverage": null, + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 6, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 9, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 12, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 13, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 14, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 15, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 16, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 17, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 18, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 19, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 20, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 21, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 22, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "kind": "summary_merge" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 23, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 24, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "kind": "sort", + "partition_by": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 25, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "limit", + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + ], + "roots": [ + 3, + 25 + ] + }, + "from_logical": "L47", + "id": "P47-m2", + "label": "Q1 exact · Q2 exact (Sum acc · tumbling 10s panes) · shared input · query time, kept: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 4, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 5 + } + } + } + } + ], + "roots": [ + 3, + 6 + ] + }, + "from_logical": "L48", + "id": "P48", + "label": "Q1 exact · Q2 CMS+heap · shared input" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 5, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 6 + } + } + } + } + ], + "roots": [ + 3, + 7 + ] + }, + "from_logical": "L49", + "id": "P49", + "label": "Q1 exact · Q2 CMS+heap (Sum acc) · shared input" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 10, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 11, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 14, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 17, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 19, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 18, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 22, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 4, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 5, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 7, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 8, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 10, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 12, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 11, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 13, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } + }, + { + "guarantee": null, + "id": 14, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 13, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 15, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 14, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + } + }, + { + "guarantee": null, + "id": 17, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 16, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 18, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 17, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 19, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + } + }, + { + "guarantee": null, + "id": 20, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 19, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 21, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 20, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 22, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryMerge": { + "children": [ + 6, + 9, + 12, + 15, + 18, + 21 + ] + } + } + } + }, + { + "guarantee": null, + "id": 23, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 22 + } + } + } + }, + { + "guarantee": null, + "id": 24, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 23, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 25, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 24 + } + } + } + } + ], + "roots": [ + 3, + 25 + ] + }, + "from_logical": "L50", + "id": "P50", + "label": "Q1 exact · Q2 CMS+heap (Sum acc · tumbling 10s panes) · shared input" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 11, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 12, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 14, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 15, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 17, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 18, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 10, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 19, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 22, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 26, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 25, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 8, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 9, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } + }, + { + "guarantee": null, + "id": 12, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 11, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 13, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 12, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 14, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } + }, + { + "guarantee": null, + "id": 15, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 14, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 15, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 17, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + } + }, + { + "guarantee": null, + "id": 18, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 17, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 19, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 18, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 20, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + } + }, + { + "guarantee": null, + "id": 21, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 20, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 22, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 21, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 23, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryMerge": { + "children": [ + 7, + 10, + 13, + 16, + 19, + 22 + ] + } + } + } + }, + { + "guarantee": null, + "id": 24, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 23 + } + } + } + }, + { + "guarantee": null, + "id": 25, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 24, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 26, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 25 + } + } + } + } + ], + "roots": [ + 3, + 26 + ] + }, + "from_logical": "L50", + "id": "P50-m1", + "label": "Q1 exact · Q2 CMS+heap (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 10, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 11, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 14, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 17, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 19, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 18, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 22, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "coverage": null, + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 6, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 9, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 12, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 13, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 14, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 15, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 16, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 17, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 18, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 19, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 20, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 21, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 22, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "kind": "summary_merge" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 23, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 24, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 25, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + } + } + ], + "roots": [ + 3, + 25 + ] + }, + "from_logical": "L50", + "id": "P50-m2", + "label": "Q1 exact · Q2 CMS+heap (Sum acc · tumbling 10s panes) · shared input · query time, kept: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 4, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 5 + } + } + } + } + ], + "roots": [ + 3, + 6 + ] + }, + "from_logical": "L51", + "id": "P51", + "label": "Q1 exact · Q2 CountSketch+heap · shared input" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 5, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 6 + } + } + } + } + ], + "roots": [ + 3, + 7 + ] + }, + "from_logical": "L52", + "id": "P52", + "label": "Q1 exact · Q2 CountSketch+heap (Sum acc) · shared input" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 10, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 11, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 14, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 17, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 19, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 18, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 22, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 4, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 5, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 7, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 8, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 10, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 12, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 11, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 13, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } + }, + { + "guarantee": null, + "id": 14, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 13, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 15, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 14, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + } + }, + { + "guarantee": null, + "id": 17, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 16, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 18, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 17, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 19, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + } + }, + { + "guarantee": null, + "id": 20, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 19, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 21, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 20, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 22, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryMerge": { + "children": [ + 6, + 9, + 12, + 15, + 18, + 21 + ] + } + } + } + }, + { + "guarantee": null, + "id": 23, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 22 + } + } + } + }, + { + "guarantee": null, + "id": 24, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 23, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 25, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 24 + } + } + } + } + ], + "roots": [ + 3, + 25 + ] + }, + "from_logical": "L53", + "id": "P53", + "label": "Q1 exact · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · shared input" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 11, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 12, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 14, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 15, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 17, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 18, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 10, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 19, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 22, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 26, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 25, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 8, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 9, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } + }, + { + "guarantee": null, + "id": 12, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 11, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 13, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 12, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 14, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } + }, + { + "guarantee": null, + "id": 15, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 14, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 15, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 17, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + } + }, + { + "guarantee": null, + "id": 18, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 17, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 19, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 18, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 20, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + } + }, + { + "guarantee": null, + "id": 21, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 20, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 22, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 21, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 23, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryMerge": { + "children": [ + 7, + 10, + 13, + 16, + 19, + 22 + ] + } + } + } + }, + { + "guarantee": null, + "id": 24, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 23 + } + } + } + }, + { + "guarantee": null, + "id": 25, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 24, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 26, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 25 + } + } + } + } + ], + "roots": [ + 3, + 26 + ] + }, + "from_logical": "L53", + "id": "P53-m1", + "label": "Q1 exact · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 10, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 11, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 14, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 17, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 19, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 18, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 22, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "coverage": null, + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 6, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 9, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 12, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 13, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 14, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 15, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 16, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 17, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 18, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 19, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 20, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 21, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 22, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "kind": "summary_merge" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 23, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 24, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 25, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + } + } + ], + "roots": [ + 3, + 25 + ] + }, + "from_logical": "L53", + "id": "P53-m2", + "label": "Q1 exact · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · shared input · query time, kept: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 4 + } + } + } + } + ], + "roots": [ + 3, + 5 + ] + }, + "from_logical": "L54", + "id": "P54", + "label": "Q1 exact · Q2 whole-expression CMS+heap · shared input" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 4 + } + } + } + } + ], + "roots": [ + 3, + 5 + ] + }, + "from_logical": "L55", + "id": "P55", + "label": "Q1 exact · Q2 whole-expression CountSketch+heap · shared input" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Sort": { + "child": 5, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Limit": { + "child": 6, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + } + ], + "roots": [ + 4, + 7 + ] + }, + "from_logical": "L56", + "id": "P56", + "label": "Q1 exact (Rate acc) · Q2 exact · shared input" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 5 + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Sort": { + "child": 6, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Limit": { + "child": 7, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + } + ], + "roots": [ + 4, + 8 + ] + }, + "from_logical": "L57", + "id": "P57", + "label": "Q1 exact (Rate acc) · Q2 exact (Sum acc) · shared input" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 11, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 14, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 17, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 18, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 10, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 19, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 22, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 26, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 25, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 8, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 9, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } + }, + { + "guarantee": null, + "id": 12, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 11, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 13, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 12, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 14, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } + }, + { + "guarantee": null, + "id": 15, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 14, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 15, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 17, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + } + }, + { + "guarantee": null, + "id": 18, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 17, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 19, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 18, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 20, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + } + }, + { + "guarantee": null, + "id": 21, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 20, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 22, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 21, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 23, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryMerge": { + "children": [ + 7, + 10, + 13, + 16, + 19, + 22 + ] + } + } + } + }, + { + "guarantee": null, + "id": 24, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 23 + } + } + } + }, + { + "guarantee": null, + "id": 25, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Sort": { + "child": 24, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } + } + } + }, + { + "guarantee": null, + "id": 26, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Limit": { + "child": 25, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + } + ], + "roots": [ + 4, + 26 + ] + }, + "from_logical": "L58", + "id": "P58", + "label": "Q1 exact (Rate acc) · Q2 exact (Sum acc · tumbling 10s panes) · shared input" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 10, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 12, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 13, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 15, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 16, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 18, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 19, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 23, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 22, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 11, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 14, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 17, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 26, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 25, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 27, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 26, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 9, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 10, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 12, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } + }, + { + "guarantee": null, + "id": 13, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 12, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 14, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 13, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 15, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 15, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 17, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 16, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 18, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + } + }, + { + "guarantee": null, + "id": 19, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 18, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 20, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 19, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 21, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + } + }, + { + "guarantee": null, + "id": 22, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 21, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 23, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 22, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 24, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryMerge": { + "children": [ + 8, + 11, + 14, + 17, + 20, + 23 + ] + } + } + } + }, + { + "guarantee": null, + "id": 25, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 24 + } + } + } + }, + { + "guarantee": null, + "id": 26, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Sort": { + "child": 25, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } + } + } + }, + { + "guarantee": null, + "id": 27, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Limit": { + "child": 26, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + } + ], + "roots": [ + 4, + 27 + ] + }, + "from_logical": "L58", + "id": "P58-m1", + "label": "Q1 exact (Rate acc) · Q2 exact (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 11, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 14, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 17, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 18, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 10, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 19, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 22, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 26, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 25, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "coverage": null, + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 7, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 10, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 12, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 13, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 14, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 15, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 16, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 17, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 18, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 19, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 20, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 21, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 22, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 23, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "kind": "summary_merge" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 24, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 25, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "kind": "sort", + "partition_by": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 26, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "limit", + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + ], + "roots": [ + 4, + 26 + ] + }, + "from_logical": "L58", + "id": "P58-m2", + "label": "Q1 exact (Rate acc) · Q2 exact (Sum acc · tumbling 10s panes) · shared input · query time, kept: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 5, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 6 + } + } + } + } + ], + "roots": [ + 4, + 7 + ] + }, + "from_logical": "L59", + "id": "P59", + "label": "Q1 exact (Rate acc) · Q2 CMS+heap · shared input" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 5 + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 7 + } + } + } + } + ], + "roots": [ + 4, + 8 + ] + }, + "from_logical": "L60", + "id": "P60", + "label": "Q1 exact (Rate acc) · Q2 CMS+heap (Sum acc) · shared input" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 11, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 14, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 17, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 18, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 20, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 10, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 19, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 22, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 26, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 25, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 8, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 9, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } + }, + { + "guarantee": null, + "id": 12, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 11, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 13, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 12, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 14, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } + }, + { + "guarantee": null, + "id": 15, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 14, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 15, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 17, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + } + }, + { + "guarantee": null, + "id": 18, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 17, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 19, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 18, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 20, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + } + }, + { + "guarantee": null, + "id": 21, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 20, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 22, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 21, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 23, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryMerge": { + "children": [ + 7, + 10, + 13, + 16, + 19, + 22 + ] + } + } + } + }, + { + "guarantee": null, + "id": 24, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 23 + } + } + } + }, + { + "guarantee": null, + "id": 25, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 24, + "family": { + "Sketch": [ { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" ] }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } + }, + "reduction": { + "Reduce": [ + 2 + ] } } } } }, { - "guarantee": null, - "id": 5, - "output_schema": { + "guarantee": null, + "id": 26, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 25 + } + } + } + } + ], + "roots": [ + 4, + 26 + ] + }, + "from_logical": "L61", + "id": "P61", + "label": "Q1 exact (Rate acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · shared input" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -230295,26 +318201,18 @@ ] ] }, - "output_state": { + "producer": 9, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 11, + "data_state": { "primitive": "Raw", "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - } - }, - { - "guarantee": null, - "id": 6, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -230358,27 +318256,18 @@ ] ] }, - "output_state": { + "producer": 10, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 12, + "data_state": { "primitive": "Raw", "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 7, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -230391,12 +318280,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -230425,40 +318311,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 6, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 8, - "output_schema": { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -230502,26 +318366,18 @@ ] ] }, - "output_state": { + "producer": 12, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 14, + "data_state": { "primitive": "Raw", "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 10000 - } - } - } - } - }, - { - "guarantee": null, - "id": 9, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -230565,27 +318421,18 @@ ] ] }, - "output_state": { + "producer": 13, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 15, + "data_state": { "primitive": "Raw", "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 8, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 10, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -230598,12 +318445,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -230632,40 +318476,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 9, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 11, - "output_schema": { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -230709,26 +318531,18 @@ ] ] }, - "output_state": { + "producer": 15, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 17, + "data_state": { "primitive": "Raw", "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 20000 - } - } - } - } - }, - { - "guarantee": null, - "id": 12, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -230772,27 +318586,18 @@ ] ] }, - "output_state": { + "producer": 16, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 18, + "data_state": { "primitive": "Raw", "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 11, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 13, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -230805,12 +318610,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -230839,40 +318641,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 12, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 14, - "output_schema": { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -230916,26 +318696,18 @@ ] ] }, - "output_state": { + "producer": 18, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 20, + "data_state": { "primitive": "Raw", "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 30000 - } - } - } - } - }, - { - "guarantee": null, - "id": 15, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -230979,27 +318751,18 @@ ] ] }, - "output_state": { + "producer": 19, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 21, + "data_state": { "primitive": "Raw", "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 14, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 16, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -231012,12 +318775,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -231046,40 +318806,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 15, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 17, - "output_schema": { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -231123,26 +318861,18 @@ ] ] }, - "output_state": { + "producer": 21, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 23, + "data_state": { "primitive": "Raw", "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 40000 - } - } - } - } - }, - { - "guarantee": null, - "id": 18, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -231186,27 +318916,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 17, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 22, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 19, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -231253,40 +318974,18 @@ ] ] }, - "output_state": { + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { "primitive": "SummaryState", "timing": "ingestion_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 18, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 20, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -231299,9 +318998,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -231330,26 +319032,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 50000 - } - } - } - } + "producer": 11, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 21, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -231362,9 +319056,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -231393,27 +319090,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 20, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 14, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 22, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -231460,40 +319148,18 @@ ] ] }, - "output_state": { + "producer": 17, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { "primitive": "SummaryState", "timing": "ingestion_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 21, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 23, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -231540,29 +319206,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 7, - 10, - 13, - 16, - 19, - 22 - ] - } - } - } + "producer": 20, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 24, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -231575,9 +319230,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -231606,116 +319264,39 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 23 - } - } - } + "producer": 23, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 25, - "output_schema": { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" + "ExactAggregate": [ + "Sum", + "Sum" ] }, "name": "state", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 24, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 26, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -231731,56 +319312,22 @@ "name": "$promql_series_identity", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 25 - } - } - } - } - ], - "roots": [ - 3, - 26 - ] - }, - "from_logical": "L50", - "id": "P50-m1", - "label": "Q1 exact · Q2 CMS+heap (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" - }, - { - "dag": { - "edges": [ + "producer": 24, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 26, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -231830,18 +319377,67 @@ ] ] }, - "producer": 0, + "producer": 25, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 27, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 26, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -231885,18 +319481,71 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 3, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -231940,18 +319589,27 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 4, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -231964,9 +319622,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -231982,31 +319643,53 @@ "dtype": { "Plain": "utf8" }, - "name": "$promql_series_identity", - "nullable": false, - "table": null + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" + } + } }, { - "consumer": 5, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { @@ -232050,18 +319733,22 @@ ] ] }, - "producer": 4, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 6, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { "closed": true, "fields": [ { @@ -232074,22 +319761,9 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "float64" }, - "name": "state", + "name": "sum", "nullable": false, "table": null } @@ -232101,15 +319775,37 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, { "guarantee": null, - "id": 0, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -232156,7 +319852,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { @@ -232217,7 +319913,7 @@ }, { "guarantee": null, - "id": 1, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -232264,16 +319960,15 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 0 } } } @@ -232281,7 +319976,7 @@ }, { "guarantee": null, - "id": 2, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -232328,22 +320023,96 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - ], - "output_names": [ - "" - ], + }, "reduction": "PerEntity" } } @@ -232351,10 +320120,26 @@ }, { "guarantee": null, - "id": 3, + "id": 9, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -232365,43 +320150,32 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 10000 } } } @@ -232409,7 +320183,7 @@ }, { "guarantee": null, - "id": 4, + "id": 10, "output_schema": { "closed": true, "fields": [ @@ -232456,34 +320230,46 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "TimeRange": { + "child": 9, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { "guarantee": null, - "id": 5, + "id": 11, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -232494,159 +320280,118 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 4, + "child": 10, "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" + "ExactAggregate": [ + "Sum", + "Sum" ] }, "filter": null, "grouping": "PerSubpopulationInstance", "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, + "item": null, "weight": { "Column": "SampleValue" }, "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" + "kind": "unknown_or_signed" } }, - "reduction": { - "Reduce": [ - 2 - ] - } + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 6, + "id": 12, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 5 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 20000 + } } } } - } - ], - "roots": [ - 3, - 6 - ] - }, - "from_logical": "L51", - "id": "P51", - "label": "Q1 exact · Q2 CountSketch+heap · shared input" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 13, + "output_schema": { "closed": true, "fields": [ { @@ -232690,18 +320435,27 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 12, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 14, + "output_schema": { "closed": true, "fields": [ { @@ -232714,9 +320468,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -232745,18 +320502,40 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 13, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 3, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -232800,18 +320579,26 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 4, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { "closed": true, "fields": [ { @@ -232855,18 +320642,27 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 15, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } }, { - "consumer": 5, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 17, + "output_schema": { "closed": true, "fields": [ { @@ -232913,18 +320709,40 @@ ] ] }, - "producer": 4, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 16, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 6, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 18, + "output_schema": { "closed": true, "fields": [ { @@ -232968,20 +320786,44 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + } }, { - "consumer": 7, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 19, + "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -232992,42 +320834,41 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 18, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, { "guarantee": null, - "id": 0, + "id": 20, "output_schema": { "closed": true, "fields": [ @@ -233041,9 +320882,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -233073,69 +320917,38 @@ ] }, "output_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] + "ASAP": { + "SummaryAgg": { + "child": 19, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" ] }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 1, + "id": 21, "output_schema": { "closed": true, "fields": [ @@ -233182,16 +320995,15 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 50000 } } } @@ -233199,7 +321011,7 @@ }, { "guarantee": null, - "id": 2, + "id": 22, "output_schema": { "closed": true, "fields": [ @@ -233246,33 +321058,46 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "TimeRange": { + "child": 21, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { "guarantee": null, - "id": 3, + "id": 23, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -233283,51 +321108,54 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 + "ASAP": { + "SummaryAgg": { + "child": 22, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" ] - } + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 4, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -233381,33 +321209,22 @@ }, "payload": { "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "SummaryMerge": { + "children": [ + 8, + 11, + 14, + 17, + 20, + 23 + ] } } } }, { "guarantee": null, - "id": 5, + "id": 25, "output_schema": { "closed": true, "fields": [ @@ -233459,14 +321276,14 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 4 + "child": 24 } } } }, { "guarantee": null, - "id": 6, + "id": 26, "output_schema": { "closed": true, "fields": [ @@ -233482,13 +321299,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CountSketchWithHeap", + "algorithm": "CmsWithHeap", "category": "TopK", "params": { - "CountSketchWithHeap": { - "depth": 125, + "CmsWithHeap": { + "depth": 7, "heap_size": 100, - "width": 30000 + "width": 272 } } }, @@ -233514,17 +321331,17 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 5, + "child": 25, "family": { "Sketch": [ { - "algorithm": "CountSketchWithHeap", + "algorithm": "CmsWithHeap", "category": "TopK", "params": { - "CountSketchWithHeap": { - "depth": 125, + "CmsWithHeap": { + "depth": 7, "heap_size": 100, - "width": 30000 + "width": 272 } } }, @@ -233558,7 +321375,7 @@ }, { "guarantee": null, - "id": 7, + "id": 27, "output_schema": { "closed": true, "fields": [ @@ -233607,20 +321424,20 @@ "k": 10 } }, - "summary_input": 6 + "summary_input": 26 } } } } ], "roots": [ - 3, - 7 + 4, + 27 ] }, - "from_logical": "L52", - "id": "P52", - "label": "Q1 exact · Q2 CountSketch+heap (Sum acc) · shared input" + "from_logical": "L61", + "id": "P61-m1", + "label": "Q1 exact (Rate acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" }, { "dag": { @@ -233676,67 +321493,12 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 1, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 2, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -233786,6 +321548,64 @@ ] ] }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, "producer": 2, "role": "Input", "window": "NotApplicable" @@ -233841,7 +321661,7 @@ ] ] }, - "producer": 0, + "producer": 3, "role": "Input", "window": "NotApplicable" }, @@ -233896,7 +321716,7 @@ ] ] }, - "producer": 4, + "producer": 0, "role": "Input", "window": "NotApplicable" }, @@ -234006,7 +321826,7 @@ ] ] }, - "producer": 0, + "producer": 6, "role": "Input", "window": "NotApplicable" }, @@ -234061,7 +321881,7 @@ ] ] }, - "producer": 7, + "producer": 0, "role": "Input", "window": "NotApplicable" }, @@ -234171,7 +321991,7 @@ ] ] }, - "producer": 0, + "producer": 9, "role": "Input", "window": "NotApplicable" }, @@ -234226,7 +322046,7 @@ ] ] }, - "producer": 10, + "producer": 0, "role": "Input", "window": "NotApplicable" }, @@ -234336,7 +322156,7 @@ ] ] }, - "producer": 0, + "producer": 12, "role": "Input", "window": "NotApplicable" }, @@ -234391,7 +322211,7 @@ ] ] }, - "producer": 13, + "producer": 0, "role": "Input", "window": "NotApplicable" }, @@ -234501,7 +322321,7 @@ ] ] }, - "producer": 0, + "producer": 15, "role": "Input", "window": "NotApplicable" }, @@ -234556,7 +322376,7 @@ ] ] }, - "producer": 16, + "producer": 0, "role": "Input", "window": "NotApplicable" }, @@ -234666,7 +322486,7 @@ ] ] }, - "producer": 0, + "producer": 18, "role": "Input", "window": "NotApplicable" }, @@ -234721,7 +322541,7 @@ ] ] }, - "producer": 19, + "producer": 0, "role": "Input", "window": "NotApplicable" }, @@ -234776,12 +322596,183 @@ ] ] }, - "producer": 20, + "producer": 20, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 10, "role": "Input", "window": "NotApplicable" }, { - "consumer": 22, + "consumer": 23, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -234834,12 +322825,12 @@ ] ] }, - "producer": 6, + "producer": 13, "role": "Input", "window": "NotApplicable" }, { - "consumer": 22, + "consumer": 23, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -234892,12 +322883,12 @@ ] ] }, - "producer": 9, + "producer": 16, "role": "Input", "window": "NotApplicable" }, { - "consumer": 22, + "consumer": 23, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -234950,12 +322941,12 @@ ] ] }, - "producer": 12, + "producer": 19, "role": "Input", "window": "NotApplicable" }, { - "consumer": 22, + "consumer": 23, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -235008,12 +322999,12 @@ ] ] }, - "producer": 15, + "producer": 22, "role": "Input", "window": "NotApplicable" }, { - "consumer": 22, + "consumer": 24, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -235066,14 +323057,14 @@ ] ] }, - "producer": 18, + "producer": 23, "role": "Input", "window": "NotApplicable" }, { - "consumer": 22, + "consumer": 25, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -235090,12 +323081,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -235124,12 +323112,12 @@ ] ] }, - "producer": 21, + "producer": 24, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 26, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -235138,25 +323126,6 @@ "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -235167,33 +323136,44 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 22, + "producer": 25, "role": "Input", "window": "NotApplicable" - }, + } + ], + "nodes": [ { - "consumer": 24, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -235237,66 +323217,71 @@ ] ] }, - "producer": 23, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 25, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } + "payload": { + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "PerSubpopulationInstance" + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 ] - }, - "name": "state", - "nullable": false, - "table": null + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 24, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + } + } + }, { + "coverage": null, "guarantee": null, - "id": 0, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -235346,65 +323331,33 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 1, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -235418,9 +323371,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -235450,25 +323406,35 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 2, + "id": 3, "output_schema": { "closed": true, "fields": [ @@ -235518,27 +323484,13 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } + "kind": "finalize_exact_accumulator" } }, { + "coverage": null, "guarantee": null, - "id": 3, + "id": 4, "output_schema": { "closed": true, "fields": [ @@ -235571,32 +323523,32 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } } }, { + "coverage": null, "guarantee": null, - "id": 4, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -235646,20 +323598,20 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 0 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 } } } }, { + "coverage": null, "guarantee": null, - "id": 5, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -235709,21 +323661,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 4, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 6, + "id": 7, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -235776,34 +323746,31 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 5, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 7, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -235853,20 +323820,20 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 10000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 } } } }, { + "coverage": null, "guarantee": null, - "id": 8, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -235916,21 +323883,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 7, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 9, + "id": 10, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -235983,34 +323968,31 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 8, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 10, + "id": 11, "output_schema": { "closed": true, "fields": [ @@ -236060,20 +324042,20 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 20000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 } } } }, { + "coverage": null, "guarantee": null, - "id": 11, + "id": 12, "output_schema": { "closed": true, "fields": [ @@ -236123,21 +324105,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 10, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 12, + "id": 13, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -236186,38 +324186,98 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 14, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 11, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 } } } }, { + "coverage": null, "guarantee": null, - "id": 13, + "id": 15, "output_schema": { "closed": true, "fields": [ @@ -236267,84 +324327,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 30000 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { - "guarantee": null, - "id": 14, - "output_schema": { - "closed": true, - "fields": [ + "coverage": { + "regions": [ { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } } ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 13, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } - } - }, - { + }, "guarantee": null, - "id": 15, + "id": 16, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -236397,34 +324412,31 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 14, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 16, + "id": 17, "output_schema": { "closed": true, "fields": [ @@ -236474,20 +324486,20 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 40000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 } } } }, { + "coverage": null, "guarantee": null, - "id": 17, + "id": 18, "output_schema": { "closed": true, "fields": [ @@ -236537,21 +324549,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 16, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 18, + "id": 19, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -236604,34 +324634,31 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 17, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 19, + "id": 20, "output_schema": { "closed": true, "fields": [ @@ -236681,20 +324708,20 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 50000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 } } } }, { + "coverage": null, "guarantee": null, - "id": 20, + "id": 21, "output_schema": { "closed": true, "fields": [ @@ -236744,21 +324771,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 19, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 21, + "id": 22, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -236811,34 +324856,48 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 20, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 22, + "id": 23, "output_schema": { "closed": true, "fields": [ @@ -236891,23 +324950,13 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 6, - 9, - 12, - 15, - 18, - 21 - ] - } - } + "kind": "summary_merge" } }, { + "coverage": null, "guarantee": null, - "id": 23, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -236957,16 +325006,25 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 22 - } - } + "kind": "finalize_exact_accumulator" } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 24, + "id": 25, "output_schema": { "closed": true, "fields": [ @@ -236982,13 +325040,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CountSketchWithHeap", + "algorithm": "CmsWithHeap", "category": "TopK", "params": { - "CountSketchWithHeap": { - "depth": 125, + "CmsWithHeap": { + "depth": 7, "heap_size": 100, - "width": 30000 + "width": 272 } } }, @@ -237012,53 +325070,50 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 23, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" } }, - "reduction": { - "Reduce": [ - 2 - ] + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] } } }, { + "coverage": null, "guarantee": null, - "id": 25, + "id": 26, "output_schema": { "closed": true, "fields": [ @@ -237100,27 +325155,23 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 24 + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 } } } } ], "roots": [ - 3, - 25 + 4, + 26 ] }, - "from_logical": "L53", - "id": "P53", - "label": "Q1 exact · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · shared input" + "from_logical": "L61", + "id": "P61-m2", + "label": "Q1 exact (Rate acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · shared input · query time, kept: exact Sum ×6 panes" }, { "dag": { @@ -237238,7 +325289,7 @@ { "consumer": 3, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -237255,9 +325306,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -237291,10 +325345,10 @@ "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 4, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -237341,15 +325395,15 @@ ] ] }, - "producer": 4, + "producer": 3, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 5, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -237396,15 +325450,15 @@ ] ] }, - "producer": 5, + "producer": 1, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 6, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -237451,36 +325505,20 @@ ] ] }, - "producer": 6, + "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 7, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -237491,33 +325529,43 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 4, + "producer": 6, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, + "window": "NotApplicable" + } + ], + "nodes": [ { - "consumer": 9, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -237561,18 +325609,71 @@ ] ] }, - "producer": 8, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 10, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -237616,18 +325717,27 @@ ] ] }, - "producer": 9, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 11, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -237640,9 +325750,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -237671,18 +325784,40 @@ ] ] }, - "producer": 4, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 12, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { @@ -237726,36 +325861,24 @@ ] ] }, - "producer": 11, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 13, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -237766,33 +325889,52 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 12, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 14, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ { @@ -237836,36 +325978,128 @@ ] ] }, - "producer": 4, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 15, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null - }, + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 5, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -237881,25 +326115,59 @@ "name": "$promql_series_identity", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, - "producer": 14, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 6 + } + } + } + } + ], + "roots": [ + 4, + 7 + ] + }, + "from_logical": "L62", + "id": "P62", + "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap · shared input" + }, + { + "dag": { + "edges": [ { - "consumer": 16, + "consumer": 1, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -237946,15 +326214,15 @@ ] ] }, - "producer": 15, + "producer": 0, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 17, + "consumer": 2, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -238001,15 +326269,15 @@ ] ] }, - "producer": 4, + "producer": 1, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 18, + "consumer": 3, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -238025,9 +326293,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -238056,15 +326327,15 @@ ] ] }, - "producer": 17, + "producer": 2, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 19, + "consumer": 4, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -238111,15 +326382,15 @@ ] ] }, - "producer": 18, + "producer": 3, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 20, + "consumer": 5, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -238166,15 +326437,15 @@ ] ] }, - "producer": 4, + "producer": 1, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 21, + "consumer": 6, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -238190,9 +326461,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -238221,15 +326495,15 @@ ] ] }, - "producer": 20, + "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 22, + "consumer": 7, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -238276,39 +326550,20 @@ ] ] }, - "producer": 21, + "producer": 6, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 8, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -238319,17 +326574,29 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -238337,15 +326604,13 @@ "producer": 7, "role": "Input", "window": "NotApplicable" - }, + } + ], + "nodes": [ { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -238358,12 +326623,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -238392,18 +326654,71 @@ ] ] }, - "producer": 10, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } }, { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -238416,12 +326731,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -238450,18 +326762,27 @@ ] ] }, - "producer": 13, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } }, { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -238475,8 +326796,8 @@ { "dtype": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "name": "state", @@ -238508,18 +326829,40 @@ ] ] }, - "producer": 16, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 23, - "data_state": { + "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { @@ -238532,12 +326875,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -238566,39 +326906,24 @@ ] ] }, - "producer": 19, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } }, { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 4, + "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -238609,33 +326934,52 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 22, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ { @@ -238682,18 +327026,40 @@ ] ] }, - "producer": 23, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 25, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -238737,18 +327103,22 @@ ] ] }, - "producer": 24, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 26, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 5 + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ { @@ -238788,16 +327158,132 @@ ] ] }, - "producer": 25, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, { "guarantee": null, - "id": 0, + "id": 8, "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 7 + } + } + } + } + ], + "roots": [ + 4, + 8 + ] + }, + "from_logical": "L63", + "id": "P63", + "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap (Sum acc) · shared input" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -238841,71 +327327,18 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, - { - "guarantee": null, - "id": 1, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -238949,27 +327382,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 2, - "output_schema": { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -238982,9 +327406,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -239013,35 +327440,36 @@ ] ] }, - "output_state": { + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 3, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -239052,52 +327480,33 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -239141,71 +327550,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 5, - "output_schema": { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -239249,26 +327605,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - } + "producer": 5, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 6, - "output_schema": { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -239312,27 +327660,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 6, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 7, - "output_schema": { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -239345,12 +327684,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -239379,40 +327715,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 6, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 8, - "output_schema": { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -239456,26 +327770,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 10000 - } - } - } - } + "producer": 8, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 9, - "output_schema": { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -239519,27 +327825,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 8, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 9, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 10, - "output_schema": { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -239552,12 +327849,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -239586,40 +327880,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 9, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 11, - "output_schema": { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -239663,26 +327935,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 20000 - } - } - } - } + "producer": 11, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 12, - "output_schema": { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -239726,27 +327990,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 11, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 12, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 13, - "output_schema": { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -239759,12 +328014,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -239793,40 +328045,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 12, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 14, - "output_schema": { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -239870,26 +328100,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 30000 - } - } - } - } + "producer": 14, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 15, - "output_schema": { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -239933,27 +328155,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 14, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 15, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 16, - "output_schema": { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -239966,12 +328179,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -240000,40 +328210,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 15, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 17, - "output_schema": { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -240077,26 +328265,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 40000 - } - } - } - } + "producer": 17, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 18, - "output_schema": { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -240140,27 +328320,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 17, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 18, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 19, - "output_schema": { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -240173,12 +328344,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -240207,40 +328375,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 18, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 20, - "output_schema": { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -240284,26 +328430,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 4, - "shift": { - "at": null, - "offset_ms": 50000 - } - } - } - } + "producer": 20, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 21, - "output_schema": { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -240347,27 +328485,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 20, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 21, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 22, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -240414,40 +328543,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 21, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 7, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 23, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -240494,29 +328601,18 @@ ] ] }, - "output_state": { + "producer": 10, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 7, - 10, - 13, - 16, - 19, - 22 - ] - } - } - } - }, - { - "guarantee": null, - "id": 24, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -240529,9 +328625,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -240560,116 +328659,39 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 23 - } - } - } + "producer": 13, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 25, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" + "ExactAggregate": [ + "Sum", + "Sum" ] }, "name": "state", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 24, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 26, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -240685,58 +328707,24 @@ "name": "$promql_series_identity", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 25 - } - } - } - } - ], - "roots": [ - 3, - 26 - ] - }, - "from_logical": "L53", - "id": "P53-m1", - "label": "Q1 exact · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" - }, - { - "dag": { - "edges": [ + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 23, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -240753,9 +328741,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -240784,14 +328775,14 @@ ] ] }, - "producer": 0, + "producer": 19, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 23, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -240808,9 +328799,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -240839,14 +328833,14 @@ ] ] }, - "producer": 1, + "producer": 22, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 24, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -240863,9 +328857,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -240894,12 +328891,12 @@ ] ] }, - "producer": 2, + "producer": 23, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 25, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -240949,12 +328946,12 @@ ] ] }, - "producer": 1, + "producer": 24, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 26, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -240975,13 +328972,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CmsWithHeap", + "algorithm": "CountSketchWithHeap", "category": "TopK", "params": { - "CmsWithHeap": { - "depth": 7, + "CountSketchWithHeap": { + "depth": 125, "heap_size": 100, - "width": 272 + "width": 30000 } } }, @@ -241000,7 +328997,7 @@ ] ] }, - "producer": 4, + "producer": 25, "role": "Input", "window": "NotApplicable" } @@ -241194,9 +329191,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -241226,23 +329226,30 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { + "ASAP": { + "SummaryAgg": { "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - ], - "output_names": [ - "" - ], + }, "reduction": "PerEntity" } } @@ -241256,62 +329263,20 @@ "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { "Plain": "float64" }, - "name": "sum", + "name": "value", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -241322,85 +329287,36 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } + "FinalizeExactAccumulator": { + "child": 2 } } } }, { "guarantee": null, - "id": 5, + "id": 4, "output_schema": { "closed": true, "fields": [ @@ -241412,19 +329328,11 @@ "nullable": true, "table": null }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "float64" }, - "name": "value", + "name": "sum", "nullable": false, "table": null } @@ -241432,8 +329340,7 @@ "time_index": null, "unique_keys": [ [ - 0, - 1 + 0 ] ] }, @@ -241442,39 +329349,33 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" } - }, - "summary_input": 4 + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } } } } - } - ], - "roots": [ - 3, - 5 - ] - }, - "from_logical": "L54", - "id": "P54", - "label": "Q1 exact · Q2 whole-expression CMS+heap · shared input" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ { @@ -241518,18 +329419,26 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -241573,18 +329482,27 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 3, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ { @@ -241597,9 +329515,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -241628,18 +329549,40 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 4, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -241683,66 +329626,25 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 5, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 10000 + } } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 4, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + } + } + }, { "guarantee": null, - "id": 0, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -241793,56 +329695,12 @@ }, "payload": { "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "TimeRange": { + "child": 8, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 } } } @@ -241850,7 +329708,7 @@ }, { "guarantee": null, - "id": 1, + "id": 10, "output_schema": { "closed": true, "fields": [ @@ -241864,9 +329722,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -241896,25 +329757,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "ASAP": { + "SummaryAgg": { + "child": 9, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 2, + "id": 11, "output_schema": { "closed": true, "fields": [ @@ -241965,29 +329839,38 @@ }, "payload": { "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 20000 + } } } } }, { "guarantee": null, - "id": 3, + "id": 12, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -241998,16 +329881,17 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -242018,23 +329902,12 @@ }, "payload": { "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] + "TimeRange": { + "child": 11, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 } } } @@ -242042,10 +329915,29 @@ }, { "guarantee": null, - "id": 4, + "id": 13, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -242056,29 +329948,17 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -242090,84 +329970,73 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 1, + "child": 12, "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" + "ExactAggregate": [ + "Sum", + "Sum" ] }, "filter": null, "grouping": "PerSubpopulationInstance", "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, + "item": null, "weight": { "Column": "SampleValue" }, "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" + "kind": "unknown_or_signed" } }, - "reduction": { - "Reduce": [ - 2 - ] - } + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 5, + "id": 14, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, @@ -242176,39 +330045,21 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 4 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 30000 + } } } } - } - ], - "roots": [ - 3, - 5 - ] - }, - "from_logical": "L55", - "id": "P55", - "label": "Q1 exact · Q2 whole-expression CountSketch+heap · shared input" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -242252,18 +330103,27 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 14, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { "closed": true, "fields": [ { @@ -242276,9 +330136,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -242307,18 +330170,40 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 3, - "data_state": { + "output_state": { "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 15, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 17, + "output_schema": { "closed": true, "fields": [ { @@ -242331,12 +330216,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -242365,18 +330247,26 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 4, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + } + }, + { + "guarantee": null, + "id": 18, + "output_schema": { "closed": true, "fields": [ { @@ -242420,18 +330310,27 @@ ] ] }, - "producer": 3, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 5, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 17, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 19, + "output_schema": { "closed": true, "fields": [ { @@ -242444,9 +330343,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -242475,18 +330377,40 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 6, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 18, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 20, + "output_schema": { "closed": true, "fields": [ { @@ -242530,18 +330454,26 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 7, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + } + }, + { + "guarantee": null, + "id": 21, + "output_schema": { "closed": true, "fields": [ { @@ -242585,15 +330517,26 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 20, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, { "guarantee": null, - "id": 0, + "id": 22, "output_schema": { "closed": true, "fields": [ @@ -242607,9 +330550,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -242639,69 +330585,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] + "ASAP": { + "SummaryAgg": { + "child": 21, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" ] }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 1, + "id": 23, "output_schema": { "closed": true, "fields": [ @@ -242715,9 +330630,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -242747,25 +330665,27 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "ASAP": { + "SummaryMerge": { + "children": [ + 7, + 10, + 13, + 16, + 19, + 22 + ] } } } }, { "guarantee": null, - "id": 2, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -242779,12 +330699,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -242813,6 +330730,61 @@ ] ] }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 23 + } + } + } + }, + { + "guarantee": null, + "id": 25, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, "output_state": { "primitive": "SummaryState", "timing": "query_time" @@ -242820,33 +330792,125 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 1, + "child": 24, "family": { - "ExactAggregate": [ - "Rate", - "Rate" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" ] }, "filter": null, "grouping": "PerSubpopulationInstance", "input": { - "item": null, + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, "weight": { "Column": "SampleValue" }, "weight_domain": { - "kind": "unknown_or_signed" + "kind": "non_negative", + "proof": "counter_samples" } }, - "reduction": "PerEntity" + "reduction": { + "Reduce": [ + 2 + ] + } } } } }, { "guarantee": null, - "id": 3, + "id": 26, "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 25 + } + } + } + } + ], + "roots": [ + 4, + 26 + ] + }, + "from_logical": "L64", + "id": "P64", + "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · shared input" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -242890,24 +330954,36 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -242918,52 +330994,33 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 5, - "output_schema": { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -242976,9 +331033,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -243007,34 +331067,18 @@ ] ] }, - "output_state": { + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 6, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -243078,34 +331122,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Sort": { - "child": 5, - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false - } - ], - "partition_by": [ - 2 - ] - } - } - } + "producer": 3, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 7, - "output_schema": { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -243149,41 +331177,15 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Limit": { - "child": 6, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] - } - } - } - } - ], - "roots": [ - 4, - 7 - ] - }, - "from_logical": "L56", - "id": "P56", - "label": "Q1 exact (Rate acc) · Q2 exact · shared input" - }, - { - "dag": { - "edges": [ + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, { - "consumer": 1, + "consumer": 7, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -243230,15 +331232,15 @@ ] ] }, - "producer": 0, + "producer": 6, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 2, + "consumer": 8, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -243285,15 +331287,15 @@ ] ] }, - "producer": 1, + "producer": 7, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 3, + "consumer": 9, "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "primitive": "Raw", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -243309,12 +331311,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -243343,15 +331342,15 @@ ] ] }, - "producer": 2, + "producer": 5, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 4, + "consumer": 10, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -243398,15 +331397,15 @@ ] ] }, - "producer": 3, + "producer": 9, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 5, + "consumer": 11, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -243453,15 +331452,15 @@ ] ] }, - "producer": 1, + "producer": 10, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 6, + "consumer": 12, "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "primitive": "Raw", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -243477,12 +331476,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -243513,13 +331509,13 @@ }, "producer": 5, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 7, + "consumer": 13, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -243566,15 +331562,15 @@ ] ] }, - "producer": 6, + "producer": 12, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 8, + "consumer": 14, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -243621,16 +331617,18 @@ ] ] }, - "producer": 7, + "producer": 13, "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -243674,71 +331672,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 1, - "output_schema": { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -243782,27 +331727,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } + "producer": 15, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 2, - "output_schema": { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -243815,12 +331751,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -243849,40 +331782,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 16, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 3, - "output_schema": { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -243926,24 +331837,36 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - } + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 4, - "output_schema": { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -243954,52 +331877,33 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } + "producer": 18, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 5, - "output_schema": { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -244012,12 +331916,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -244046,40 +331947,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 19, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 6, - "output_schema": { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -244123,22 +332002,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 5 - } - } - } + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 7, - "output_schema": { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -244182,34 +332057,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Sort": { - "child": 6, - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false - } - ], - "partition_by": [ - 2 - ] - } - } - } + "producer": 21, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 8, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -244253,41 +332112,73 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" + "producer": 22, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "Limit": { - "child": 7, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } - } - ], - "roots": [ - 4, - 8 - ] - }, - "from_logical": "L57", - "id": "P57", - "label": "Q1 exact (Rate acc) · Q2 exact (Sum acc) · shared input" - }, - { - "dag": { - "edges": [ + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -244303,9 +332194,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -244334,15 +332228,15 @@ ] ] }, - "producer": 0, + "producer": 11, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -244358,9 +332252,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -244389,15 +332286,15 @@ ] ] }, - "producer": 1, + "producer": 14, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -244414,8 +332311,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -244447,15 +332344,15 @@ ] ] }, - "producer": 2, + "producer": 17, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -244471,9 +332368,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -244502,15 +332402,15 @@ ] ] }, - "producer": 3, + "producer": 20, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -244526,9 +332426,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -244557,14 +332460,14 @@ ] ] }, - "producer": 0, + "producer": 23, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 25, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -244581,9 +332484,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -244612,12 +332518,12 @@ ] ] }, - "producer": 5, + "producer": 24, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 26, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -244667,18 +332573,67 @@ ] ] }, - "producer": 6, + "producer": 25, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 27, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 26, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -244722,18 +332677,71 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 9, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -244777,18 +332785,27 @@ ] ] }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 10, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -244801,9 +332818,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -244832,18 +332852,40 @@ ] ] }, - "producer": 9, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 11, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { @@ -244887,36 +332929,24 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 12, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -244927,33 +332957,52 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 11, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 13, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ { @@ -244997,18 +333046,71 @@ ] ] }, - "producer": 12, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 14, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -245052,18 +333154,26 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 15, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ { @@ -245107,18 +333217,27 @@ ] ] }, - "producer": 14, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 16, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -245131,9 +333250,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -245162,18 +333284,40 @@ ] ] }, - "producer": 15, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 17, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -245217,18 +333361,26 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 18, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { "closed": true, "fields": [ { @@ -245272,18 +333424,27 @@ ] ] }, - "producer": 17, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 19, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 9, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { "closed": true, "fields": [ { @@ -245296,9 +333457,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -245327,18 +333491,40 @@ ] ] }, - "producer": 18, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 10, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 20, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 12, + "output_schema": { "closed": true, "fields": [ { @@ -245382,18 +333568,26 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 21, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } + }, + { + "guarantee": null, + "id": 13, + "output_schema": { "closed": true, "fields": [ { @@ -245437,18 +333631,27 @@ ] ] }, - "producer": 20, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 22, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 12, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 14, + "output_schema": { "closed": true, "fields": [ { @@ -245461,9 +333664,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -245492,18 +333698,40 @@ ] ] }, - "producer": 21, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 23, - "data_state": { + "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 13, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -245516,12 +333744,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -245550,18 +333775,26 @@ ] ] }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } }, { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 16, + "output_schema": { "closed": true, "fields": [ { @@ -245574,12 +333807,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -245608,18 +333838,27 @@ ] ] }, - "producer": 10, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 15, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } }, { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 17, + "output_schema": { "closed": true, "fields": [ { @@ -245666,18 +333905,40 @@ ] ] }, - "producer": 13, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 23, - "data_state": { + "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 16, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 18, + "output_schema": { "closed": true, "fields": [ { @@ -245690,12 +333951,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -245724,18 +333982,26 @@ ] ] }, - "producer": 16, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + } }, { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 19, + "output_schema": { "closed": true, "fields": [ { @@ -245748,12 +334014,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -245782,18 +334045,27 @@ ] ] }, - "producer": 19, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 18, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } }, { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 20, + "output_schema": { "closed": true, "fields": [ { @@ -245840,18 +334112,40 @@ ] ] }, - "producer": 22, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { + "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 19, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 21, + "output_schema": { "closed": true, "fields": [ { @@ -245864,12 +334158,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -245898,18 +334189,26 @@ ] ] }, - "producer": 23, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 25, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + } + }, + { + "guarantee": null, + "id": 22, + "output_schema": { "closed": true, "fields": [ { @@ -245953,18 +334252,27 @@ ] ] }, - "producer": 24, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 26, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 21, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 23, + "output_schema": { "closed": true, "fields": [ { @@ -245977,9 +334285,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -246008,15 +334319,39 @@ ] ] }, - "producer": 25, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 22, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, { "guarantee": null, - "id": 0, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -246030,9 +334365,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -246062,69 +334400,27 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } + "payload": { + "ASAP": { + "SummaryMerge": { + "children": [ + 8, + 11, + 14, + 17, + 20, + 23 + ] } } } }, { "guarantee": null, - "id": 1, + "id": 25, "output_schema": { "closed": true, "fields": [ @@ -246174,43 +334470,19 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 24 } } } }, { "guarantee": null, - "id": 2, + "id": 26, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -246221,17 +334493,29 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -246243,33 +334527,125 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 1, + "child": 25, "family": { - "ExactAggregate": [ - "Rate", - "Rate" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" ] }, "filter": null, "grouping": "PerSubpopulationInstance", "input": { - "item": null, + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, "weight": { "Column": "SampleValue" }, "weight_domain": { - "kind": "unknown_or_signed" + "kind": "non_negative", + "proof": "counter_samples" } }, - "reduction": "PerEntity" + "reduction": { + "Reduce": [ + 2 + ] + } } } } }, { "guarantee": null, - "id": 3, + "id": 27, "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 26 + } + } + } + } + ], + "roots": [ + 4, + 27 + ] + }, + "from_logical": "L64", + "id": "P64-m1", + "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -246313,24 +334689,36 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -246341,52 +334729,33 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 5, - "output_schema": { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -246399,9 +334768,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -246430,26 +334802,18 @@ ] ] }, - "output_state": { + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - } - }, - { - "guarantee": null, - "id": 6, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -246493,27 +334857,18 @@ ] ] }, - "output_state": { + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 7, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -246526,12 +334881,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -246560,40 +334912,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 6, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 8, - "output_schema": { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -246637,26 +334967,18 @@ ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 10000 - } - } - } - } - }, - { - "guarantee": null, - "id": 9, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -246700,27 +335022,18 @@ ] ] }, - "output_state": { + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 8, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 10, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -246733,12 +335046,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -246767,40 +335077,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 9, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 11, - "output_schema": { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -246844,26 +335132,18 @@ ] ] }, - "output_state": { + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 10, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 20000 - } - } - } - } - }, - { - "guarantee": null, - "id": 12, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -246907,27 +335187,18 @@ ] ] }, - "output_state": { + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 11, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 11, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 13, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -246940,12 +335211,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -246974,40 +335242,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 12, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 14, - "output_schema": { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -247051,26 +335297,18 @@ ] ] }, - "output_state": { + "producer": 11, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 13, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 30000 - } - } - } - } - }, - { - "guarantee": null, - "id": 15, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -247114,27 +335352,18 @@ ] ] }, - "output_state": { + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 14, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 16, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -247147,12 +335376,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -247181,40 +335407,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 15, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 17, - "output_schema": { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -247258,26 +335462,18 @@ ] ] }, - "output_state": { + "producer": 14, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 16, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 40000 - } - } - } - } - }, - { - "guarantee": null, - "id": 18, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -247321,27 +335517,18 @@ ] ] }, - "output_state": { + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 17, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 17, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 19, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -247354,12 +335541,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -247388,40 +335572,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 18, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 20, - "output_schema": { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -247465,26 +335627,18 @@ ] ] }, - "output_state": { + "producer": 17, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 19, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 50000 - } - } - } - } - }, - { - "guarantee": null, - "id": 21, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -247528,27 +335682,18 @@ ] ] }, - "output_state": { + "producer": 18, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 20, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 20, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 22, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -247561,12 +335706,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -247595,40 +335737,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 21, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 23, - "output_schema": { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -247641,12 +335761,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -247675,29 +335792,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 7, - 10, - 13, - 16, - 19, - 22 - ] - } - } - } + "producer": 20, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 24, - "output_schema": { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -247741,22 +335847,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 23 - } - } - } + "producer": 21, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 25, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -247769,9 +335871,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -247800,34 +335905,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Sort": { - "child": 24, - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false - } - ], - "partition_by": [ - 2 - ] - } - } - } + "producer": 7, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 26, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -247840,9 +335929,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -247871,40 +335963,14 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Limit": { - "child": 25, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] - } - } - } - } - ], - "roots": [ - 4, - 26 - ] - }, - "from_logical": "L58", - "id": "P58", - "label": "Q1 exact (Rate acc) · Q2 exact (Sum acc · tumbling 10s panes) · shared input" - }, - { - "dag": { - "edges": [ + "producer": 10, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 23, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -247921,9 +335987,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -247952,14 +336021,14 @@ ] ] }, - "producer": 0, + "producer": 13, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 23, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -247976,9 +336045,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -248007,12 +336079,12 @@ ] ] }, - "producer": 1, + "producer": 16, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 23, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -248032,8 +336104,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -248065,14 +336137,14 @@ ] ] }, - "producer": 2, + "producer": 19, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 23, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -248089,9 +336161,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -248120,15 +336195,15 @@ ] ] }, - "producer": 3, + "producer": 22, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -248144,9 +336219,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -248175,15 +336253,15 @@ ] ] }, - "producer": 5, + "producer": 23, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 25, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -248230,18 +336308,68 @@ ] ] }, - "producer": 6, + "producer": 24, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 26, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 25, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "coverage": null, + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -248285,18 +336413,72 @@ ] ] }, - "producer": 7, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 9, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -248340,18 +336522,39 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + } }, { - "consumer": 10, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -248364,9 +336567,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -248395,18 +336601,37 @@ ] ] }, - "producer": 9, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } }, { - "consumer": 11, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { @@ -248450,18 +336675,77 @@ ] ] }, - "producer": 10, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "finalize_exact_accumulator" + } }, { - "consumer": 12, - "data_state": { + "coverage": null, + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ { @@ -248505,18 +336789,26 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 13, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -248560,18 +336852,45 @@ ] ] }, - "producer": 12, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 14, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 7, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -248584,9 +336903,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -248615,18 +336937,37 @@ ] ] }, - "producer": 13, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } }, { - "consumer": 15, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -248670,18 +337011,26 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 16, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -248725,18 +337074,45 @@ ] ] }, - "producer": 15, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 17, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 10, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -248749,9 +337125,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -248780,18 +337159,37 @@ ] ] }, - "producer": 16, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } }, { - "consumer": 18, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 11, + "output_schema": { "closed": true, "fields": [ { @@ -248835,18 +337233,26 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 19, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 12, + "output_schema": { "closed": true, "fields": [ { @@ -248890,18 +337296,45 @@ ] ] }, - "producer": 18, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 20, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 13, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -248914,9 +337347,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -248945,18 +337381,37 @@ ] ] }, - "producer": 19, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } }, { - "consumer": 21, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 14, + "output_schema": { "closed": true, "fields": [ { @@ -249000,18 +337455,26 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 22, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -249055,18 +337518,45 @@ ] ] }, - "producer": 21, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 23, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 16, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -249079,9 +337569,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -249110,18 +337603,37 @@ ] ] }, - "producer": 22, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 24, - "data_state": { + "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 17, + "output_schema": { "closed": true, "fields": [ { @@ -249134,12 +337646,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -249168,18 +337677,26 @@ ] ] }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 18, + "output_schema": { "closed": true, "fields": [ { @@ -249192,12 +337709,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -249226,18 +337740,45 @@ ] ] }, - "producer": 11, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 19, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -249284,18 +337825,37 @@ ] ] }, - "producer": 14, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { + "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 20, + "output_schema": { "closed": true, "fields": [ { @@ -249308,12 +337868,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -249342,18 +337899,26 @@ ] ] }, - "producer": 17, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 21, + "output_schema": { "closed": true, "fields": [ { @@ -249366,12 +337931,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -249400,18 +337962,45 @@ ] ] }, - "producer": 20, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 22, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -249458,18 +338047,54 @@ ] ] }, - "producer": 23, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 25, - "data_state": { + "output_state": { "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 23, + "output_schema": { "closed": true, "fields": [ { @@ -249516,18 +338141,19 @@ ] ] }, - "producer": 24, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 26, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "summary_merge" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 24, + "output_schema": { "closed": true, "fields": [ { @@ -249571,36 +338197,122 @@ ] ] }, - "producer": 25, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 27, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 25, + "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 26, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -249616,26 +338328,58 @@ "name": "$promql_series_identity", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, - "producer": 26, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + } } ], - "nodes": [ + "roots": [ + 4, + 26 + ] + }, + "from_logical": "L64", + "id": "P64-m2", + "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · shared input · query time, kept: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -249671,79 +338415,26 @@ "table": null } ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 1, - "output_schema": { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -249787,27 +338478,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 2, - "output_schema": { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -249854,40 +338536,73 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" }, - "reduction": "PerEntity" + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 3, - "output_schema": { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -249931,22 +338646,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 4, - "output_schema": { + "consumer": 6, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -249959,9 +338670,22 @@ }, { "dtype": { - "Plain": "float64" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "sum", + "name": "state", "nullable": false, "table": null } @@ -249973,37 +338697,15 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { "guarantee": null, - "id": 5, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -250050,7 +338752,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -250111,70 +338813,7 @@ }, { "guarantee": null, - "id": 6, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - } - }, - { - "guarantee": null, - "id": 7, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -250221,16 +338860,16 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 6, + "child": 0, "kind": "range", "range": { "nanos": 0, - "secs": 10 + "secs": 60 } } } @@ -250238,7 +338877,7 @@ }, { "guarantee": null, - "id": 8, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -250253,8 +338892,8 @@ { "dtype": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "name": "state", @@ -250288,16 +338927,16 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 7, + "child": 1, "family": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "filter": null, @@ -250318,7 +338957,7 @@ }, { "guarantee": null, - "id": 9, + "id": 3, "output_schema": { "closed": true, "fields": [ @@ -250365,42 +339004,22 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 10000 - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 } } } }, { "guarantee": null, - "id": 10, + "id": 4, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -250411,33 +339030,43 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { - "TimeRange": { - "child": 9, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } } @@ -250445,29 +339074,10 @@ }, { "guarantee": null, - "id": 11, + "id": 5, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -250478,73 +339088,88 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 10, + "child": 1, "family": { - "ExactAggregate": [ - "Sum", - "Sum" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" ] }, "filter": null, "grouping": "PerSubpopulationInstance", "input": { - "item": null, + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, "weight": { "Column": "SampleValue" }, "weight_domain": { - "kind": "unknown_or_signed" + "kind": "non_negative", + "proof": "counter_samples" } }, - "reduction": "PerEntity" + "reduction": { + "Reduce": [ + 2 + ] + } } } } }, { "guarantee": null, - "id": 12, + "id": 6, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -250560,45 +339185,6 @@ "name": "$promql_series_identity", "nullable": false, "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 20000 - } - } - } - } - }, - { - "guarantee": null, - "id": 13, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null }, { "dtype": { @@ -250607,133 +339193,54 @@ "name": "value", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 12, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 14, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { - "SummaryAgg": { - "child": 13, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 } }, - "reduction": "PerEntity" + "summary_input": 5 } } } - }, + } + ], + "roots": [ + 4, + 6 + ] + }, + "from_logical": "L65", + "id": "P65", + "label": "Q1 exact (Rate acc) · Q2 whole-expression CMS+heap · shared input" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 15, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -250777,26 +339284,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 30000 - } - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 16, - "output_schema": { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -250840,27 +339339,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 15, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 17, - "output_schema": { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -250874,8 +339364,8 @@ { "dtype": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "name": "state", @@ -250907,40 +339397,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 16, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 2, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 18, - "output_schema": { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -250984,26 +339452,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 40000 - } - } - } - } + "producer": 3, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 19, - "output_schema": { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -251047,48 +339507,20 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 18, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 20, - "output_schema": { + "consumer": 6, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -251099,54 +339531,42 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 19, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } - }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { "guarantee": null, - "id": 21, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -251193,15 +339613,60 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 50000 + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } @@ -251209,7 +339674,7 @@ }, { "guarantee": null, - "id": 22, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -251256,16 +339721,16 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 21, + "child": 0, "kind": "range", "range": { "nanos": 0, - "secs": 10 + "secs": 60 } } } @@ -251273,7 +339738,7 @@ }, { "guarantee": null, - "id": 23, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -251288,8 +339753,8 @@ { "dtype": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "name": "state", @@ -251323,16 +339788,16 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 22, + "child": 1, "family": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "filter": null, @@ -251353,76 +339818,7 @@ }, { "guarantee": null, - "id": 24, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 8, - 11, - 14, - 17, - 20, - 23 - ] - } - } - } - }, - { - "guarantee": null, - "id": 25, + "id": 3, "output_schema": { "closed": true, "fields": [ @@ -251474,33 +339870,17 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 24 + "child": 2 } } } }, { "guarantee": null, - "id": 26, + "id": 4, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -251511,17 +339891,16 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -251532,46 +339911,126 @@ }, "payload": { "NonASAP": { - "Sort": { - "child": 25, - "keys": [ + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false + "col": null, + "kind": "sum" } ], - "partition_by": [ - 2 - ] + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } } } } }, { "guarantee": null, - "id": 27, + "id": 5, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null - }, + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -251587,13 +340046,21 @@ "name": "$promql_series_identity", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, @@ -251602,14 +340069,14 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Limit": { - "child": 26, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 5 } } } @@ -251617,12 +340084,12 @@ ], "roots": [ 4, - 27 + 6 ] }, - "from_logical": "L58", - "id": "P58-m1", - "label": "Q1 exact (Rate acc) · Q2 exact (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" + "from_logical": "L66", + "id": "P66", + "label": "Q1 exact (Rate acc) · Q2 whole-expression CountSketch+heap · shared input" }, { "dag": { @@ -251740,7 +340207,7 @@ { "consumer": 3, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -251757,12 +340224,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -251798,29 +340262,13 @@ { "consumer": 4, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -251831,17 +340279,19 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -251963,13 +340413,29 @@ { "consumer": 7, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -251980,29 +340446,17 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -252188,86 +340642,6 @@ { "guarantee": null, "id": 2, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 3, "output_schema": { "closed": true, "fields": [ @@ -252317,16 +340691,27 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 4, + "id": 3, "output_schema": { "closed": true, "fields": [ @@ -252340,9 +340725,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "sum", + "name": "state", "nullable": false, "table": null } @@ -252355,24 +340743,30 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" + "ASAP": { + "SummaryAgg": { + "child": 2, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - ], - "output_names": [ - "" - ], + }, "reduction": { "Reduce": [ 2 @@ -252382,6 +340776,48 @@ } } }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } + } + }, { "guarantee": null, "id": 5, @@ -252459,6 +340895,22 @@ "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -252469,78 +340921,41 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { + "NonASAP": { + "Sort": { "child": 5, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" + "nulls_first": false } - }, - "reduction": { - "Reduce": [ - 2 - ] - } + ], + "partition_by": [ + 2 + ] } } } @@ -252553,34 +340968,42 @@ "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, @@ -252589,14 +341012,14 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 6 + "NonASAP": { + "Limit": { + "child": 6, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] } } } @@ -252607,9 +341030,9 @@ 7 ] }, - "from_logical": "L59", - "id": "P59", - "label": "Q1 exact (Rate acc) · Q2 CMS+heap · shared input" + "from_logical": "L67", + "id": "P67", + "label": "Q1 exact (Sum acc) · Q2 exact · shared input" }, { "dag": { @@ -252727,7 +341150,7 @@ { "consumer": 3, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -252744,12 +341167,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -252785,29 +341205,13 @@ { "consumer": 4, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -252818,17 +341222,19 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -253008,13 +341414,29 @@ { "consumer": 8, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -253025,29 +341447,17 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -253246,12 +341656,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -253281,30 +341688,23 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { + "NonASAP": { + "Aggregate": { "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" } - }, + ], + "output_names": [ + "" + ], "reduction": "PerEntity" } } @@ -253316,22 +341716,6 @@ "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -253342,29 +341726,53 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 + "SummaryAgg": { + "child": 2, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } } } } @@ -253404,25 +341812,9 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 } } } @@ -253572,6 +341964,22 @@ "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -253582,78 +341990,41 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { + "NonASAP": { + "Sort": { "child": 6, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" + "nulls_first": false } - }, - "reduction": { - "Reduce": [ - 2 - ] - } + ], + "partition_by": [ + 2 + ] } } } @@ -253666,34 +342037,42 @@ "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, @@ -253702,14 +342081,14 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 7 + "NonASAP": { + "Limit": { + "child": 7, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] } } } @@ -253720,9 +342099,9 @@ 8 ] }, - "from_logical": "L60", - "id": "P60", - "label": "Q1 exact (Rate acc) · Q2 CMS+heap (Sum acc) · shared input" + "from_logical": "L68", + "id": "P68", + "label": "Q1 exact (Sum acc) · Q2 exact (Sum acc) · shared input" }, { "dag": { @@ -253778,36 +342157,130 @@ ] ] }, - "producer": 0, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 4, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -253816,132 +342289,21 @@ "nullable": true, "table": null }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 3, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null } ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 4, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -255404,13 +343766,29 @@ { "consumer": 26, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -255421,29 +343799,17 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -255642,12 +344008,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -255677,30 +344040,23 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { + "NonASAP": { + "Aggregate": { "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" } - }, + ], + "output_names": [ + "" + ], "reduction": "PerEntity" } } @@ -255712,22 +344068,6 @@ "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -255738,29 +344078,53 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 + "SummaryAgg": { + "child": 2, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } } } } @@ -255800,25 +344164,9 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 } } } @@ -257199,6 +345547,22 @@ "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -257209,78 +345573,41 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { + "NonASAP": { + "Sort": { "child": 24, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" + "nulls_first": false } - }, - "reduction": { - "Reduce": [ - 2 - ] - } + ], + "partition_by": [ + 2 + ] } } } @@ -257293,34 +345620,42 @@ "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, @@ -257329,14 +345664,14 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 25 + "NonASAP": { + "Limit": { + "child": 25, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] } } } @@ -257347,9 +345682,9 @@ 26 ] }, - "from_logical": "L61", - "id": "P61", - "label": "Q1 exact (Rate acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · shared input" + "from_logical": "L69", + "id": "P69", + "label": "Q1 exact (Sum acc) · Q2 exact (Sum acc · tumbling 10s panes) · shared input" }, { "dag": { @@ -257405,36 +345740,130 @@ ] ] }, - "producer": 0, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 4, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -257443,132 +345872,21 @@ "nullable": true, "table": null }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 3, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null } ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 4, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -259031,13 +347349,29 @@ { "consumer": 27, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -259048,29 +347382,17 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -259269,12 +347591,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -259304,30 +347623,23 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { + "NonASAP": { + "Aggregate": { "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" } - }, + ], + "output_names": [ + "" + ], "reduction": "PerEntity" } } @@ -259339,22 +347651,6 @@ "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -259365,29 +347661,53 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 + "SummaryAgg": { + "child": 2, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } } } } @@ -259427,25 +347747,9 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 } } } @@ -260934,6 +349238,22 @@ "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -260944,78 +349264,41 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { + "NonASAP": { + "Sort": { "child": 25, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" + "nulls_first": false } - }, - "reduction": { - "Reduce": [ - 2 - ] - } + ], + "partition_by": [ + 2 + ] } } } @@ -261028,34 +349311,42 @@ "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, @@ -261064,14 +349355,14 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 26 + "NonASAP": { + "Limit": { + "child": 26, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] } } } @@ -261082,9 +349373,9 @@ 27 ] }, - "from_logical": "L61", - "id": "P61-m1", - "label": "Q1 exact (Rate acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" + "from_logical": "L69", + "id": "P69-m1", + "label": "Q1 exact (Sum acc) · Q2 exact (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" }, { "dag": { @@ -261140,12 +349431,273 @@ ] ] }, - "producer": 0, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 7, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -261195,14 +349747,14 @@ ] ] }, - "producer": 1, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 8, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -261219,12 +349771,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -261253,12 +349802,12 @@ ] ] }, - "producer": 2, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 9, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -261308,12 +349857,12 @@ ] ] }, - "producer": 3, + "producer": 8, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 10, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -261363,12 +349912,12 @@ ] ] }, - "producer": 1, + "producer": 9, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 11, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -261418,20 +349967,36 @@ ] ] }, - "producer": 5, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 12, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -261442,43 +350007,33 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 6, + "producer": 11, "role": "Input", "window": "NotApplicable" - } - ], - "nodes": [ + }, { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -261522,71 +350077,18 @@ ] ] }, - "output_state": { + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, - { - "guarantee": null, - "id": 1, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -261630,27 +350132,18 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, - { - "guarantee": null, - "id": 2, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -261663,12 +350156,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -261697,40 +350187,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 14, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 3, - "output_schema": { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -261774,24 +350242,36 @@ ] ] }, - "output_state": { + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 17, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -261802,52 +350282,33 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 5, - "output_schema": { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -261891,128 +350352,36 @@ ] ] }, - "output_state": { + "producer": 17, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 19, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 6, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 5, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 7, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -262028,56 +350397,22 @@ "name": "$promql_series_identity", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 6 - } - } - } - } - ], - "roots": [ - 4, - 7 - ] - }, - "from_logical": "L62", - "id": "P62", - "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap · shared input" - }, - { - "dag": { - "edges": [ + "producer": 18, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 20, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -262132,7 +350467,7 @@ "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 21, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -262182,14 +350517,14 @@ ] ] }, - "producer": 1, + "producer": 20, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 22, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -262206,12 +350541,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -262240,14 +350572,14 @@ ] ] }, - "producer": 2, + "producer": 21, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 23, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -262264,9 +350596,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -262295,14 +350630,14 @@ ] ] }, - "producer": 3, + "producer": 7, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 23, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -262319,9 +350654,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -262350,12 +350688,12 @@ ] ] }, - "producer": 1, + "producer": 10, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 23, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -262408,14 +350746,14 @@ ] ] }, - "producer": 5, + "producer": 13, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 23, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -262432,9 +350770,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -262463,12 +350804,12 @@ ] ] }, - "producer": 6, + "producer": 16, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 23, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -262477,6 +350818,25 @@ "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -262487,43 +350847,33 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 7, + "producer": 19, "role": "Input", "window": "NotApplicable" - } - ], - "nodes": [ + }, { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -262536,9 +350886,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -262567,71 +350920,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 22, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 1, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -262644,9 +350944,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -262675,27 +350978,18 @@ ] ] }, - "output_state": { + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, - { - "guarantee": null, - "id": 2, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -262708,12 +351002,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -262742,40 +351033,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 24, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 3, - "output_schema": { + "consumer": 26, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -262819,24 +351088,35 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - } - }, + "producer": 25, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { + "coverage": null, "guarantee": null, - "id": 4, + "id": 0, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -262847,16 +351127,17 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -262866,32 +351147,66 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ { - "col": null, - "kind": "sum" + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } } }, { + "coverage": null, "guarantee": null, - "id": 5, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -262905,12 +351220,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -262940,38 +351252,25 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" } } }, { + "coverage": null, "guarantee": null, - "id": 6, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -263021,16 +351320,39 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 5 - } + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 7, + "id": 3, "output_schema": { "closed": true, "fields": [ @@ -263044,19 +351366,9 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" + "ExactAggregate": [ + "Sum", + "Sum" ] }, "name": "state", @@ -263076,53 +351388,35 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 6, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] } } }, { + "coverage": null, "guarantee": null, - "id": 8, + "id": 4, "output_schema": { "closed": true, "fields": [ @@ -263134,19 +351428,11 @@ "nullable": true, "table": null }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "float64" }, - "name": "value", + "name": "sum", "nullable": false, "table": null } @@ -263154,8 +351440,7 @@ "time_index": null, "unique_keys": [ [ - 0, - 1 + 0 ] ] }, @@ -263164,39 +351449,14 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 7 - } - } + "kind": "finalize_exact_accumulator" } - } - ], - "roots": [ - 4, - 8 - ] - }, - "from_logical": "L63", - "id": "P63", - "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap (Sum acc) · shared input" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ { @@ -263240,18 +351500,26 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -263295,18 +351563,45 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 3, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 7, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -263320,8 +351615,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -263353,18 +351648,37 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 4, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -263408,18 +351722,26 @@ ] ] }, - "producer": 3, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 5, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -263463,73 +351785,45 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 6, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } } ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 7, - "data_state": { - "primitive": "Raw", - "timing": "query_time" + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 10, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -263542,9 +351836,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -263573,18 +351870,37 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 8, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 11, + "output_schema": { "closed": true, "fields": [ { @@ -263628,18 +351944,26 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 9, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 12, + "output_schema": { "closed": true, "fields": [ { @@ -263683,73 +352007,45 @@ ] ] }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 10, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } } ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 9, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 11, - "data_state": { - "primitive": "Raw", - "timing": "query_time" + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 13, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -263762,9 +352058,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -263793,18 +352092,37 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 12, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 14, + "output_schema": { "closed": true, "fields": [ { @@ -263848,18 +352166,26 @@ ] ] }, - "producer": 11, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 13, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -263903,18 +352229,45 @@ ] ] }, - "producer": 12, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 14, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 16, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -263927,9 +352280,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -263958,18 +352314,37 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 15, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 17, + "output_schema": { "closed": true, "fields": [ { @@ -264013,18 +352388,26 @@ ] ] }, - "producer": 14, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 16, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 18, + "output_schema": { "closed": true, "fields": [ { @@ -264068,18 +352451,45 @@ ] ] }, - "producer": 15, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 17, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 19, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -264092,9 +352502,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -264123,18 +352536,37 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 18, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 20, + "output_schema": { "closed": true, "fields": [ { @@ -264178,18 +352610,26 @@ ] ] }, - "producer": 17, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 19, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 21, + "output_schema": { "closed": true, "fields": [ { @@ -264233,18 +352673,45 @@ ] ] }, - "producer": 18, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 20, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 22, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -264257,9 +352724,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -264288,18 +352758,54 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } }, { - "consumer": 21, - "data_state": { - "primitive": "Raw", - "timing": "query_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 23, + "output_schema": { "closed": true, "fields": [ { @@ -264312,9 +352818,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -264343,18 +352852,19 @@ ] ] }, - "producer": 20, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 22, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "summary_merge" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 24, + "output_schema": { "closed": true, "fields": [ { @@ -264398,18 +352908,19 @@ ] ] }, - "producer": 21, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 25, + "output_schema": { "closed": true, "fields": [ { @@ -264422,12 +352933,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -264456,18 +352964,34 @@ ] ] }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "kind": "sort", + "partition_by": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 26, + "output_schema": { "closed": true, "fields": [ { @@ -264480,12 +353004,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -264514,14 +353035,39 @@ ] ] }, - "producer": 10, - "role": "Input", - "window": "NotApplicable" - }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "limit", + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + ], + "roots": [ + 4, + 26 + ] + }, + "from_logical": "L69", + "id": "P69-m2", + "label": "Q1 exact (Sum acc) · Q2 exact (Sum acc · tumbling 10s panes) · shared input · query time, kept: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ { - "consumer": 23, + "consumer": 1, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -264538,12 +353084,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -264572,14 +353115,14 @@ ] ] }, - "producer": 13, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 2, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -264596,12 +353139,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -264630,14 +353170,14 @@ ] ] }, - "producer": 16, + "producer": 1, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 3, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -264654,12 +353194,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -264688,12 +353225,12 @@ ] ] }, - "producer": 19, + "producer": 2, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 4, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -264704,10 +353241,10 @@ "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { @@ -264720,40 +353257,23 @@ "name": "state", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 22, + "producer": 3, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 5, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -264770,12 +353290,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -264804,12 +353321,12 @@ ] ] }, - "producer": 23, + "producer": 1, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 6, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -264859,12 +353376,12 @@ ] ] }, - "producer": 24, + "producer": 5, "role": "Input", "window": "NotApplicable" }, { - "consumer": 26, + "consumer": 7, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -264885,13 +353402,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CountSketchWithHeap", + "algorithm": "CmsWithHeap", "category": "TopK", "params": { - "CountSketchWithHeap": { - "depth": 125, + "CmsWithHeap": { + "depth": 7, "heap_size": 100, - "width": 30000 + "width": 272 } } }, @@ -264910,7 +353427,7 @@ ] ] }, - "producer": 25, + "producer": 6, "role": "Input", "window": "NotApplicable" } @@ -265104,12 +353621,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -265138,6 +353652,62 @@ ] ] }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, "output_state": { "primitive": "SummaryState", "timing": "query_time" @@ -265145,11 +353715,11 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 1, + "child": 2, "family": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "filter": null, @@ -265163,14 +353733,60 @@ "kind": "unknown_or_signed" } }, - "reduction": "PerEntity" + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 } } } }, { "guarantee": null, - "id": 3, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -265220,16 +353836,28 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 4, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -265243,9 +353871,22 @@ }, { "dtype": { - "Plain": "float64" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "sum", + "name": "state", "nullable": false, "table": null } @@ -265258,24 +353899,45 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" + "ASAP": { + "SummaryAgg": { + "child": 5, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } - ], - "output_names": [ - "" - ], + }, "reduction": { "Reduce": [ 2 @@ -265287,8 +353949,81 @@ }, { "guarantee": null, - "id": 5, + "id": 7, "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 6 + } + } + } + } + ], + "roots": [ + 4, + 7 + ] + }, + "from_logical": "L70", + "id": "P70", + "label": "Q1 exact (Sum acc) · Q2 CMS+heap · shared input" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -265332,26 +354067,18 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - } - }, - { - "guarantee": null, - "id": 6, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -265395,27 +354122,18 @@ ] ] }, - "output_state": { + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 7, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -265428,12 +354146,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -265462,40 +354177,59 @@ ] ] }, - "output_state": { + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 6, - "family": { + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { "ExactAggregate": [ "Sum", "Sum" ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "name": "state", + "nullable": false, + "table": null } - } - } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 8, - "output_schema": { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -265539,26 +354273,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 10000 - } - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 9, - "output_schema": { + "consumer": 6, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -265571,9 +354297,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -265602,27 +354331,18 @@ ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 8, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 10, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -265635,12 +354355,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -265669,39 +354386,66 @@ ] ] }, - "output_state": { + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 9, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "reduction": "PerEntity" + "name": "state", + "nullable": false, + "table": null } - } - } - }, + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { "guarantee": null, - "id": 11, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -265752,11 +354496,56 @@ }, "payload": { "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 20000 + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } @@ -265764,7 +354553,7 @@ }, { "guarantee": null, - "id": 12, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -265816,11 +354605,11 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 11, + "child": 0, "kind": "range", "range": { "nanos": 0, - "secs": 10 + "secs": 60 } } } @@ -265828,7 +354617,7 @@ }, { "guarantee": null, - "id": 13, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -265842,12 +354631,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -265877,30 +354663,23 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 12, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" } - }, + ], + "output_names": [ + "" + ], "reduction": "PerEntity" } } @@ -265908,26 +354687,10 @@ }, { "guarantee": null, - "id": 14, + "id": 3, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -265938,32 +354701,52 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 30000 + "ASAP": { + "SummaryAgg": { + "child": 2, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] } } } @@ -265971,26 +354754,10 @@ }, { "guarantee": null, - "id": 15, + "id": 4, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -266001,17 +354768,16 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -266021,21 +354787,16 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 14, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 } } } }, { "guarantee": null, - "id": 16, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -266090,7 +354851,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 15, + "child": 1, "family": { "ExactAggregate": [ "Sum", @@ -266115,7 +354876,7 @@ }, { "guarantee": null, - "id": 17, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -266165,39 +354926,111 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 40000 - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 5 } } } }, { "guarantee": null, - "id": 18, + "id": 7, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null - }, + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -266213,13 +355046,21 @@ "name": "$promql_series_identity", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, @@ -266228,22 +355069,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 17, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 7 } } } - }, + } + ], + "roots": [ + 4, + 8 + ] + }, + "from_logical": "L71", + "id": "P71", + "label": "Q1 exact (Sum acc) · Q2 CMS+heap (Sum acc) · shared input" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 19, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -266256,12 +355114,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -266290,40 +355145,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 18, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 20, - "output_schema": { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -266367,26 +355200,18 @@ ] ] }, - "output_state": { + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 50000 - } - } - } - } - }, - { - "guarantee": null, - "id": 21, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -266430,27 +355255,59 @@ ] ] }, - "output_state": { - "primitive": "Raw", + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 20, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null } - } - } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 22, - "output_schema": { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -266463,12 +355320,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -266497,40 +355351,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 21, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 23, - "output_schema": { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -266543,12 +355375,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -266577,29 +355406,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 7, - 10, - 13, - 16, - 19, - 22 - ] - } - } - } + "producer": 5, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 24, - "output_schema": { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -266643,24 +355461,36 @@ ] ] }, - "output_state": { + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 23 - } - } - } - }, - { - "guarantee": null, - "id": 25, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -266671,88 +355501,51 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 24, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 26, - "output_schema": { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -266768,6 +355561,37 @@ "name": "$promql_series_identity", "nullable": false, "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, { "dtype": { @@ -266776,48 +355600,38 @@ "name": "value", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 25 - } - } - } - } - ], - "roots": [ - 4, - 26 - ] - }, - "from_logical": "L64", - "id": "P64", - "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · shared input" - }, - { - "dag": { - "edges": [ + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 11, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -266872,7 +355686,7 @@ "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 12, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -266922,14 +355736,14 @@ ] ] }, - "producer": 1, + "producer": 11, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 13, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -266946,12 +355760,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -266980,12 +355791,12 @@ ] ] }, - "producer": 2, + "producer": 12, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 14, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -267035,15 +355846,15 @@ ] ] }, - "producer": 3, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 15, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -267090,15 +355901,15 @@ ] ] }, - "producer": 5, + "producer": 14, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 16, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -267145,15 +355956,15 @@ ] ] }, - "producer": 6, + "producer": 15, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 17, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -267200,15 +356011,15 @@ ] ] }, - "producer": 7, + "producer": 0, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 18, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -267255,15 +356066,15 @@ ] ] }, - "producer": 5, + "producer": 17, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 10, + "consumer": 19, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -267310,15 +356121,15 @@ ] ] }, - "producer": 9, + "producer": 18, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 11, + "consumer": 20, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -267365,15 +356176,15 @@ ] ] }, - "producer": 10, + "producer": 0, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 12, + "consumer": 21, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -267420,15 +356231,15 @@ ] ] }, - "producer": 5, + "producer": 20, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 13, + "consumer": 22, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -267475,15 +356286,15 @@ ] ] }, - "producer": 12, + "producer": 21, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 14, + "consumer": 23, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -267499,9 +356310,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -267530,15 +356344,15 @@ ] ] }, - "producer": 13, + "producer": 7, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 15, + "consumer": 23, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -267554,9 +356368,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -267585,15 +356402,15 @@ ] ] }, - "producer": 5, + "producer": 10, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 16, + "consumer": 23, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -267609,9 +356426,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -267640,15 +356460,15 @@ ] ] }, - "producer": 15, + "producer": 13, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 17, + "consumer": 23, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -267664,9 +356484,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -267697,13 +356520,13 @@ }, "producer": 16, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 18, + "consumer": 23, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -267719,9 +356542,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -267750,15 +356576,15 @@ ] ] }, - "producer": 5, + "producer": 19, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 19, + "consumer": 23, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -267774,9 +356600,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -267805,15 +356634,15 @@ ] ] }, - "producer": 18, + "producer": 22, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 20, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -267829,9 +356658,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -267860,15 +356692,15 @@ ] ] }, - "producer": 19, + "producer": 23, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 21, + "consumer": 25, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -267915,36 +356747,20 @@ ] ] }, - "producer": 5, + "producer": 24, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 22, + "consumer": 26, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -267955,33 +356771,43 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 21, + "producer": 25, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, + "window": "NotApplicable" + } + ], + "nodes": [ { - "consumer": 23, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -268025,18 +356851,71 @@ ] ] }, - "producer": 22, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -268049,12 +356928,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -268083,18 +356959,27 @@ ] ] }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -268107,12 +356992,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -268141,26 +357023,41 @@ ] ] }, - "producer": 11, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { @@ -268173,7 +357070,55 @@ "name": "state", "nullable": false, "table": null - }, + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 2, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -268184,33 +357129,36 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 14, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ { @@ -268223,12 +357171,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -268257,18 +357202,26 @@ ] ] }, - "producer": 17, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -268281,12 +357234,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -268315,18 +357265,27 @@ ] ] }, - "producer": 20, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ { @@ -268373,18 +357332,40 @@ ] ] }, - "producer": 23, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 25, - "data_state": { + "output_state": { "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -268397,12 +357378,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -268431,18 +357409,26 @@ ] ] }, - "producer": 24, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 26, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -268486,20 +357472,48 @@ ] ] }, - "producer": 25, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 27, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 8, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -268510,42 +357524,54 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 26, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 9, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, { "guarantee": null, - "id": 0, + "id": 11, "output_schema": { "closed": true, "fields": [ @@ -268596,56 +357622,11 @@ }, "payload": { "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 20000 } } } @@ -268653,7 +357634,7 @@ }, { "guarantee": null, - "id": 1, + "id": 12, "output_schema": { "closed": true, "fields": [ @@ -268705,11 +357686,11 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 0, + "child": 11, "kind": "range", "range": { "nanos": 0, - "secs": 60 + "secs": 10 } } } @@ -268717,7 +357698,7 @@ }, { "guarantee": null, - "id": 2, + "id": 13, "output_schema": { "closed": true, "fields": [ @@ -268732,8 +357713,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -268772,11 +357753,11 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 1, + "child": 12, "family": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "filter": null, @@ -268797,7 +357778,7 @@ }, { "guarantee": null, - "id": 3, + "id": 14, "output_schema": { "closed": true, "fields": [ @@ -268847,19 +357828,39 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 30000 + } } } } }, { "guarantee": null, - "id": 4, + "id": 15, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -268870,16 +357871,17 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -268890,23 +357892,12 @@ }, "payload": { "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] + "TimeRange": { + "child": 14, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 } } } @@ -268914,7 +357905,7 @@ }, { "guarantee": null, - "id": 5, + "id": 16, "output_schema": { "closed": true, "fields": [ @@ -268928,9 +357919,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -268960,69 +357954,38 @@ ] }, "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] + "ASAP": { + "SummaryAgg": { + "child": 15, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" ] }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 6, + "id": 17, "output_schema": { "closed": true, "fields": [ @@ -269069,15 +358032,15 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeShift": { - "child": 5, + "child": 0, "shift": { "at": null, - "offset_ms": 0 + "offset_ms": 40000 } } } @@ -269085,7 +358048,7 @@ }, { "guarantee": null, - "id": 7, + "id": 18, "output_schema": { "closed": true, "fields": [ @@ -269132,12 +358095,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 6, + "child": 17, "kind": "range", "range": { "nanos": 0, @@ -269149,7 +358112,7 @@ }, { "guarantee": null, - "id": 8, + "id": 19, "output_schema": { "closed": true, "fields": [ @@ -269199,12 +358162,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 7, + "child": 18, "family": { "ExactAggregate": [ "Sum", @@ -269229,7 +358192,7 @@ }, { "guarantee": null, - "id": 9, + "id": 20, "output_schema": { "closed": true, "fields": [ @@ -269276,15 +358239,15 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeShift": { - "child": 5, + "child": 0, "shift": { "at": null, - "offset_ms": 10000 + "offset_ms": 50000 } } } @@ -269292,7 +358255,7 @@ }, { "guarantee": null, - "id": 10, + "id": 21, "output_schema": { "closed": true, "fields": [ @@ -269339,12 +358302,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 9, + "child": 20, "kind": "range", "range": { "nanos": 0, @@ -269356,7 +358319,7 @@ }, { "guarantee": null, - "id": 11, + "id": 22, "output_schema": { "closed": true, "fields": [ @@ -269406,12 +358369,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 10, + "child": 21, "family": { "ExactAggregate": [ "Sum", @@ -269436,7 +358399,7 @@ }, { "guarantee": null, - "id": 12, + "id": 23, "output_schema": { "closed": true, "fields": [ @@ -269450,9 +358413,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -269482,24 +358448,27 @@ ] }, "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 20000 - } + "ASAP": { + "SummaryMerge": { + "children": [ + 7, + 10, + 13, + 16, + 19, + 22 + ] } } } }, { "guarantee": null, - "id": 13, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -269546,46 +358515,22 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 12, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 23 } } } }, { "guarantee": null, - "id": 14, + "id": 25, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -269596,55 +358541,159 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 13, + "child": 24, "family": { - "ExactAggregate": [ - "Sum", - "Sum" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" ] }, "filter": null, "grouping": "PerSubpopulationInstance", "input": { - "item": null, + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, "weight": { "Column": "SampleValue" }, "weight_domain": { - "kind": "unknown_or_signed" + "kind": "non_negative", + "proof": "counter_samples" } }, - "reduction": "PerEntity" + "reduction": { + "Reduce": [ + 2 + ] + } } } } }, { "guarantee": null, - "id": 15, + "id": 26, "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0, + 1 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 25 + } + } + } + } + ], + "roots": [ + 4, + 26 + ] + }, + "from_logical": "L72", + "id": "P72", + "label": "Q1 exact (Sum acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · shared input" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -269688,26 +358737,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 30000 - } - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 16, - "output_schema": { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -269751,27 +358792,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 15, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 17, - "output_schema": { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -269784,12 +358816,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -269818,40 +358847,59 @@ ] ] }, - "output_state": { + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 16, - "family": { + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { "ExactAggregate": [ "Sum", "Sum" ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "name": "state", + "nullable": false, + "table": null } - } - } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 18, - "output_schema": { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -269895,26 +358943,18 @@ ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 7, + "data_state": { "primitive": "Raw", "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 40000 - } - } - } - } - }, - { - "guarantee": null, - "id": 19, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -269958,27 +358998,18 @@ ] ] }, - "output_state": { + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 8, + "data_state": { "primitive": "Raw", "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 18, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 20, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -269991,12 +359022,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -270025,40 +359053,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 19, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 7, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 21, - "output_schema": { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -270102,26 +359108,18 @@ ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 10, + "data_state": { "primitive": "Raw", "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 50000 - } - } - } - } - }, - { - "guarantee": null, - "id": 22, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -270165,27 +359163,18 @@ ] ] }, - "output_state": { + "producer": 9, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 11, + "data_state": { "primitive": "Raw", "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 21, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 23, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -270198,12 +359187,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -270232,40 +359218,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 22, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 10, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 24, - "output_schema": { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -270278,12 +359242,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -270312,29 +359273,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 8, - 11, - 14, - 17, - 20, - 23 - ] - } - } - } + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 25, - "output_schema": { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -270378,116 +359328,36 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 24 - } - } - } + "producer": 12, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 26, - "output_schema": { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 25, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 27, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -270503,59 +359373,25 @@ "name": "$promql_series_identity", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 26 - } - } - } - } - ], - "roots": [ - 4, - 27 - ] - }, - "from_logical": "L64", - "id": "P64-m1", - "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" - }, - { - "dag": { - "edges": [ + "producer": 13, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, { - "consumer": 1, + "consumer": 15, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -270602,15 +359438,15 @@ ] ] }, - "producer": 0, + "producer": 5, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 2, + "consumer": 16, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -270657,15 +359493,15 @@ ] ] }, - "producer": 1, + "producer": 15, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 3, + "consumer": 17, "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "primitive": "Raw", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -270681,12 +359517,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -270715,15 +359548,15 @@ ] ] }, - "producer": 2, + "producer": 16, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 4, + "consumer": 18, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -270770,15 +359603,15 @@ ] ] }, - "producer": 3, + "producer": 5, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 5, + "consumer": 19, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -270825,20 +359658,36 @@ ] ] }, - "producer": 1, + "producer": 18, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 6, + "consumer": 20, "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "primitive": "Raw", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -270849,43 +359698,33 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 5, + "producer": 19, "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -270929,71 +359768,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 1, - "output_schema": { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -271037,27 +359823,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } + "producer": 21, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 2, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -271070,12 +359847,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -271104,40 +359878,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 22, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 3, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -271150,9 +359902,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -271181,24 +359936,39 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - } + "producer": 8, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 4, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -271209,146 +359979,54 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } + "producer": 11, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 5, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" + "ExactAggregate": [ + "Sum", + "Sum" ] }, "name": "state", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 6, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -271364,59 +360042,25 @@ "name": "$promql_series_identity", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 5 - } - } - } - } - ], - "roots": [ - 4, - 6 - ] - }, - "from_logical": "L65", - "id": "P65", - "label": "Q1 exact (Rate acc) · Q2 whole-expression CMS+heap · shared input" - }, - { - "dag": { - "edges": [ + "producer": 14, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -271432,9 +360076,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -271463,15 +360110,15 @@ ] ] }, - "producer": 0, + "producer": 17, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -271487,9 +360134,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -271518,15 +360168,15 @@ ] ] }, - "producer": 1, + "producer": 20, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -271543,8 +360193,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -271576,14 +360226,14 @@ ] ] }, - "producer": 2, + "producer": 23, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 25, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -271600,9 +360250,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -271631,12 +360284,12 @@ ] ] }, - "producer": 3, + "producer": 24, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 26, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -271686,12 +360339,12 @@ ] ] }, - "producer": 1, + "producer": 25, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 27, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -271712,13 +360365,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CountSketchWithHeap", + "algorithm": "CmsWithHeap", "category": "TopK", "params": { - "CountSketchWithHeap": { - "depth": 125, + "CmsWithHeap": { + "depth": 7, "heap_size": 100, - "width": 30000 + "width": 272 } } }, @@ -271737,7 +360390,7 @@ ] ] }, - "producer": 5, + "producer": 26, "role": "Input", "window": "NotApplicable" } @@ -271918,86 +360571,6 @@ { "guarantee": null, "id": 2, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 3, "output_schema": { "closed": true, "fields": [ @@ -272046,75 +360619,28 @@ "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "sum", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, "payload": { "NonASAP": { "Aggregate": { - "child": 3, + "child": 1, "filters": [], "having": null, "measures": [ { - "col": null, - "kind": "sum" + "kind": "rate" } ], "output_names": [ "" ], - "reduction": { - "Reduce": [ - 2 - ] - } + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 5, + "id": 3, "output_schema": { "closed": true, "fields": [ @@ -272128,19 +360654,9 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" + "ExactAggregate": [ + "Sum", + "Sum" ] }, "name": "state", @@ -272162,37 +360678,22 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 1, + "child": 2, "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" + "ExactAggregate": [ + "Sum", + "Sum" ] }, "filter": null, "grouping": "PerSubpopulationInstance", "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, + "item": null, "weight": { "Column": "SampleValue" }, "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" + "kind": "unknown_or_signed" } }, "reduction": { @@ -272206,7 +360707,7 @@ }, { "guarantee": null, - "id": 6, + "id": 4, "output_schema": { "closed": true, "fields": [ @@ -272218,19 +360719,11 @@ "nullable": true, "table": null }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "float64" }, - "name": "value", + "name": "sum", "nullable": false, "table": null } @@ -272238,8 +360731,7 @@ "time_index": null, "unique_keys": [ [ - 0, - 1 + 0 ] ] }, @@ -272249,38 +360741,16 @@ }, "payload": { "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 5 + "FinalizeExactAccumulator": { + "child": 3 } } } - } - ], - "roots": [ - 4, - 6 - ] - }, - "from_logical": "L66", - "id": "P66", - "label": "Q1 exact (Rate acc) · Q2 whole-expression CountSketch+heap · shared input" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ { @@ -272324,18 +360794,71 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -272379,18 +360902,26 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 3, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ { @@ -272434,59 +360965,27 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 4, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null + "payload": { + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 3, - "role": "Input", - "window": "NotApplicable" + } + } }, { - "consumer": 5, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -272499,9 +360998,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -272530,18 +361032,40 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 6, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -272585,18 +361109,26 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 7, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { "closed": true, "fields": [ { @@ -272640,15 +361172,26 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 9, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, { "guarantee": null, - "id": 0, + "id": 11, "output_schema": { "closed": true, "fields": [ @@ -272662,9 +361205,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -272694,69 +361240,38 @@ ] }, "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 10, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" ] }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 1, + "id": 12, "output_schema": { "closed": true, "fields": [ @@ -272803,16 +361318,15 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 20000 } } } @@ -272820,7 +361334,7 @@ }, { "guarantee": null, - "id": 2, + "id": 13, "output_schema": { "closed": true, "fields": [ @@ -272867,39 +361381,33 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "TimeRange": { + "child": 12, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { "guarantee": null, - "id": 3, + "id": 14, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { @@ -272912,23 +361420,40 @@ "name": "state", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 2, + "child": 13, "family": { "ExactAggregate": [ "Sum", @@ -272946,21 +361471,33 @@ "kind": "unknown_or_signed" } }, - "reduction": { - "Reduce": [ - 2 - ] - } + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 4, + "id": 15, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -272971,35 +361508,40 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 30000 + } } } } }, { "guarantee": null, - "id": 5, + "id": 16, "output_schema": { "closed": true, "fields": [ @@ -273046,31 +361588,24 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "TimeRange": { + "child": 15, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { "guarantee": null, - "id": 6, + "id": 17, "output_schema": { "closed": true, "fields": [ @@ -273084,9 +361619,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -273116,32 +361654,38 @@ ] }, "output_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "payload": { - "NonASAP": { - "Sort": { - "child": 5, - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false + "ASAP": { + "SummaryAgg": { + "child": 16, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - ], - "partition_by": [ - 2 - ] + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 7, + "id": 18, "output_schema": { "closed": true, "fields": [ @@ -273188,42 +361732,24 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "Limit": { - "child": 6, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 40000 + } } } } - } - ], - "roots": [ - 4, - 7 - ] - }, - "from_logical": "L67", - "id": "P67", - "label": "Q1 exact (Sum acc) · Q2 exact · shared input" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 19, + "output_schema": { "closed": true, "fields": [ { @@ -273267,18 +361793,27 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 18, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 20, + "output_schema": { "closed": true, "fields": [ { @@ -273291,9 +361826,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -273322,18 +361860,40 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 19, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 3, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 21, + "output_schema": { "closed": true, "fields": [ { @@ -273377,20 +361937,44 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + } }, { - "consumer": 4, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 22, + "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -273401,35 +361985,42 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 3, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 5, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 21, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 23, + "output_schema": { "closed": true, "fields": [ { @@ -273442,9 +362033,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -273473,18 +362067,40 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 6, - "data_state": { + "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 22, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 24, + "output_schema": { "closed": true, "fields": [ { @@ -273531,18 +362147,29 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 7, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryMerge": { + "children": [ + 8, + 11, + 14, + 17, + 20, + 23 + ] + } + } + } + }, + { + "guarantee": null, + "id": 25, + "output_schema": { "closed": true, "fields": [ { @@ -273586,36 +362213,116 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 8, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 24 + } + } + } + }, + { + "guarantee": null, + "id": 26, + "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null - }, + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 25, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 27, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -273631,26 +362338,62 @@ "name": "$promql_series_identity", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 26 + } + } + } } ], - "nodes": [ + "roots": [ + 4, + 27 + ] + }, + "from_logical": "L72", + "id": "P72-m1", + "label": "Q1 exact (Sum acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -273694,71 +362437,18 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, - { - "guarantee": null, - "id": 1, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -273802,27 +362492,18 @@ ] ] }, - "output_state": { + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, - { - "guarantee": null, - "id": 2, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -273866,33 +362547,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } + "producer": 2, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 3, - "output_schema": { + "consumer": 4, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -273922,46 +362588,36 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 2, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } + "producer": 3, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 4, - "output_schema": { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -273972,36 +362628,33 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 - } - } - } - }, - { - "guarantee": null, - "id": 5, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -274014,12 +362667,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -274048,40 +362698,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 5, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 6, - "output_schema": { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -274125,22 +362753,18 @@ ] ] }, - "output_state": { + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 5 - } - } - } - }, - { - "guarantee": null, - "id": 7, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -274184,34 +362808,18 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Sort": { - "child": 6, - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false - } - ], - "partition_by": [ - 2 - ] - } - } - } - }, - { - "guarantee": null, - "id": 8, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -274255,38 +362863,12 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Limit": { - "child": 7, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] - } - } - } - } - ], - "roots": [ - 4, - 8 - ] - }, - "from_logical": "L68", - "id": "P68", - "label": "Q1 exact (Sum acc) · Q2 exact (Sum acc) · shared input" - }, - { - "dag": { - "edges": [ + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 10, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -274336,12 +362918,12 @@ ] ] }, - "producer": 0, + "producer": 9, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 11, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -274391,12 +362973,12 @@ ] ] }, - "producer": 1, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 12, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -274446,20 +363028,36 @@ ] ] }, - "producer": 2, + "producer": 11, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 13, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -274470,29 +363068,27 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 3, + "producer": 12, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 14, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -274547,7 +363143,7 @@ "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 15, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -274597,12 +363193,12 @@ ] ] }, - "producer": 5, + "producer": 14, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 16, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -274652,12 +363248,12 @@ ] ] }, - "producer": 6, + "producer": 15, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 17, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -274712,7 +363308,7 @@ "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 18, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -274762,12 +363358,12 @@ ] ] }, - "producer": 8, + "producer": 17, "role": "Input", "window": "NotApplicable" }, { - "consumer": 10, + "consumer": 19, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -274817,12 +363413,12 @@ ] ] }, - "producer": 9, + "producer": 18, "role": "Input", "window": "NotApplicable" }, { - "consumer": 11, + "consumer": 20, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -274877,7 +363473,7 @@ "window": "NotApplicable" }, { - "consumer": 12, + "consumer": 21, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -274927,12 +363523,12 @@ ] ] }, - "producer": 11, + "producer": 20, "role": "Input", "window": "NotApplicable" }, { - "consumer": 13, + "consumer": 22, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -274982,14 +363578,14 @@ ] ] }, - "producer": 12, + "producer": 21, "role": "Input", "window": "NotApplicable" }, { - "consumer": 14, + "consumer": 23, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -275006,9 +363602,186 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 10, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", "nullable": false, "table": null }, @@ -275037,14 +363810,14 @@ ] ] }, - "producer": 0, + "producer": 16, "role": "Input", "window": "NotApplicable" }, { - "consumer": 15, + "consumer": 23, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -275061,9 +363834,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -275092,14 +363868,14 @@ ] ] }, - "producer": 14, + "producer": 19, "role": "Input", "window": "NotApplicable" }, { - "consumer": 16, + "consumer": 23, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -275116,9 +363892,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -275147,14 +363926,14 @@ ] ] }, - "producer": 15, + "producer": 22, "role": "Input", "window": "NotApplicable" }, { - "consumer": 17, + "consumer": 24, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -275171,9 +363950,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -275202,12 +363984,12 @@ ] ] }, - "producer": 0, + "producer": 23, "role": "Input", "window": "NotApplicable" }, { - "consumer": 18, + "consumer": 25, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -275257,36 +364039,20 @@ ] ] }, - "producer": 17, + "producer": 24, "role": "Input", "window": "NotApplicable" }, { - "consumer": 19, + "consumer": 26, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -275297,33 +364063,44 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 18, + "producer": 25, "role": "Input", "window": "NotApplicable" - }, + } + ], + "nodes": [ { - "consumer": 20, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -275367,18 +364144,72 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 21, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -275422,18 +364253,27 @@ ] ] }, - "producer": 20, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 22, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -275477,26 +364317,53 @@ ] ] }, - "producer": 21, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } }, { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { @@ -275509,7 +364376,52 @@ "name": "state", "nullable": false, "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -275520,33 +364432,33 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ { @@ -275559,12 +364471,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -275593,18 +364502,26 @@ ] ] }, - "producer": 10, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -275617,12 +364534,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -275651,18 +364565,45 @@ ] ] }, - "producer": 13, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 7, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -275709,18 +364650,37 @@ ] ] }, - "producer": 16, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 23, - "data_state": { + "output_state": { "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -275733,12 +364693,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -275767,18 +364724,26 @@ ] ] }, - "producer": 19, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -275791,12 +364756,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -275825,18 +364787,45 @@ ] ] }, - "producer": 22, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 10, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -275883,18 +364872,37 @@ ] ] }, - "producer": 23, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 25, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 11, + "output_schema": { "closed": true, "fields": [ { @@ -275938,18 +364946,26 @@ ] ] }, - "producer": 24, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 26, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 12, + "output_schema": { "closed": true, "fields": [ { @@ -275993,15 +365009,44 @@ ] ] }, - "producer": 25, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 0, + "id": 13, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -276015,9 +365060,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -276047,69 +365095,35 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 1, + "id": 14, "output_schema": { "closed": true, "fields": [ @@ -276159,21 +365173,20 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 } } } }, { + "coverage": null, "guarantee": null, - "id": 2, + "id": 15, "output_schema": { "closed": true, "fields": [ @@ -276223,36 +365236,48 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 3, + "id": 16, + "kept": true, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { @@ -276265,55 +365290,7 @@ "name": "state", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 2, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -276324,35 +365301,51 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 5, + "id": 17, "output_schema": { "closed": true, "fields": [ @@ -276402,20 +365395,20 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 0 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 } } } }, { + "coverage": null, "guarantee": null, - "id": 6, + "id": 18, "output_schema": { "closed": true, "fields": [ @@ -276465,21 +365458,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 7, + "id": 19, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -276532,34 +365543,31 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 6, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 8, + "id": 20, "output_schema": { "closed": true, "fields": [ @@ -276609,20 +365617,20 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 10000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 } } } }, { + "coverage": null, "guarantee": null, - "id": 9, + "id": 21, "output_schema": { "closed": true, "fields": [ @@ -276672,21 +365680,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 8, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 10, + "id": 22, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -276739,34 +365765,48 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 9, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 11, + "id": 23, "output_schema": { "closed": true, "fields": [ @@ -276780,9 +365820,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -276812,24 +365855,17 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 20000 - } - } - } + "kind": "summary_merge" } }, { + "coverage": null, "guarantee": null, - "id": 12, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -276879,43 +365915,117 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 11, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } + "kind": "finalize_exact_accumulator" } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 13, + "id": 25, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" ] }, "name": "state", "nullable": false, "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 26, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -276931,50 +366041,58 @@ "name": "$promql_series_identity", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 12, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 } } } - }, + } + ], + "roots": [ + 4, + 26 + ] + }, + "from_logical": "L72", + "id": "P72-m2", + "label": "Q1 exact (Sum acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · shared input · query time, kept: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 14, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -277018,26 +366136,18 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 30000 - } - } - } - } - }, - { - "guarantee": null, - "id": 15, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -277081,27 +366191,18 @@ ] ] }, - "output_state": { + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 14, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 16, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -277114,12 +366215,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -277148,40 +366246,59 @@ ] ] }, - "output_state": { + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 15, - "family": { + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { "ExactAggregate": [ "Sum", "Sum" ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "name": "state", + "nullable": false, + "table": null } - } - } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 17, - "output_schema": { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -277225,26 +366342,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 40000 - } - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 18, - "output_schema": { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -277288,26 +366397,66 @@ ] ] }, - "output_state": { - "primitive": "Raw", + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 7, + "data_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 17, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null } - } - } - }, + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { "guarantee": null, - "id": 19, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -277321,12 +366470,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -277356,38 +366502,69 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 18, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - }, - "reduction": "PerEntity" + } } } } }, { "guarantee": null, - "id": 20, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -277438,11 +366615,12 @@ }, "payload": { "NonASAP": { - "TimeShift": { + "TimeRange": { "child": 0, - "shift": { - "at": null, - "offset_ms": 50000 + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } @@ -277450,7 +366628,7 @@ }, { "guarantee": null, - "id": 21, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -277501,29 +366679,35 @@ }, "payload": { "NonASAP": { - "TimeRange": { - "child": 20, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 22, + "id": 3, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { @@ -277536,28 +366720,11 @@ "name": "state", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -277569,7 +366736,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 21, + "child": 2, "family": { "ExactAggregate": [ "Sum", @@ -277587,36 +366754,21 @@ "kind": "unknown_or_signed" } }, - "reduction": "PerEntity" + "reduction": { + "Reduce": [ + 2 + ] + } } } } }, { "guarantee": null, - "id": 23, + "id": 4, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -277627,43 +366779,35 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { "ASAP": { - "SummaryMerge": { - "children": [ - 7, - 10, - 13, - 16, - 19, - 22 - ] + "FinalizeExactAccumulator": { + "child": 3 } } } }, { "guarantee": null, - "id": 24, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -277713,35 +366857,31 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 23 + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 25, + "id": 6, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -277752,89 +366892,118 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Sort": { - "child": 24, - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 + "ASAP": { + "SummaryAgg": { + "child": 5, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } }, - "nulls_first": false + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } - ], - "partition_by": [ - 2 - ] + }, + "reduction": { + "Reduce": [ + 2 + ] + } } } } }, { "guarantee": null, - "id": 26, + "id": 7, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { "Plain": "utf8" }, - "name": "job", - "nullable": true, + "name": "$promql_series_identity", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, @@ -277843,14 +367012,14 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Limit": { - "child": 25, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 6 } } } @@ -277858,12 +367027,12 @@ ], "roots": [ 4, - 26 + 7 ] }, - "from_logical": "L69", - "id": "P69", - "label": "Q1 exact (Sum acc) · Q2 exact (Sum acc · tumbling 10s panes) · shared input" + "from_logical": "L73", + "id": "P73", + "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap · shared input" }, { "dag": { @@ -278075,10 +367244,10 @@ "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 5, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -278125,15 +367294,15 @@ ] ] }, - "producer": 5, + "producer": 1, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 6, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -278149,9 +367318,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -278180,15 +367352,15 @@ ] ] }, - "producer": 6, + "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 7, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -278235,18 +367407,67 @@ ] ] }, - "producer": 7, + "producer": 6, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 8, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -278290,18 +367511,71 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 10, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -278345,18 +367619,27 @@ ] ] }, - "producer": 9, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 11, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -278400,18 +367683,142 @@ ] ] }, - "producer": 10, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } }, { - "consumer": 12, - "data_state": { + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 2, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ { @@ -278424,9 +367831,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -278455,18 +367865,40 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 13, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -278510,36 +367942,116 @@ ] ] }, - "producer": 12, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 14, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 5 + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null - }, + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -278555,25 +368067,59 @@ "name": "$promql_series_identity", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, - "producer": 13, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 7 + } + } + } + } + ], + "roots": [ + 4, + 8 + ] + }, + "from_logical": "L74", + "id": "P74", + "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap (Sum acc) · shared input" + }, + { + "dag": { + "edges": [ { - "consumer": 15, + "consumer": 1, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -278620,15 +368166,15 @@ ] ] }, - "producer": 5, + "producer": 0, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 16, + "consumer": 2, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -278675,15 +368221,15 @@ ] ] }, - "producer": 15, + "producer": 1, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 17, + "consumer": 3, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -278717,28 +368263,69 @@ "dtype": { "Plain": "utf8" }, - "name": "$promql_series_identity", + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 16, + "producer": 3, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 18, + "consumer": 5, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -278785,15 +368372,15 @@ ] ] }, - "producer": 5, + "producer": 0, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 19, + "consumer": 6, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -278840,15 +368427,15 @@ ] ] }, - "producer": 18, + "producer": 5, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 20, + "consumer": 7, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -278895,15 +368482,15 @@ ] ] }, - "producer": 19, + "producer": 6, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 21, + "consumer": 8, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -278950,15 +368537,15 @@ ] ] }, - "producer": 5, + "producer": 0, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 22, + "consumer": 9, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -279005,15 +368592,15 @@ ] ] }, - "producer": 21, + "producer": 8, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 10, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -279060,15 +368647,15 @@ ] ] }, - "producer": 22, + "producer": 9, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 11, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -279084,12 +368671,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -279118,15 +368702,15 @@ ] ] }, - "producer": 8, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 12, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -279142,12 +368726,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -279181,10 +368762,10 @@ "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 13, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -279200,12 +368781,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -279234,15 +368812,15 @@ ] ] }, - "producer": 14, + "producer": 12, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 14, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -279258,12 +368836,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -279292,15 +368867,15 @@ ] ] }, - "producer": 17, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 15, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -279316,12 +368891,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -279350,15 +368922,15 @@ ] ] }, - "producer": 20, + "producer": 14, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 16, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -279374,12 +368946,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -279408,14 +368977,14 @@ ] ] }, - "producer": 23, + "producer": 15, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 17, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -279432,12 +369001,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -279466,12 +369032,12 @@ ] ] }, - "producer": 24, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 26, + "consumer": 18, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -279521,12 +369087,12 @@ ] ] }, - "producer": 25, + "producer": 17, "role": "Input", "window": "NotApplicable" }, { - "consumer": 27, + "consumer": 19, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -279576,16 +369142,18 @@ ] ] }, - "producer": 26, + "producer": 18, "role": "Input", "window": "NotApplicable" - } - ], - "nodes": [ + }, { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -279629,71 +369197,18 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 21, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, - { - "guarantee": null, - "id": 1, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -279737,27 +369252,18 @@ ] ] }, - "output_state": { + "producer": 20, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 22, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, - { - "guarantee": null, - "id": 2, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -279801,142 +369307,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } + "producer": 21, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 3, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { + "consumer": 23, + "data_state": { "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 2, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "sum", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 - } - } - } - }, - { - "guarantee": null, - "id": 5, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -279949,9 +369331,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -279980,71 +369365,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 7, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 6, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -280057,9 +369389,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -280088,26 +369423,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - } + "producer": 10, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 7, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -280120,9 +369447,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -280151,27 +369481,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 6, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 13, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 8, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -280218,40 +369539,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 7, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 16, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 9, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -280264,9 +369563,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -280295,26 +369597,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 10000 - } - } - } - } + "producer": 19, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 10, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -280327,9 +369621,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -280358,27 +369655,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 9, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 22, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 11, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -280425,40 +369713,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 10, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 23, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 12, - "output_schema": { + "consumer": 25, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -280502,44 +369768,20 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 20000 - } - } - } - } + "producer": 24, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 13, - "output_schema": { + "consumer": 26, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -280550,41 +369792,42 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 12, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, + "producer": 25, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { "guarantee": null, - "id": 14, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -280598,12 +369841,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -280633,38 +369873,69 @@ ] }, "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 13, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - }, - "reduction": "PerEntity" + } } } } }, { "guarantee": null, - "id": 15, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -280711,15 +369982,16 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 30000 + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } @@ -280727,7 +369999,7 @@ }, { "guarantee": null, - "id": 16, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -280774,33 +370046,39 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { - "TimeRange": { - "child": 15, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 17, + "id": 3, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { @@ -280813,40 +370091,23 @@ "name": "state", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 16, + "child": 2, "family": { "ExactAggregate": [ "Sum", @@ -280864,14 +370125,60 @@ "kind": "unknown_or_signed" } }, - "reduction": "PerEntity" + "reduction": { + "Reduce": [ + 2 + ] + } } } } }, { "guarantee": null, - "id": 18, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } + } + }, + { + "guarantee": null, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -280918,15 +370225,15 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeShift": { - "child": 5, + "child": 0, "shift": { "at": null, - "offset_ms": 40000 + "offset_ms": 0 } } } @@ -280934,7 +370241,7 @@ }, { "guarantee": null, - "id": 19, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -280981,12 +370288,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 18, + "child": 5, "kind": "range", "range": { "nanos": 0, @@ -280998,7 +370305,7 @@ }, { "guarantee": null, - "id": 20, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -281048,12 +370355,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 19, + "child": 6, "family": { "ExactAggregate": [ "Sum", @@ -281078,7 +370385,7 @@ }, { "guarantee": null, - "id": 21, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -281125,15 +370432,15 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeShift": { - "child": 5, + "child": 0, "shift": { "at": null, - "offset_ms": 50000 + "offset_ms": 10000 } } } @@ -281141,7 +370448,7 @@ }, { "guarantee": null, - "id": 22, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -281188,12 +370495,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 21, + "child": 8, "kind": "range", "range": { "nanos": 0, @@ -281205,7 +370512,7 @@ }, { "guarantee": null, - "id": 23, + "id": 10, "output_schema": { "closed": true, "fields": [ @@ -281255,12 +370562,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 22, + "child": 9, "family": { "ExactAggregate": [ "Sum", @@ -281285,7 +370592,7 @@ }, { "guarantee": null, - "id": 24, + "id": 11, "output_schema": { "closed": true, "fields": [ @@ -281299,12 +370606,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -281334,27 +370638,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 8, - 11, - 14, - 17, - 20, - 23 - ] + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 20000 + } } } } }, { "guarantee": null, - "id": 25, + "id": 12, "output_schema": { "closed": true, "fields": [ @@ -281404,16 +370705,21 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 24 + "NonASAP": { + "TimeRange": { + "child": 11, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { "guarantee": null, - "id": 26, + "id": 13, "output_schema": { "closed": true, "fields": [ @@ -281427,9 +370733,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -281459,32 +370768,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Sort": { - "child": 25, - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false + "ASAP": { + "SummaryAgg": { + "child": 12, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - ], - "partition_by": [ - 2 - ] + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 27, + "id": 14, "output_schema": { "closed": true, "fields": [ @@ -281535,38 +370850,20 @@ }, "payload": { "NonASAP": { - "Limit": { - "child": 26, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 30000 + } } } } - } - ], - "roots": [ - 4, - 27 - ] - }, - "from_logical": "L69", - "id": "P69-m1", - "label": "Q1 exact (Sum acc) · Q2 exact (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -281610,18 +370907,27 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 14, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { "closed": true, "fields": [ { @@ -281634,9 +370940,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -281665,18 +370974,40 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 3, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 15, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 17, + "output_schema": { "closed": true, "fields": [ { @@ -281720,59 +371051,26 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 4, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 40000 + } } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 3, - "role": "Input", - "window": "NotApplicable" + } + } }, { - "consumer": 5, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 18, + "output_schema": { "closed": true, "fields": [ { @@ -281816,18 +371114,27 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 6, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 17, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 19, + "output_schema": { "closed": true, "fields": [ { @@ -281840,9 +371147,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -281871,66 +371181,39 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 7, - "data_state": { + "output_state": { "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 18, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" ] }, - "name": "state", - "nullable": false, - "table": null + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + } + } + }, { "guarantee": null, - "id": 0, + "id": 20, "output_schema": { "closed": true, "fields": [ @@ -281981,56 +371264,11 @@ }, "payload": { "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 50000 } } } @@ -282038,7 +371276,7 @@ }, { "guarantee": null, - "id": 1, + "id": 21, "output_schema": { "closed": true, "fields": [ @@ -282090,11 +371328,11 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 0, + "child": 20, "kind": "range", "range": { "nanos": 0, - "secs": 60 + "secs": 10 } } } @@ -282102,7 +371340,7 @@ }, { "guarantee": null, - "id": 2, + "id": 22, "output_schema": { "closed": true, "fields": [ @@ -282116,9 +371354,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -282147,62 +371388,6 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 3, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, "output_state": { "primitive": "SummaryState", "timing": "query_time" @@ -282210,7 +371395,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 2, + "child": 21, "family": { "ExactAggregate": [ "Sum", @@ -282228,21 +371413,36 @@ "kind": "unknown_or_signed" } }, - "reduction": { - "Reduce": [ - 2 - ] - } + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 4, + "id": 23, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -282253,35 +371453,43 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 + "SummaryMerge": { + "children": [ + 7, + 10, + 13, + 16, + 19, + 22 + ] } } } }, { "guarantee": null, - "id": 5, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -282322,37 +371530,25 @@ "unique_keys": [ [ 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 23 } } } }, { "guarantee": null, - "id": 6, + "id": 25, "output_schema": { "closed": true, "fields": [ @@ -282368,13 +371564,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CmsWithHeap", + "algorithm": "CountSketchWithHeap", "category": "TopK", "params": { - "CmsWithHeap": { - "depth": 7, + "CountSketchWithHeap": { + "depth": 125, "heap_size": 100, - "width": 272 + "width": 30000 } } }, @@ -282400,17 +371596,17 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 5, + "child": 24, "family": { "Sketch": [ { - "algorithm": "CmsWithHeap", + "algorithm": "CountSketchWithHeap", "category": "TopK", "params": { - "CmsWithHeap": { - "depth": 7, + "CountSketchWithHeap": { + "depth": 125, "heap_size": 100, - "width": 272 + "width": 30000 } } }, @@ -282444,7 +371640,7 @@ }, { "guarantee": null, - "id": 7, + "id": 26, "output_schema": { "closed": true, "fields": [ @@ -282493,7 +371689,7 @@ "k": 10 } }, - "summary_input": 6 + "summary_input": 25 } } } @@ -282501,12 +371697,12 @@ ], "roots": [ 4, - 7 + 26 ] }, - "from_logical": "L70", - "id": "P70", - "label": "Q1 exact (Sum acc) · Q2 CMS+heap · shared input" + "from_logical": "L75", + "id": "P75", + "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · shared input" }, { "dag": { @@ -282718,10 +371914,10 @@ "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 6, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -282768,15 +371964,15 @@ ] ] }, - "producer": 1, + "producer": 5, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 6, + "consumer": 7, "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "primitive": "Raw", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -282792,12 +371988,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -282826,15 +372019,15 @@ ] ] }, - "producer": 5, + "producer": 6, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 7, + "consumer": 8, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -282881,20 +372074,36 @@ ] ] }, - "producer": 6, + "producer": 7, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 8, + "consumer": 9, "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "primitive": "Raw", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -282905,43 +372114,33 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 7, + "producer": 5, "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -282985,71 +372184,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 9, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 1, - "output_schema": { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -283093,27 +372239,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } + "producer": 10, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 2, - "output_schema": { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -283157,35 +372294,36 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 3, - "output_schema": { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -283196,63 +372334,51 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 2, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } + "producer": 12, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 4, - "output_schema": { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -283263,36 +372389,33 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 - } - } - } + "producer": 13, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 5, - "output_schema": { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -283305,12 +372428,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -283339,40 +372459,73 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" }, - "reduction": "PerEntity" + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 15, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 6, - "output_schema": { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -283416,24 +372569,36 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 5 - } - } - } + "producer": 16, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 7, - "output_schema": { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -283444,88 +372609,106 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 6, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" }, - "reduction": { - "Reduce": [ - 2 - ] - } + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 18, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 8, - "output_schema": { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -283541,6 +372724,37 @@ "name": "$promql_series_identity", "nullable": false, "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 19, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, { "dtype": { @@ -283549,51 +372763,96 @@ "name": "value", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, - "output_state": { + "producer": 5, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 22, + "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "summary_input": 7 + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } - } - ], - "roots": [ - 4, - 8 - ] - }, - "from_logical": "L71", - "id": "P71", - "label": "Q1 exact (Sum acc) · Q2 CMS+heap (Sum acc) · shared input" - }, - { - "dag": { - "edges": [ + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 21, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, { - "consumer": 1, + "consumer": 23, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -283640,15 +372899,15 @@ ] ] }, - "producer": 0, + "producer": 22, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 2, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -283664,9 +372923,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -283695,15 +372957,15 @@ ] ] }, - "producer": 1, + "producer": 8, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -283719,9 +372981,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -283750,20 +373015,39 @@ ] ] }, - "producer": 2, + "producer": 11, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -283772,6 +373056,45 @@ "nullable": true, "table": null }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 14, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, { "dtype": { "ExactAggregate": [ @@ -283782,24 +373105,41 @@ "name": "state", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 3, + "producer": 17, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -283815,9 +373155,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -283846,15 +373189,15 @@ ] ] }, - "producer": 0, + "producer": 20, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -283870,9 +373213,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -283901,14 +373247,14 @@ ] ] }, - "producer": 5, + "producer": 23, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 25, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -283925,9 +373271,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -283956,12 +373305,12 @@ ] ] }, - "producer": 6, + "producer": 24, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 26, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -284011,18 +373360,67 @@ ] ] }, - "producer": 0, + "producer": 25, "role": "Input", "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 27, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 26, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ + { + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -284066,18 +373464,71 @@ ] ] }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 10, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -284121,18 +373572,27 @@ ] ] }, - "producer": 9, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 11, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -284176,36 +373636,35 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 12, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -284216,51 +373675,63 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 11, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 13, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 2, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } }, - "name": "value", - "nullable": false, - "table": null - }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -284271,33 +373742,36 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 12, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 14, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ { @@ -284341,18 +373815,71 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 15, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -284396,18 +373923,26 @@ ] ] }, - "producer": 14, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 16, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ { @@ -284451,18 +373986,27 @@ ] ] }, - "producer": 15, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 17, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -284475,9 +374019,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -284506,18 +374053,40 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 18, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -284561,18 +374130,26 @@ ] ] }, - "producer": 17, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 19, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { "closed": true, "fields": [ { @@ -284616,18 +374193,27 @@ ] ] }, - "producer": 18, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 20, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 9, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { "closed": true, "fields": [ { @@ -284640,9 +374226,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -284671,18 +374260,40 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 10, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 21, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 12, + "output_schema": { "closed": true, "fields": [ { @@ -284726,18 +374337,26 @@ ] ] }, - "producer": 20, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 22, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } + }, + { + "guarantee": null, + "id": 13, + "output_schema": { "closed": true, "fields": [ { @@ -284781,18 +374400,27 @@ ] ] }, - "producer": 21, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 12, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } }, { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 14, + "output_schema": { "closed": true, "fields": [ { @@ -284839,18 +374467,40 @@ ] ] }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 23, - "data_state": { + "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 13, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -284863,12 +374513,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -284897,18 +374544,26 @@ ] ] }, - "producer": 10, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } }, { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 16, + "output_schema": { "closed": true, "fields": [ { @@ -284921,12 +374576,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -284955,18 +374607,27 @@ ] ] }, - "producer": 13, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 15, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } }, { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 17, + "output_schema": { "closed": true, "fields": [ { @@ -285013,18 +374674,40 @@ ] ] }, - "producer": 16, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 23, - "data_state": { + "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 16, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 18, + "output_schema": { "closed": true, "fields": [ { @@ -285037,12 +374720,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -285071,18 +374751,26 @@ ] ] }, - "producer": 19, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + } }, { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 19, + "output_schema": { "closed": true, "fields": [ { @@ -285095,12 +374783,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -285129,18 +374814,27 @@ ] ] }, - "producer": 22, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 18, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 20, + "output_schema": { "closed": true, "fields": [ { @@ -285187,18 +374881,40 @@ ] ] }, - "producer": 23, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 19, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 25, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 21, + "output_schema": { "closed": true, "fields": [ { @@ -285242,66 +374958,25 @@ ] ] }, - "producer": 24, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 26, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null + "payload": { + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 50000 + } } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 25, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + } + } + }, { "guarantee": null, - "id": 0, + "id": 22, "output_schema": { "closed": true, "fields": [ @@ -285348,68 +375023,104 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] + "TimeRange": { + "child": 21, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 23, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 22, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" ] }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 1, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -285423,9 +375134,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -285455,25 +375169,27 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "ASAP": { + "SummaryMerge": { + "children": [ + 8, + 11, + 14, + 17, + 20, + 23 + ] } } } }, { "guarantee": null, - "id": 2, + "id": 25, "output_schema": { "closed": true, "fields": [ @@ -285523,27 +375239,16 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 24 } } } }, { "guarantee": null, - "id": 3, + "id": 26, "output_schema": { "closed": true, "fields": [ @@ -285557,9 +375262,19 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" ] }, "name": "state", @@ -285581,22 +375296,37 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 2, + "child": 25, "family": { - "ExactAggregate": [ - "Sum", - "Sum" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" ] }, "filter": null, "grouping": "PerSubpopulationInstance", "input": { - "item": null, + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, "weight": { "Column": "SampleValue" }, "weight_domain": { - "kind": "unknown_or_signed" + "kind": "non_negative", + "proof": "counter_samples" } }, "reduction": { @@ -285610,7 +375340,7 @@ }, { "guarantee": null, - "id": 4, + "id": 27, "output_schema": { "closed": true, "fields": [ @@ -285622,11 +375352,19 @@ "nullable": true, "table": null }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "float64" }, - "name": "sum", + "name": "value", "nullable": false, "table": null } @@ -285634,7 +375372,8 @@ "time_index": null, "unique_keys": [ [ - 0 + 0, + 1 ] ] }, @@ -285644,16 +375383,38 @@ }, "payload": { "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 26 } } } - }, + } + ], + "roots": [ + 4, + 27 + ] + }, + "from_logical": "L75", + "id": "P75-m1", + "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 5, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -285697,26 +375458,18 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - } - }, - { - "guarantee": null, - "id": 6, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -285760,27 +375513,18 @@ ] ] }, - "output_state": { + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 7, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -285793,12 +375537,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -285827,58 +375568,20 @@ ] ] }, - "output_state": { + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 6, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 8, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -285889,41 +375592,35 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "output_state": { + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 10000 - } - } - } - } - }, - { - "guarantee": null, - "id": 9, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -285967,27 +375664,18 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 8, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 10, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -286000,12 +375688,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -286034,40 +375719,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 9, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 5, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 11, - "output_schema": { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -286111,26 +375774,18 @@ ] ] }, - "output_state": { + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 20000 - } - } - } - } - }, - { - "guarantee": null, - "id": 12, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -286174,27 +375829,18 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 11, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 13, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -286207,12 +375853,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -286241,40 +375884,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 12, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 8, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 14, - "output_schema": { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -286318,26 +375939,18 @@ ] ] }, - "output_state": { + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 11, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 30000 - } - } - } - } - }, - { - "guarantee": null, - "id": 15, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -286381,27 +375994,18 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 12, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 14, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 16, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -286414,12 +376018,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -286448,40 +376049,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 15, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 11, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 17, - "output_schema": { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -286525,26 +376104,18 @@ ] ] }, - "output_state": { + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 40000 - } - } - } - } - }, - { - "guarantee": null, - "id": 18, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -286588,27 +376159,18 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 17, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 19, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -286621,12 +376183,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -286655,40 +376214,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 18, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 14, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 20, - "output_schema": { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -286732,26 +376269,18 @@ ] ] }, - "output_state": { + "producer": 15, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 17, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 50000 - } - } - } - } - }, - { - "guarantee": null, - "id": 21, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -286795,27 +376324,18 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 18, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 20, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 22, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -286828,12 +376348,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -286862,40 +376379,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 21, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 17, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 23, - "output_schema": { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -286908,12 +376403,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -286942,29 +376434,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 7, - 10, - 13, - 16, - 19, - 22 - ] - } - } - } + "producer": 18, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 24, - "output_schema": { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -287008,116 +376489,36 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 21, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 23 - } - } - } - }, - { - "guarantee": null, - "id": 25, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 24, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 26, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -287133,56 +376534,22 @@ "name": "$promql_series_identity", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 25 - } - } - } - } - ], - "roots": [ - 4, - 26 - ] - }, - "from_logical": "L72", - "id": "P72", - "label": "Q1 exact (Sum acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · shared input" - }, - { - "dag": { - "edges": [ + "producer": 20, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 22, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -287232,14 +376599,14 @@ ] ] }, - "producer": 0, + "producer": 21, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 23, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -287256,9 +376623,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -287287,14 +376657,14 @@ ] ] }, - "producer": 1, + "producer": 7, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 23, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -287311,9 +376681,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -287342,12 +376715,12 @@ ] ] }, - "producer": 2, + "producer": 10, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 23, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -287358,10 +376731,10 @@ "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { @@ -287374,24 +376747,41 @@ "name": "state", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 3, + "producer": 13, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 23, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -287407,9 +376797,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -287438,15 +376831,15 @@ ] ] }, - "producer": 5, + "producer": 16, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 23, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -287462,9 +376855,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -287493,15 +376889,15 @@ ] ] }, - "producer": 6, + "producer": 19, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 23, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -287517,9 +376913,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -287548,15 +376947,15 @@ ] ] }, - "producer": 7, + "producer": 22, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -287572,9 +376971,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -287603,15 +377005,15 @@ ] ] }, - "producer": 5, + "producer": 23, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 10, + "consumer": 25, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -287658,36 +377060,20 @@ ] ] }, - "producer": 9, + "producer": 24, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 11, + "consumer": 26, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -287698,33 +377084,44 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 10, + "producer": 25, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, + "window": "NotApplicable" + } + ], + "nodes": [ { - "consumer": 12, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -287768,18 +377165,72 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 13, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -287823,18 +377274,27 @@ ] ] }, - "producer": 12, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 14, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -287878,36 +377338,111 @@ ] ] }, - "producer": 13, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } }, { - "consumer": 15, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -287918,33 +377453,33 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 5, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 16, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ { @@ -287988,18 +377523,26 @@ ] ] }, - "producer": 15, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 17, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -288043,18 +377586,45 @@ ] ] }, - "producer": 16, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 18, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 7, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -288067,9 +377637,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -288098,18 +377671,37 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } }, { - "consumer": 19, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -288153,18 +377745,26 @@ ] ] }, - "producer": 18, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 20, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -288208,18 +377808,45 @@ ] ] }, - "producer": 19, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 21, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 10, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -288232,9 +377859,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -288263,18 +377893,37 @@ ] ] }, - "producer": 5, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } }, { - "consumer": 22, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 11, + "output_schema": { "closed": true, "fields": [ { @@ -288318,18 +377967,26 @@ ] ] }, - "producer": 21, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 23, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 12, + "output_schema": { "closed": true, "fields": [ { @@ -288373,18 +378030,45 @@ ] ] }, - "producer": 22, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 13, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -288431,18 +378115,37 @@ ] ] }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { + "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 14, + "output_schema": { "closed": true, "fields": [ { @@ -288455,12 +378158,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -288489,18 +378189,26 @@ ] ] }, - "producer": 11, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -288513,12 +378221,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -288547,18 +378252,45 @@ ] ] }, - "producer": 14, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 16, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -288605,18 +378337,37 @@ ] ] }, - "producer": 17, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 24, - "data_state": { + "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 17, + "output_schema": { "closed": true, "fields": [ { @@ -288629,12 +378380,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -288663,18 +378411,26 @@ ] ] }, - "producer": 20, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 18, + "output_schema": { "closed": true, "fields": [ { @@ -288687,12 +378443,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -288721,18 +378474,45 @@ ] ] }, - "producer": 23, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 25, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 19, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -288779,18 +378559,37 @@ ] ] }, - "producer": 24, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 26, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 20, + "output_schema": { "closed": true, "fields": [ { @@ -288834,20 +378633,44 @@ ] ] }, - "producer": 25, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 27, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 21, + "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -288858,42 +378681,59 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 26, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 0, + "id": 22, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -288907,9 +378747,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -288939,69 +378782,52 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 1, + "id": 23, "output_schema": { "closed": true, "fields": [ @@ -289015,9 +378841,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -289047,25 +378876,17 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } + "kind": "summary_merge" } }, { + "coverage": null, "guarantee": null, - "id": 2, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -289115,27 +378936,25 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } + "kind": "finalize_exact_accumulator" } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 3, + "id": 25, "output_schema": { "closed": true, "fields": [ @@ -289149,9 +378968,19 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" ] }, "name": "state", @@ -289164,45 +378993,57 @@ [ 0 ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 2, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } } }, - "reduction": { - "Reduce": [ - 2 - ] + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] } } }, { + "coverage": null, "guarantee": null, - "id": 4, + "id": 26, "output_schema": { "closed": true, "fields": [ @@ -289214,11 +379055,19 @@ "nullable": true, "table": null }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "float64" }, - "name": "sum", + "name": "value", "nullable": false, "table": null } @@ -289226,7 +379075,8 @@ "time_index": null, "unique_keys": [ [ - 0 + 0, + 1 ] ] }, @@ -289235,17 +379085,35 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 } } } - }, + } + ], + "roots": [ + 4, + 26 + ] + }, + "from_logical": "L75", + "id": "P75-m2", + "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · shared input · query time, kept: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 5, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -289289,71 +379157,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 6, - "output_schema": { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -289397,26 +379212,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 7, - "output_schema": { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -289460,35 +379267,26 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 6, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 2, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 8, - "output_schema": { + "consumer": 4, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { @@ -289501,66 +379299,27 @@ "name": "state", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 7, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 3, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 9, - "output_schema": { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -289604,44 +379363,20 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 10000 - } - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 10, - "output_schema": { + "consumer": 6, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -289652,41 +379387,42 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 9, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { "guarantee": null, - "id": 11, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -289700,12 +379436,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -289735,38 +379468,69 @@ ] }, "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 10, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - }, - "reduction": "PerEntity" + } } } } }, { "guarantee": null, - "id": 12, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -289813,15 +379577,16 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 20000 + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } @@ -289829,7 +379594,7 @@ }, { "guarantee": null, - "id": 13, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -289876,33 +379641,39 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { - "TimeRange": { - "child": 12, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 14, + "id": 3, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { @@ -289915,40 +379686,23 @@ "name": "state", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 13, + "child": 2, "family": { "ExactAggregate": [ "Sum", @@ -289966,33 +379720,21 @@ "kind": "unknown_or_signed" } }, - "reduction": "PerEntity" + "reduction": { + "Reduce": [ + 2 + ] + } } } } }, { "guarantee": null, - "id": 15, + "id": 4, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -290003,59 +379745,38 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 30000 - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 } } } }, { "guarantee": null, - "id": 16, + "id": 5, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -290066,33 +379787,77 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 15, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] } } } @@ -290100,88 +379865,81 @@ }, { "guarantee": null, - "id": 17, + "id": 6, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { "Plain": "utf8" }, - "name": "job", - "nullable": true, + "name": "$promql_series_identity", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "payload": { "ASAP": { - "SummaryAgg": { - "child": 16, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 } }, - "reduction": "PerEntity" + "summary_input": 5 } } } - }, + } + ], + "roots": [ + 4, + 6 + ] + }, + "from_logical": "L76", + "id": "P76", + "label": "Q1 exact (Sum acc) · Q2 whole-expression CMS+heap · shared input" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 18, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -290225,26 +379983,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 40000 - } - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 19, - "output_schema": { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -290288,27 +380038,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 18, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 20, - "output_schema": { + "consumer": 3, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -290321,12 +380062,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -290355,40 +380093,59 @@ ] ] }, - "output_state": { + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 19, - "family": { + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { "ExactAggregate": [ "Sum", "Sum" ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "name": "state", + "nullable": false, + "table": null } - } - } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 21, - "output_schema": { + "consumer": 5, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -290432,25 +380189,66 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 6, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 50000 - } + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "name": "state", + "nullable": false, + "table": null } - } - } - }, + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { "guarantee": null, - "id": 22, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -290497,16 +380295,60 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { - "TimeRange": { - "child": 21, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } @@ -290514,7 +380356,7 @@ }, { "guarantee": null, - "id": 23, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -290528,12 +380370,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -290563,38 +380402,25 @@ ] }, "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 22, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } } } } }, { "guarantee": null, - "id": 24, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -290608,12 +380434,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -290643,46 +380466,101 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 8, - 11, - 14, - 17, - 20, - 23 - ] + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 25, + "id": 3, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null - }, + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 2, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -290693,17 +380571,16 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -290715,14 +380592,14 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 24 + "child": 3 } } } }, { "guarantee": null, - "id": 26, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -290738,13 +380615,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CmsWithHeap", + "algorithm": "CountSketchWithHeap", "category": "TopK", "params": { - "CmsWithHeap": { - "depth": 7, + "CountSketchWithHeap": { + "depth": 125, "heap_size": 100, - "width": 272 + "width": 30000 } } }, @@ -290770,17 +380647,17 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 25, + "child": 1, "family": { "Sketch": [ { - "algorithm": "CmsWithHeap", + "algorithm": "CountSketchWithHeap", "category": "TopK", "params": { - "CmsWithHeap": { - "depth": 7, + "CountSketchWithHeap": { + "depth": 125, "heap_size": 100, - "width": 272 + "width": 30000 } } }, @@ -290814,7 +380691,7 @@ }, { "guarantee": null, - "id": 27, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -290863,7 +380740,7 @@ "k": 10 } }, - "summary_input": 26 + "summary_input": 5 } } } @@ -290871,12 +380748,12 @@ ], "roots": [ 4, - 27 + 6 ] }, - "from_logical": "L72", - "id": "P72-m1", - "label": "Q1 exact (Sum acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" + "from_logical": "L77", + "id": "P77", + "label": "Q1 exact (Sum acc) · Q2 whole-expression CountSketch+heap · shared input" }, { "dag": { @@ -290993,6 +380870,64 @@ }, { "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -291042,12 +380977,12 @@ ] ] }, - "producer": 2, + "producer": 3, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 5, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -291083,12 +381018,12 @@ ] ] }, - "producer": 3, + "producer": 4, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 6, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -291143,7 +381078,7 @@ "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 7, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -291193,20 +381128,36 @@ ] ] }, - "producer": 5, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 8, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -291217,34 +381168,22 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 6, + "producer": 7, "role": "Input", "window": "NotApplicable" } @@ -291406,25 +381345,105 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 2, + "id": 3, "output_schema": { "closed": true, "fields": [ @@ -291474,27 +381493,16 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 } } } }, { "guarantee": null, - "id": 3, + "id": 4, "output_schema": { "closed": true, "fields": [ @@ -291532,7 +381540,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 2, + "child": 3, "family": { "ExactAggregate": [ "Sum", @@ -291561,7 +381569,7 @@ }, { "guarantee": null, - "id": 4, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -291596,14 +381604,14 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 3 + "child": 4 } } } }, { "guarantee": null, - "id": 5, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -291674,10 +381682,26 @@ }, { "guarantee": null, - "id": 6, + "id": 7, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -291688,118 +381712,89 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 5, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } + "NonASAP": { + "Sort": { + "child": 6, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" + "nulls_first": false } - }, - "reduction": { - "Reduce": [ - 2 - ] - } + ], + "partition_by": [ + 2 + ] } } } }, { "guarantee": null, - "id": 7, + "id": 8, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, @@ -291808,27 +381803,27 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 6 + "NonASAP": { + "Limit": { + "child": 7, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] } } } } ], "roots": [ - 4, - 7 + 5, + 8 ] }, - "from_logical": "L73", - "id": "P73", - "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap · shared input" + "from_logical": "L78", + "id": "P78", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact · shared input" }, { "dag": { @@ -291945,6 +381940,64 @@ }, { "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -291994,12 +382047,12 @@ ] ] }, - "producer": 2, + "producer": 3, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 5, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -292035,12 +382088,12 @@ ] ] }, - "producer": 3, + "producer": 4, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 6, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -292095,7 +382148,7 @@ "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 7, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -292148,12 +382201,12 @@ ] ] }, - "producer": 5, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 8, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -292203,20 +382256,36 @@ ] ] }, - "producer": 6, + "producer": 7, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 9, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -292227,34 +382296,22 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 7, + "producer": 8, "role": "Input", "window": "NotApplicable" } @@ -292448,9 +382505,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -292480,23 +382540,30 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { + "ASAP": { + "SummaryAgg": { "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - ], - "output_names": [ - "" - ], + }, "reduction": "PerEntity" } } @@ -292505,6 +382572,65 @@ { "guarantee": null, "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, "output_schema": { "closed": true, "fields": [ @@ -292542,7 +382668,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 2, + "child": 3, "family": { "ExactAggregate": [ "Sum", @@ -292571,7 +382697,7 @@ }, { "guarantee": null, - "id": 4, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -292606,14 +382732,14 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 3 + "child": 4 } } } }, { "guarantee": null, - "id": 5, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -292693,7 +382819,7 @@ }, { "guarantee": null, - "id": 6, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -292745,99 +382871,7 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 5 - } - } - } - }, - { - "guarantee": null, - "id": 7, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 6, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } + "child": 6 } } } @@ -292846,79 +382880,6 @@ "guarantee": null, "id": 8, "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0, - 1 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 7 - } - } - } - } - ], - "roots": [ - 4, - 8 - ] - }, - "from_logical": "L74", - "id": "P74", - "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap (Sum acc) · shared input" - }, - { - "dag": { - "edges": [ - { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { "closed": true, "fields": [ { @@ -292962,73 +382923,34 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null + "payload": { + "NonASAP": { + "Sort": { + "child": 7, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" + } + } }, { - "consumer": 3, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -293072,53 +382994,38 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 4, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null + "payload": { + "NonASAP": { + "Limit": { + "child": 8, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 3, - "role": "Input", - "window": "NotApplicable" - }, + } + } + } + ], + "roots": [ + 5, + 9 + ] + }, + "from_logical": "L79", + "id": "P79", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact (Sum acc) · shared input" + }, + { + "dag": { + "edges": [ { - "consumer": 5, + "consumer": 1, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -293172,6 +383079,215 @@ "role": "Input", "window": "NotApplicable" }, + { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" + }, { "consumer": 6, "data_state": { @@ -293223,7 +383339,7 @@ ] ] }, - "producer": 5, + "producer": 0, "role": "Input", "window": "NotApplicable" }, @@ -293333,7 +383449,7 @@ ] ] }, - "producer": 0, + "producer": 7, "role": "Input", "window": "NotApplicable" }, @@ -293388,7 +383504,7 @@ ] ] }, - "producer": 8, + "producer": 0, "role": "Input", "window": "NotApplicable" }, @@ -293498,7 +383614,7 @@ ] ] }, - "producer": 0, + "producer": 10, "role": "Input", "window": "NotApplicable" }, @@ -293553,7 +383669,7 @@ ] ] }, - "producer": 11, + "producer": 0, "role": "Input", "window": "NotApplicable" }, @@ -293663,7 +383779,7 @@ ] ] }, - "producer": 0, + "producer": 13, "role": "Input", "window": "NotApplicable" }, @@ -293718,7 +383834,7 @@ ] ] }, - "producer": 14, + "producer": 0, "role": "Input", "window": "NotApplicable" }, @@ -293828,7 +383944,7 @@ ] ] }, - "producer": 0, + "producer": 16, "role": "Input", "window": "NotApplicable" }, @@ -293883,7 +383999,7 @@ ] ] }, - "producer": 17, + "producer": 0, "role": "Input", "window": "NotApplicable" }, @@ -293993,7 +384109,7 @@ ] ] }, - "producer": 0, + "producer": 19, "role": "Input", "window": "NotApplicable" }, @@ -294048,7 +384164,7 @@ ] ] }, - "producer": 20, + "producer": 0, "role": "Input", "window": "NotApplicable" }, @@ -294110,7 +384226,7 @@ { "consumer": 23, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -294127,12 +384243,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -294161,12 +384274,12 @@ ] ] }, - "producer": 7, + "producer": 22, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 24, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -294219,12 +384332,12 @@ ] ] }, - "producer": 10, + "producer": 8, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 24, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -294277,12 +384390,12 @@ ] ] }, - "producer": 13, + "producer": 11, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 24, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -294335,12 +384448,12 @@ ] ] }, - "producer": 16, + "producer": 14, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 24, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -294393,12 +384506,12 @@ ] ] }, - "producer": 19, + "producer": 17, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 24, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -294451,7 +384564,7 @@ ] ] }, - "producer": 22, + "producer": 20, "role": "Input", "window": "NotApplicable" }, @@ -294516,7 +384629,7 @@ { "consumer": 25, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -294533,9 +384646,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -294571,13 +384687,29 @@ { "consumer": 26, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -294588,29 +384720,17 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -294618,6 +384738,61 @@ "producer": 25, "role": "Input", "window": "NotApplicable" + }, + { + "consumer": 27, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 26, + "role": "Input", + "window": "NotApplicable" } ], "nodes": [ @@ -294809,9 +384984,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -294841,23 +385019,30 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Aggregate": { + "ASAP": { + "SummaryAgg": { "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - ], - "output_names": [ - "" - ], + }, "reduction": "PerEntity" } } @@ -294866,6 +385051,65 @@ { "guarantee": null, "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, "output_schema": { "closed": true, "fields": [ @@ -294903,7 +385147,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 2, + "child": 3, "family": { "ExactAggregate": [ "Sum", @@ -294932,7 +385176,7 @@ }, { "guarantee": null, - "id": 4, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -294967,14 +385211,14 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 3 + "child": 4 } } } }, { "guarantee": null, - "id": 5, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -295037,7 +385281,7 @@ }, { "guarantee": null, - "id": 6, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -295089,7 +385333,7 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 5, + "child": 6, "kind": "range", "range": { "nanos": 0, @@ -295101,7 +385345,7 @@ }, { "guarantee": null, - "id": 7, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -295156,7 +385400,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 6, + "child": 7, "family": { "ExactAggregate": [ "Sum", @@ -295181,7 +385425,7 @@ }, { "guarantee": null, - "id": 8, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -295244,7 +385488,7 @@ }, { "guarantee": null, - "id": 9, + "id": 10, "output_schema": { "closed": true, "fields": [ @@ -295296,7 +385540,7 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 8, + "child": 9, "kind": "range", "range": { "nanos": 0, @@ -295308,7 +385552,7 @@ }, { "guarantee": null, - "id": 10, + "id": 11, "output_schema": { "closed": true, "fields": [ @@ -295363,7 +385607,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 9, + "child": 10, "family": { "ExactAggregate": [ "Sum", @@ -295388,7 +385632,7 @@ }, { "guarantee": null, - "id": 11, + "id": 12, "output_schema": { "closed": true, "fields": [ @@ -295451,7 +385695,7 @@ }, { "guarantee": null, - "id": 12, + "id": 13, "output_schema": { "closed": true, "fields": [ @@ -295503,7 +385747,7 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 11, + "child": 12, "kind": "range", "range": { "nanos": 0, @@ -295515,7 +385759,7 @@ }, { "guarantee": null, - "id": 13, + "id": 14, "output_schema": { "closed": true, "fields": [ @@ -295570,7 +385814,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 12, + "child": 13, "family": { "ExactAggregate": [ "Sum", @@ -295595,7 +385839,7 @@ }, { "guarantee": null, - "id": 14, + "id": 15, "output_schema": { "closed": true, "fields": [ @@ -295658,7 +385902,7 @@ }, { "guarantee": null, - "id": 15, + "id": 16, "output_schema": { "closed": true, "fields": [ @@ -295710,7 +385954,7 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 14, + "child": 15, "kind": "range", "range": { "nanos": 0, @@ -295722,7 +385966,7 @@ }, { "guarantee": null, - "id": 16, + "id": 17, "output_schema": { "closed": true, "fields": [ @@ -295777,7 +386021,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 15, + "child": 16, "family": { "ExactAggregate": [ "Sum", @@ -295802,7 +386046,7 @@ }, { "guarantee": null, - "id": 17, + "id": 18, "output_schema": { "closed": true, "fields": [ @@ -295865,7 +386109,7 @@ }, { "guarantee": null, - "id": 18, + "id": 19, "output_schema": { "closed": true, "fields": [ @@ -295917,7 +386161,7 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 17, + "child": 18, "kind": "range", "range": { "nanos": 0, @@ -295929,7 +386173,7 @@ }, { "guarantee": null, - "id": 19, + "id": 20, "output_schema": { "closed": true, "fields": [ @@ -295984,7 +386228,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 18, + "child": 19, "family": { "ExactAggregate": [ "Sum", @@ -296009,7 +386253,7 @@ }, { "guarantee": null, - "id": 20, + "id": 21, "output_schema": { "closed": true, "fields": [ @@ -296072,7 +386316,7 @@ }, { "guarantee": null, - "id": 21, + "id": 22, "output_schema": { "closed": true, "fields": [ @@ -296124,7 +386368,7 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 20, + "child": 21, "kind": "range", "range": { "nanos": 0, @@ -296136,7 +386380,7 @@ }, { "guarantee": null, - "id": 22, + "id": 23, "output_schema": { "closed": true, "fields": [ @@ -296191,7 +386435,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 21, + "child": 22, "family": { "ExactAggregate": [ "Sum", @@ -296216,7 +386460,7 @@ }, { "guarantee": null, - "id": 23, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -296272,12 +386516,12 @@ "ASAP": { "SummaryMerge": { "children": [ - 7, - 10, - 13, - 16, - 19, - 22 + 8, + 11, + 14, + 17, + 20, + 23 ] } } @@ -296285,7 +386529,7 @@ }, { "guarantee": null, - "id": 24, + "id": 25, "output_schema": { "closed": true, "fields": [ @@ -296337,17 +386581,33 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 23 + "child": 24 } } } }, { "guarantee": null, - "id": 25, + "id": 26, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -296358,118 +386618,89 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 24, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } + "NonASAP": { + "Sort": { + "child": 25, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" + "nulls_first": false } - }, - "reduction": { - "Reduce": [ - 2 - ] - } + ], + "partition_by": [ + 2 + ] } } } }, { "guarantee": null, - "id": 26, + "id": 27, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, @@ -296478,27 +386709,27 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 25 + "NonASAP": { + "Limit": { + "child": 26, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] } } } } ], "roots": [ - 4, - 26 + 5, + 27 ] }, - "from_logical": "L75", - "id": "P75", - "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · shared input" + "from_logical": "L80", + "id": "P80", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact (Sum acc · tumbling 10s panes) · shared input" }, { "dag": { @@ -296616,7 +386847,7 @@ { "consumer": 3, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -296633,9 +386864,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -296671,13 +386905,29 @@ { "consumer": 4, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -296688,19 +386938,17 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -296710,31 +386958,15 @@ "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 5, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -296745,24 +386977,26 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 5, + "producer": 4, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 7, @@ -296925,7 +387159,7 @@ ] ] }, - "producer": 5, + "producer": 8, "role": "Input", "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, @@ -296980,7 +387214,7 @@ ] ] }, - "producer": 9, + "producer": 6, "role": "Input", "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, @@ -297090,7 +387324,7 @@ ] ] }, - "producer": 5, + "producer": 11, "role": "Input", "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, @@ -297145,7 +387379,7 @@ ] ] }, - "producer": 12, + "producer": 6, "role": "Input", "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, @@ -297255,7 +387489,7 @@ ] ] }, - "producer": 5, + "producer": 14, "role": "Input", "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, @@ -297310,7 +387544,7 @@ ] ] }, - "producer": 15, + "producer": 6, "role": "Input", "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, @@ -297420,7 +387654,7 @@ ] ] }, - "producer": 5, + "producer": 17, "role": "Input", "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, @@ -297475,7 +387709,7 @@ ] ] }, - "producer": 18, + "producer": 6, "role": "Input", "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, @@ -297585,7 +387819,7 @@ ] ] }, - "producer": 5, + "producer": 20, "role": "Input", "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, @@ -297640,7 +387874,7 @@ ] ] }, - "producer": 21, + "producer": 6, "role": "Input", "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, @@ -297702,7 +387936,7 @@ { "consumer": 24, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "ingestion_time" }, "grouping": "NotApplicable", @@ -297719,12 +387953,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -297753,12 +387984,12 @@ ] ] }, - "producer": 8, + "producer": 23, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 24, + "consumer": 25, "data_state": { "primitive": "SummaryState", "timing": "ingestion_time" @@ -297811,12 +388042,12 @@ ] ] }, - "producer": 11, + "producer": 9, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 25, "data_state": { "primitive": "SummaryState", "timing": "ingestion_time" @@ -297869,12 +388100,12 @@ ] ] }, - "producer": 14, + "producer": 12, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 25, "data_state": { "primitive": "SummaryState", "timing": "ingestion_time" @@ -297927,12 +388158,12 @@ ] ] }, - "producer": 17, + "producer": 15, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 25, "data_state": { "primitive": "SummaryState", "timing": "ingestion_time" @@ -297985,12 +388216,12 @@ ] ] }, - "producer": 20, + "producer": 18, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 25, "data_state": { "primitive": "SummaryState", "timing": "ingestion_time" @@ -298043,7 +388274,7 @@ ] ] }, - "producer": 23, + "producer": 21, "role": "Input", "window": "NotApplicable" }, @@ -298051,7 +388282,7 @@ "consumer": 25, "data_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -298108,7 +388339,7 @@ { "consumer": 26, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -298125,9 +388356,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -298163,60 +388397,11 @@ { "consumer": 27, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 26, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ - { - "guarantee": null, - "id": 0, - "output_schema": { "closed": true, "fields": [ { @@ -298260,135 +388445,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 26, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 1, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { + "consumer": 28, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, - { - "guarantee": null, - "id": 2, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -298432,141 +388500,15 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 3, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 2, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 4, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "sum", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 - } - } - } - }, + "producer": 27, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { "guarantee": null, - "id": 5, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -298613,7 +388555,7 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { @@ -298674,70 +388616,7 @@ }, { "guarantee": null, - "id": 6, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - } - }, - { - "guarantee": null, - "id": 7, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -298784,16 +388663,16 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 6, + "child": 0, "kind": "range", "range": { "nanos": 0, - "secs": 10 + "secs": 60 } } } @@ -298801,7 +388680,7 @@ }, { "guarantee": null, - "id": 8, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -298816,8 +388695,8 @@ { "dtype": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "name": "state", @@ -298850,165 +388729,38 @@ ] }, "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 7, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 9, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 10000 - } - } - } - } - }, - { - "guarantee": null, - "id": 10, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 9, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 11, + "id": 3, "output_schema": { "closed": true, "fields": [ @@ -299022,12 +388774,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -299057,57 +388806,23 @@ ] }, "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "payload": { "ASAP": { - "SummaryAgg": { - "child": 10, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "FinalizeExactAccumulator": { + "child": 2 } } } }, { "guarantee": null, - "id": 12, + "id": 4, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -299118,32 +388833,52 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 5, - "shift": { - "at": null, - "offset_ms": 20000 + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] } } } @@ -299151,26 +388886,10 @@ }, { "guarantee": null, - "id": 13, + "id": 5, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -299181,41 +388900,35 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 12, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 } } } }, { "guarantee": null, - "id": 14, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -299229,12 +388942,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -299264,38 +388974,69 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "ingestion_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 13, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - }, - "reduction": "PerEntity" + } } } } }, { "guarantee": null, - "id": 15, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -299347,10 +389088,10 @@ "payload": { "NonASAP": { "TimeShift": { - "child": 5, + "child": 6, "shift": { "at": null, - "offset_ms": 30000 + "offset_ms": 0 } } } @@ -299358,7 +389099,7 @@ }, { "guarantee": null, - "id": 16, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -299410,7 +389151,7 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 15, + "child": 7, "kind": "range", "range": { "nanos": 0, @@ -299422,7 +389163,7 @@ }, { "guarantee": null, - "id": 17, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -299477,7 +389218,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 16, + "child": 8, "family": { "ExactAggregate": [ "Sum", @@ -299502,7 +389243,7 @@ }, { "guarantee": null, - "id": 18, + "id": 10, "output_schema": { "closed": true, "fields": [ @@ -299554,10 +389295,10 @@ "payload": { "NonASAP": { "TimeShift": { - "child": 5, + "child": 6, "shift": { "at": null, - "offset_ms": 40000 + "offset_ms": 10000 } } } @@ -299565,7 +389306,7 @@ }, { "guarantee": null, - "id": 19, + "id": 11, "output_schema": { "closed": true, "fields": [ @@ -299617,7 +389358,7 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 18, + "child": 10, "kind": "range", "range": { "nanos": 0, @@ -299629,7 +389370,7 @@ }, { "guarantee": null, - "id": 20, + "id": 12, "output_schema": { "closed": true, "fields": [ @@ -299684,7 +389425,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 19, + "child": 11, "family": { "ExactAggregate": [ "Sum", @@ -299709,7 +389450,7 @@ }, { "guarantee": null, - "id": 21, + "id": 13, "output_schema": { "closed": true, "fields": [ @@ -299761,10 +389502,10 @@ "payload": { "NonASAP": { "TimeShift": { - "child": 5, + "child": 6, "shift": { "at": null, - "offset_ms": 50000 + "offset_ms": 20000 } } } @@ -299772,7 +389513,7 @@ }, { "guarantee": null, - "id": 22, + "id": 14, "output_schema": { "closed": true, "fields": [ @@ -299824,7 +389565,7 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 21, + "child": 13, "kind": "range", "range": { "nanos": 0, @@ -299836,7 +389577,7 @@ }, { "guarantee": null, - "id": 23, + "id": 15, "output_schema": { "closed": true, "fields": [ @@ -299891,7 +389632,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 22, + "child": 14, "family": { "ExactAggregate": [ "Sum", @@ -299916,7 +389657,7 @@ }, { "guarantee": null, - "id": 24, + "id": 16, "output_schema": { "closed": true, "fields": [ @@ -299930,12 +389671,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -299965,27 +389703,24 @@ ] }, "output_state": { - "primitive": "SummaryState", - "timing": "query_time" + "primitive": "Raw", + "timing": "ingestion_time" }, "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 8, - 11, - 14, - 17, - 20, - 23 - ] + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 30000 + } } } } }, { "guarantee": null, - "id": 25, + "id": 17, "output_schema": { "closed": true, "fields": [ @@ -300032,114 +389767,46 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 24 + "NonASAP": { + "TimeRange": { + "child": 16, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { "guarantee": null, - "id": 26, + "id": 18, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" + "ExactAggregate": [ + "Sum", + "Sum" ] }, "name": "state", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 25, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 27, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -300155,117 +389822,50 @@ "name": "$promql_series_identity", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, "output_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "payload": { "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 + "SummaryAgg": { + "child": 17, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } }, - "summary_input": 26 + "reduction": "PerEntity" } } - } - } - ], - "roots": [ - 4, - 27 - ] - }, - "from_logical": "L75", - "id": "P75-m1", - "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" - }, - { - "dag": { - "edges": [ - { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" + } }, { - "consumer": 2, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 19, + "output_schema": { "closed": true, "fields": [ { @@ -300309,18 +389909,26 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 3, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + } + }, + { + "guarantee": null, + "id": 20, + "output_schema": { "closed": true, "fields": [ { @@ -300364,59 +389972,27 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 4, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null + "payload": { + "NonASAP": { + "TimeRange": { + "child": 19, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 3, - "role": "Input", - "window": "NotApplicable" + } + } }, { - "consumer": 5, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 21, + "output_schema": { "closed": true, "fields": [ { @@ -300429,9 +390005,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -300460,66 +390039,39 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 6, - "data_state": { + "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 20, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" ] }, - "name": "state", - "nullable": false, - "table": null + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 5, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + } + } + }, { "guarantee": null, - "id": 0, + "id": 22, "output_schema": { "closed": true, "fields": [ @@ -300566,60 +390118,15 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 50000 } } } @@ -300627,7 +390134,7 @@ }, { "guarantee": null, - "id": 1, + "id": 23, "output_schema": { "closed": true, "fields": [ @@ -300674,16 +390181,16 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 0, + "child": 22, "kind": "range", "range": { "nanos": 0, - "secs": 60 + "secs": 10 } } } @@ -300691,7 +390198,7 @@ }, { "guarantee": null, - "id": 2, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -300705,9 +390212,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -300737,23 +390247,30 @@ ] }, "output_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" + "ASAP": { + "SummaryAgg": { + "child": 23, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - ], - "output_names": [ - "" - ], + }, "reduction": "PerEntity" } } @@ -300761,16 +390278,16 @@ }, { "guarantee": null, - "id": 3, + "id": 25, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { @@ -300783,11 +390300,28 @@ "name": "state", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -300798,40 +390332,41 @@ }, "payload": { "ASAP": { - "SummaryAgg": { - "child": 2, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } + "SummaryMerge": { + "children": [ + 9, + 12, + 15, + 18, + 21, + 24 + ] } } } }, { "guarantee": null, - "id": 4, + "id": 26, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -300842,16 +390377,17 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -300863,17 +390399,33 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 3 + "child": 25 } } } }, { "guarantee": null, - "id": 5, + "id": 27, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -300884,118 +390436,89 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } + "NonASAP": { + "Sort": { + "child": 26, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" + "nulls_first": false } - }, - "reduction": { - "Reduce": [ - 2 - ] - } + ], + "partition_by": [ + 2 + ] } } } }, { "guarantee": null, - "id": 6, + "id": 28, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, @@ -301004,27 +390527,27 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 5 + "NonASAP": { + "Limit": { + "child": 27, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] } } } } ], "roots": [ - 4, - 6 + 5, + 28 ] }, - "from_logical": "L76", - "id": "P76", - "label": "Q1 exact (Sum acc) · Q2 whole-expression CMS+heap · shared input" + "from_logical": "L80", + "id": "P80-m1", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" }, { "dag": { @@ -301141,6 +390664,64 @@ }, { "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -301190,12 +390771,12 @@ ] ] }, - "producer": 2, + "producer": 3, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 5, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -301231,12 +390812,12 @@ ] ] }, - "producer": 3, + "producer": 4, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 6, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -301286,20 +390867,36 @@ ] ] }, - "producer": 1, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 7, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -301310,43 +390907,33 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 5, + "producer": 6, "role": "Input", "window": "NotApplicable" - } - ], - "nodes": [ + }, { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -301390,71 +390977,18 @@ ] ] }, - "output_state": { + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } - }, - { - "guarantee": null, - "id": 1, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -301498,27 +391032,18 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 10, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } - }, - { - "guarantee": null, - "id": 2, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -301562,35 +391087,36 @@ ] ] }, - "output_state": { + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 11, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 3, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -301601,63 +391127,51 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 2, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } + "producer": 10, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 4, - "output_schema": { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -301668,38 +391182,51 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 13, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 - } - } - } - }, - { - "guarantee": null, - "id": 5, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -301710,153 +391237,137 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { - "primitive": "SummaryState", + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { + "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" }, - "reduction": { - "Reduce": [ - 2 - ] - } + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 13, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 6, - "output_schema": { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 5 - } - } - } - } - ], - "roots": [ - 4, - 6 - ] - }, - "from_logical": "L77", - "id": "P77", - "label": "Q1 exact (Sum acc) · Q2 whole-expression CountSketch+heap · shared input" - }, - { - "dag": { - "edges": [ + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 16, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -301906,12 +391417,12 @@ ] ] }, - "producer": 0, + "producer": 15, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 17, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -301961,14 +391472,14 @@ ] ] }, - "producer": 1, + "producer": 16, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 18, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -301985,12 +391496,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -302019,12 +391527,12 @@ ] ] }, - "producer": 2, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 19, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -302074,20 +391582,36 @@ ] ] }, - "producer": 3, + "producer": 18, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 20, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -302098,29 +391622,27 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 4, + "producer": 19, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 21, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -302170,12 +391692,12 @@ ] ] }, - "producer": 1, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 22, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -302225,12 +391747,12 @@ ] ] }, - "producer": 6, + "producer": 21, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 23, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -302280,16 +391802,18 @@ ] ] }, - "producer": 7, + "producer": 22, "role": "Input", "window": "NotApplicable" - } - ], - "nodes": [ + }, { - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -302302,9 +391826,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -302333,71 +391860,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 8, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 1, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -302410,9 +391884,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -302441,27 +391918,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - } + "producer": 11, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 2, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -302475,8 +391943,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -302508,40 +391976,76 @@ ] ] }, - "output_state": { + "producer": 14, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" }, - "reduction": "PerEntity" + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 17, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 3, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -302554,9 +392058,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -302585,30 +392092,26 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - } + "producer": 20, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 4, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { @@ -302621,55 +392124,120 @@ "name": "state", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { + "producer": 23, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 25, + "data_state": { "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 3, - "family": { + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { "ExactAggregate": [ "Sum", "Sum" ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" }, - "reduction": { - "Reduce": [ - 2 - ] - } + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 5, - "output_schema": { + "consumer": 26, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -302680,36 +392248,33 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { + "producer": 25, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 27, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 4 - } - } - } - }, - { - "guarantee": null, - "id": 6, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -302753,33 +392318,16 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - } - }, + "producer": 26, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { + "coverage": null, "guarantee": null, - "id": 7, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -302829,28 +392377,66 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Sort": { - "child": 6, - "keys": [ + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ { - "ascending": false, - "expr": { - "Column": 1 + "dtype": { + "Plain": "timestamp" }, - "nulls_first": false + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "partition_by": [ - 2 + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } }, { + "coverage": null, "guarantee": null, - "id": 8, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -302900,39 +392486,34 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Limit": { - "child": 7, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" } } - } - ], - "roots": [ - 5, - 8 - ] - }, - "from_logical": "L78", - "id": "P78", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact · shared input" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -302945,9 +392526,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -302976,18 +392560,37 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { @@ -303031,39 +392634,97 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "finalize_exact_accumulator" + } }, { - "consumer": 3, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 4, + "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", "nullable": false, "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -303074,33 +392735,33 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 4, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -303144,20 +392805,44 @@ ] ] }, - "producer": 3, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 5, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -303168,35 +392853,60 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 4, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 6, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 8, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -303209,9 +392919,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -303240,18 +392953,37 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 7, - "data_state": { + "output_state": { "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -303264,12 +392996,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -303298,18 +393027,26 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 8, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 10, + "output_schema": { "closed": true, "fields": [ { @@ -303353,18 +393090,45 @@ ] ] }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 9, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 11, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -303377,9 +393141,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -303408,15 +393175,36 @@ ] ] }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } + }, { + "coverage": null, "guarantee": null, - "id": 0, + "id": 12, "output_schema": { "closed": true, "fields": [ @@ -303466,65 +393254,20 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 } } } }, { + "coverage": null, "guarantee": null, - "id": 1, + "id": 13, "output_schema": { "closed": true, "fields": [ @@ -303574,21 +393317,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 2, + "id": 14, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -303603,8 +393364,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -303641,34 +393402,31 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 3, + "id": 15, "output_schema": { "closed": true, "fields": [ @@ -303718,86 +393476,39 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 } } } }, { + "coverage": null, "guarantee": null, - "id": 4, + "id": 16, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 3, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 5, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -303808,16 +393519,17 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -303827,16 +393539,39 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 4 - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 6, + "id": 17, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -303889,34 +393624,31 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, - "id": 7, + "id": 18, "output_schema": { "closed": true, "fields": [ @@ -303966,16 +393698,20 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 6 + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 } } } }, { + "coverage": null, "guarantee": null, - "id": 8, + "id": 19, "output_schema": { "closed": true, "fields": [ @@ -304025,28 +393761,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Sort": { - "child": 7, - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false - } - ], - "partition_by": [ - 2 - ] - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 9, + "id": 20, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -304060,9 +393807,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -304092,43 +393842,36 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Limit": { - "child": 8, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } - } - ], - "roots": [ - 5, - 9 - ] - }, - "from_logical": "L79", - "id": "P79", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact (Sum acc) · shared input" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "coverage": null, + "guarantee": null, + "id": 21, + "output_schema": { "closed": true, "fields": [ { @@ -304172,18 +393915,26 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 22, + "output_schema": { "closed": true, "fields": [ { @@ -304227,18 +393978,45 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } }, { - "consumer": 3, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 23, + "kept": true, + "output_schema": { "closed": true, "fields": [ { @@ -304252,8 +394030,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -304285,18 +394063,54 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" + } }, { - "consumer": 4, - "data_state": { - "primitive": "Raw", - "timing": "query_time" + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 24, + "output_schema": { "closed": true, "fields": [ { @@ -304309,9 +394123,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -304340,20 +394157,37 @@ ] ] }, - "producer": 3, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 5, - "data_state": { + "output_state": { "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "summary_merge" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 25, + "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -304364,35 +394198,34 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 4, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 6, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "coverage": null, + "guarantee": null, + "id": 26, + "output_schema": { "closed": true, "fields": [ { @@ -304436,18 +394269,34 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 7, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "kind": "relational", + "operator": { + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "kind": "sort", + "partition_by": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 27, + "output_schema": { "closed": true, "fields": [ { @@ -304491,12 +394340,37 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "limit", + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + ], + "roots": [ + 5, + 27 + ] + }, + "from_logical": "L80", + "id": "P80-m2", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact (Sum acc · tumbling 10s panes) · shared input · query time, kept: exact Sum ×6 panes" + }, + { + "dag": { + "edges": [ { - "consumer": 8, + "consumer": 1, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -304546,12 +394420,12 @@ ] ] }, - "producer": 7, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 2, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -304601,14 +394475,14 @@ ] ] }, - "producer": 0, + "producer": 1, "role": "Input", "window": "NotApplicable" }, { - "consumer": 10, + "consumer": 3, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -304625,9 +394499,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -304656,12 +394533,12 @@ ] ] }, - "producer": 9, + "producer": 2, "role": "Input", "window": "NotApplicable" }, { - "consumer": 11, + "consumer": 4, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -304711,36 +394588,20 @@ ] ] }, - "producer": 10, + "producer": 3, "role": "Input", "window": "NotApplicable" }, { - "consumer": 12, + "consumer": 5, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -304751,27 +394612,29 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 0, + "producer": 4, "role": "Input", "window": "NotApplicable" }, { - "consumer": 13, + "consumer": 6, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -304821,12 +394684,12 @@ ] ] }, - "producer": 12, + "producer": 1, "role": "Input", "window": "NotApplicable" }, { - "consumer": 14, + "consumer": 7, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -304876,36 +394739,20 @@ ] ] }, - "producer": 13, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 15, + "consumer": 8, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -304916,33 +394763,43 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 0, + "producer": 7, "role": "Input", "window": "NotApplicable" - }, + } + ], + "nodes": [ { - "consumer": 16, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -304986,18 +394843,71 @@ ] ] }, - "producer": 15, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 17, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -305041,18 +394951,27 @@ ] ] }, - "producer": 16, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 18, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -305065,9 +394984,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -305096,18 +395018,40 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 19, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { @@ -305151,36 +395095,91 @@ ] ] }, - "producer": 18, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 20, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null - }, + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -305191,33 +395190,36 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 19, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 21, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -305261,36 +395263,36 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 22, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -305301,84 +395303,155 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 21, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 23, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { "Plain": "utf8" }, - "name": "job", - "nullable": true, + "name": "$promql_series_identity", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, - "producer": 22, - "role": "Input", - "window": "NotApplicable" - }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 7 + } + } + } + } + ], + "roots": [ + 5, + 8 + ] + }, + "from_logical": "L81", + "id": "P81", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap · shared input" + }, + { + "dag": { + "edges": [ { - "consumer": 24, + "consumer": 1, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -305395,12 +395468,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -305429,14 +395499,14 @@ ] ] }, - "producer": 8, + "producer": 0, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 2, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -305453,12 +395523,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -305487,12 +395554,12 @@ ] ] }, - "producer": 11, + "producer": 1, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 3, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -305512,8 +395579,8 @@ { "dtype": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "name": "state", @@ -305545,14 +395612,14 @@ ] ] }, - "producer": 14, + "producer": 2, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 4, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -305569,12 +395636,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -305603,12 +395667,12 @@ ] ] }, - "producer": 17, + "producer": 3, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 5, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -305619,10 +395683,10 @@ "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { @@ -305635,40 +395699,23 @@ "name": "state", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 20, + "producer": 4, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 6, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -305685,12 +395732,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -305719,12 +395763,12 @@ ] ] }, - "producer": 23, + "producer": 1, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 7, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -305777,12 +395821,12 @@ ] ] }, - "producer": 24, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 26, + "consumer": 8, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -305832,36 +395876,20 @@ ] ] }, - "producer": 25, + "producer": 7, "role": "Input", "window": "NotApplicable" }, { - "consumer": 27, + "consumer": 9, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -305872,22 +395900,34 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 26, + "producer": 8, "role": "Input", "window": "NotApplicable" } @@ -306329,9 +396369,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -306361,17 +396404,31 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 0 - } + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } @@ -306428,14 +396485,9 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 6, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 6 } } } @@ -306446,25 +396498,6 @@ "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -306475,17 +396508,29 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -306499,23 +396544,42 @@ "SummaryAgg": { "child": 7, "family": { - "ExactAggregate": [ - "Sum", - "Sum" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" ] }, "filter": null, "grouping": "PerSubpopulationInstance", "input": { - "item": null, + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, "weight": { "Column": "SampleValue" }, "weight_domain": { - "kind": "unknown_or_signed" + "kind": "non_negative", + "proof": "counter_samples" } }, - "reduction": "PerEntity" + "reduction": { + "Reduce": [ + 2 + ] + } } } } @@ -306528,42 +396592,34 @@ "fields": [ { "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { "Plain": "utf8" }, - "name": "job", - "nullable": true, + "name": "$promql_series_identity", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "value", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, @@ -306572,21 +396628,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 10000 - } + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 8 } } } - }, + } + ], + "roots": [ + 5, + 9 + ] + }, + "from_logical": "L82", + "id": "P82", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap (Sum acc) · shared input" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 10, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -306630,27 +396704,18 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 2, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 9, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 11, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -306663,12 +396728,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -306697,40 +396759,18 @@ ] ] }, - "output_state": { + "producer": 1, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 3, + "data_state": { "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 10, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } - }, - { - "guarantee": null, - "id": 12, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -306743,9 +396783,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -306774,26 +396817,18 @@ ] ] }, - "output_state": { + "producer": 2, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 4, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 20000 - } - } - } - } - }, - { - "guarantee": null, - "id": 13, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -306837,27 +396872,59 @@ ] ] }, - "output_state": { - "primitive": "Raw", + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 12, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null } - } - } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 14, - "output_schema": { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -306870,12 +396937,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -306904,40 +396968,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 13, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 15, - "output_schema": { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -306981,26 +397023,18 @@ ] ] }, - "output_state": { + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 30000 - } - } - } - } - }, - { - "guarantee": null, - "id": 16, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -307044,27 +397078,18 @@ ] ] }, - "output_state": { + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 9, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 15, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 17, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -307077,12 +397102,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -307111,40 +397133,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 16, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 18, - "output_schema": { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -307188,26 +397188,18 @@ ] ] }, - "output_state": { + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 11, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 40000 - } - } - } - } - }, - { - "guarantee": null, - "id": 19, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -307251,27 +397243,18 @@ ] ] }, - "output_state": { + "producer": 10, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 12, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 18, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 20, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -307284,12 +397267,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -307318,40 +397298,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 19, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 21, - "output_schema": { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -307395,26 +397353,18 @@ ] ] }, - "output_state": { + "producer": 12, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 14, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 50000 - } - } - } - } - }, - { - "guarantee": null, - "id": 22, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -307458,27 +397408,18 @@ ] ] }, - "output_state": { + "producer": 13, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 15, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 21, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 23, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -307491,12 +397432,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -307525,40 +397463,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 22, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 24, - "output_schema": { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -307571,12 +397487,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -307605,29 +397518,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 8, - 11, - 14, - 17, - 20, - 23 - ] - } - } - } + "producer": 15, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 25, - "output_schema": { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -307671,22 +397573,18 @@ ] ] }, - "output_state": { + "producer": 16, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 18, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 24 - } - } - } - }, - { - "guarantee": null, - "id": 26, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -307730,34 +397628,73 @@ ] ] }, - "output_state": { + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 19, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Sort": { - "child": 25, - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false - } - ], - "partition_by": [ - 2 - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 18, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 27, - "output_schema": { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -307801,38 +397738,67 @@ ] ] }, - "output_state": { + "producer": 19, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 21, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "NonASAP": { - "Limit": { - "child": 26, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } - } - } - ], - "roots": [ - 5, - 27 - ] - }, - "from_logical": "L80", - "id": "P80", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact (Sum acc · tumbling 10s panes) · shared input" - }, - { - "dag": { - "edges": [ + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 22, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -307882,12 +397848,12 @@ ] ] }, - "producer": 0, + "producer": 21, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 23, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -307937,12 +397903,12 @@ ] ] }, - "producer": 1, + "producer": 22, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 24, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -307962,8 +397928,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -307995,14 +397961,14 @@ ] ] }, - "producer": 2, + "producer": 8, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 24, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -308019,9 +397985,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -308050,12 +398019,12 @@ ] ] }, - "producer": 3, + "producer": 11, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 24, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -308066,10 +398035,10 @@ "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { @@ -308082,24 +398051,41 @@ "name": "state", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 4, + "producer": 14, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -308115,9 +398101,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -308146,15 +398135,15 @@ ] ] }, - "producer": 6, + "producer": 17, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -308170,9 +398159,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -308201,15 +398193,15 @@ ] ] }, - "producer": 7, + "producer": 20, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 24, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -308225,9 +398217,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -308256,15 +398251,15 @@ ] ] }, - "producer": 8, + "producer": 23, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 10, + "consumer": 25, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -308280,9 +398275,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -308311,15 +398309,15 @@ ] ] }, - "producer": 6, + "producer": 24, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 11, + "consumer": 26, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -308366,36 +398364,20 @@ ] ] }, - "producer": 10, + "producer": 25, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 12, + "consumer": 27, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -308406,33 +398388,43 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 11, + "producer": 26, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, + "window": "NotApplicable" + } + ], + "nodes": [ { - "consumer": 13, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -308476,18 +398468,71 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 14, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -308531,18 +398576,27 @@ ] ] }, - "producer": 13, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 15, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -308555,9 +398609,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -308586,18 +398643,40 @@ ] ] }, - "producer": 14, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 16, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { @@ -308641,36 +398720,91 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 17, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", - "nullable": false, + "name": "job", + "nullable": true, "table": null }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null - }, + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } + }, + { + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -308681,33 +398815,36 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 16, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 18, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -308751,18 +398888,26 @@ ] ] }, - "producer": 17, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 19, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ { @@ -308806,18 +398951,27 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 20, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -308830,9 +398984,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -308861,18 +399018,40 @@ ] ] }, - "producer": 19, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 21, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -308916,18 +399095,26 @@ ] ] }, - "producer": 20, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 22, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { "closed": true, "fields": [ { @@ -308971,18 +399158,27 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 23, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 9, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { "closed": true, "fields": [ { @@ -308995,9 +399191,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -309026,18 +399225,40 @@ ] ] }, - "producer": 22, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 10, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 24, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 12, + "output_schema": { "closed": true, "fields": [ { @@ -309081,18 +399302,26 @@ ] ] }, - "producer": 23, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } }, { - "consumer": 25, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 13, + "output_schema": { "closed": true, "fields": [ { @@ -309105,12 +399334,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -309139,18 +399365,27 @@ ] ] }, - "producer": 9, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 12, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } }, { - "consumer": 25, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 14, + "output_schema": { "closed": true, "fields": [ { @@ -309197,18 +399432,40 @@ ] ] }, - "producer": 12, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 25, - "data_state": { + "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 13, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -309221,12 +399478,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -309255,18 +399509,26 @@ ] ] }, - "producer": 15, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } }, { - "consumer": 25, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 16, + "output_schema": { "closed": true, "fields": [ { @@ -309279,12 +399541,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -309313,18 +399572,27 @@ ] ] }, - "producer": 18, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 15, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } }, { - "consumer": 25, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 17, + "output_schema": { "closed": true, "fields": [ { @@ -309371,18 +399639,40 @@ ] ] }, - "producer": 21, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 25, - "data_state": { + "output_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 16, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 18, + "output_schema": { "closed": true, "fields": [ { @@ -309395,12 +399685,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -309429,18 +399716,26 @@ ] ] }, - "producer": 24, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 26, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 40000 + } + } + } + } + }, + { + "guarantee": null, + "id": 19, + "output_schema": { "closed": true, "fields": [ { @@ -309453,12 +399748,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -309487,18 +399779,27 @@ ] ] }, - "producer": 25, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 27, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 18, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 20, + "output_schema": { "closed": true, "fields": [ { @@ -309511,9 +399812,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -309542,18 +399846,40 @@ ] ] }, - "producer": 26, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 28, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 19, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 21, + "output_schema": { "closed": true, "fields": [ { @@ -309597,15 +399923,25 @@ ] ] }, - "producer": 27, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 50000 + } + } + } + } + }, { "guarantee": null, - "id": 0, + "id": 22, "output_schema": { "closed": true, "fields": [ @@ -309656,56 +399992,12 @@ }, "payload": { "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "TimeRange": { + "child": 21, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 } } } @@ -309713,7 +400005,7 @@ }, { "guarantee": null, - "id": 1, + "id": 23, "output_schema": { "closed": true, "fields": [ @@ -309727,9 +400019,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -309759,25 +400054,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "ASAP": { + "SummaryAgg": { + "child": 22, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 2, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -309792,8 +400100,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -309831,33 +400139,22 @@ }, "payload": { "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "SummaryMerge": { + "children": [ + 8, + 11, + 14, + 17, + 20, + 23 + ] } } } }, { "guarantee": null, - "id": 3, + "id": 25, "output_schema": { "closed": true, "fields": [ @@ -309909,14 +400206,14 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 2 + "child": 24 } } } }, { "guarantee": null, - "id": 4, + "id": 26, "output_schema": { "closed": true, "fields": [ @@ -309930,9 +400227,19 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" ] }, "name": "state", @@ -309954,22 +400261,37 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 3, + "child": 25, "family": { - "ExactAggregate": [ - "Sum", - "Sum" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" ] }, "filter": null, "grouping": "PerSubpopulationInstance", "input": { - "item": null, + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, "weight": { "Column": "SampleValue" }, "weight_domain": { - "kind": "unknown_or_signed" + "kind": "non_negative", + "proof": "counter_samples" } }, "reduction": { @@ -309983,7 +400305,7 @@ }, { "guarantee": null, - "id": 5, + "id": 27, "output_schema": { "closed": true, "fields": [ @@ -309995,11 +400317,19 @@ "nullable": true, "table": null }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "float64" }, - "name": "sum", + "name": "value", "nullable": false, "table": null } @@ -310007,7 +400337,8 @@ "time_index": null, "unique_keys": [ [ - 0 + 0, + 1 ] ] }, @@ -310017,16 +400348,38 @@ }, "payload": { "ASAP": { - "FinalizeExactAccumulator": { - "child": 4 + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 26 } } } - }, + } + ], + "roots": [ + 5, + 27 + ] + }, + "from_logical": "L83", + "id": "P83", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · shared input" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 6, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -310070,71 +400423,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 7, - "output_schema": { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -310178,26 +400478,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 8, - "output_schema": { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -310210,9 +400502,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -310241,27 +400536,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 7, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 2, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 9, - "output_schema": { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -310274,12 +400560,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -310308,40 +400591,59 @@ ] ] }, - "output_state": { + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 8, - "family": { + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { "ExactAggregate": [ "Sum", "Sum" ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "name": "state", + "nullable": false, + "table": null } - } - } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 10, - "output_schema": { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -310385,26 +400687,18 @@ ] ] }, - "output_state": { + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 8, + "data_state": { "primitive": "Raw", "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 10000 - } - } - } - } - }, - { - "guarantee": null, - "id": 11, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -310448,27 +400742,18 @@ ] ] }, - "output_state": { + "producer": 7, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 9, + "data_state": { "primitive": "Raw", "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 10, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 12, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -310481,12 +400766,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -310515,40 +400797,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 11, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 8, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 13, - "output_schema": { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -310592,26 +400852,18 @@ ] ] }, - "output_state": { + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 11, + "data_state": { "primitive": "Raw", "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 20000 - } - } - } - } - }, - { - "guarantee": null, - "id": 14, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -310655,27 +400907,18 @@ ] ] }, - "output_state": { + "producer": 10, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 12, + "data_state": { "primitive": "Raw", "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 13, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 15, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -310688,12 +400931,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -310722,40 +400962,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 14, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 11, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 16, - "output_schema": { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -310799,26 +401017,18 @@ ] ] }, - "output_state": { + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 14, + "data_state": { "primitive": "Raw", "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 30000 - } - } - } - } - }, - { - "guarantee": null, - "id": 17, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -310862,27 +401072,18 @@ ] ] }, - "output_state": { + "producer": 13, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 15, + "data_state": { "primitive": "Raw", "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 16, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 18, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -310895,12 +401096,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -310929,40 +401127,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 17, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 14, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 19, - "output_schema": { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -311006,26 +401182,18 @@ ] ] }, - "output_state": { + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 17, + "data_state": { "primitive": "Raw", "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 40000 - } - } - } - } - }, - { - "guarantee": null, - "id": 20, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -311069,27 +401237,18 @@ ] ] }, - "output_state": { + "producer": 16, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 18, + "data_state": { "primitive": "Raw", "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 19, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 21, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -311102,12 +401261,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -311136,40 +401292,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 20, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 17, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 22, - "output_schema": { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -311213,26 +401347,18 @@ ] ] }, - "output_state": { + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 20, + "data_state": { "primitive": "Raw", "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 50000 - } - } - } - } - }, - { - "guarantee": null, - "id": 23, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -311276,27 +401402,18 @@ ] ] }, - "output_state": { + "producer": 19, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 21, + "data_state": { "primitive": "Raw", "timing": "ingestion_time" }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 22, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 24, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -311309,12 +401426,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -311343,40 +401457,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 23, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 20, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 25, - "output_schema": { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -311389,12 +401481,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -311423,29 +401512,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 9, - 12, - 15, - 18, - 21, - 24 - ] - } - } - } + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 26, - "output_schema": { + "consumer": 23, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -311489,22 +401567,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 25 - } - } - } + "producer": 22, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 27, - "output_schema": { + "consumer": 24, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -311548,34 +401622,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Sort": { - "child": 26, - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false - } - ], - "partition_by": [ - 2 - ] - } - } - } + "producer": 23, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "guarantee": null, - "id": 28, - "output_schema": { + "consumer": 25, + "data_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -311588,9 +401646,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -311619,41 +401680,15 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "Limit": { - "child": 27, - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] - } - } - } - } - ], - "roots": [ - 5, - 28 - ] - }, - "from_logical": "L80", - "id": "P80-m1", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" - }, - { - "dag": { - "edges": [ + "producer": 9, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 25, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -311669,9 +401704,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -311700,15 +401738,15 @@ ] ] }, - "producer": 0, + "producer": 12, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 25, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -311724,9 +401762,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -311755,15 +401796,15 @@ ] ] }, - "producer": 1, + "producer": 15, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 25, "data_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -311780,8 +401821,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -311813,15 +401854,15 @@ ] ] }, - "producer": 2, + "producer": 18, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 25, "data_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -311837,9 +401878,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -311868,15 +401912,15 @@ ] ] }, - "producer": 3, + "producer": 21, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 25, "data_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -311884,10 +401928,10 @@ "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { @@ -311900,23 +401944,40 @@ "name": "state", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 4, + "producer": 24, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 26, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -311933,9 +401994,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -311964,12 +402028,12 @@ ] ] }, - "producer": 1, + "producer": 25, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 27, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -312019,12 +402083,12 @@ ] ] }, - "producer": 6, + "producer": 26, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 28, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -312070,7 +402134,7 @@ ] ] }, - "producer": 7, + "producer": 27, "role": "Input", "window": "NotApplicable" } @@ -312545,24 +402609,61 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + } } } } @@ -312573,6 +402674,22 @@ "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -312583,77 +402700,32 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "SummaryState", - "timing": "query_time" + "primitive": "Raw", + "timing": "ingestion_time" }, "payload": { - "ASAP": { - "SummaryAgg": { + "NonASAP": { + "TimeShift": { "child": 6, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] + "shift": { + "at": null, + "offset_ms": 0 } } } @@ -312665,6 +402737,22 @@ "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -312680,62 +402768,117 @@ "name": "$promql_series_identity", "nullable": false, "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 7, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, "output_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "payload": { "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 + "SummaryAgg": { + "child": 8, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } }, - "summary_input": 7 + "reduction": "PerEntity" } } } - } - ], - "roots": [ - 5, - 8 - ] - }, - "from_logical": "L81", - "id": "P81", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap · shared input" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 10, + "output_schema": { "closed": true, "fields": [ { @@ -312779,18 +402922,26 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { "closed": true, "fields": [ { @@ -312834,18 +402985,27 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 10, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } }, { - "consumer": 3, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 12, + "output_schema": { "closed": true, "fields": [ { @@ -312859,8 +403019,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -312892,18 +403052,40 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 11, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 4, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 13, + "output_schema": { "closed": true, "fields": [ { @@ -312947,20 +403129,44 @@ ] ] }, - "producer": 3, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } }, { - "consumer": 5, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 14, + "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -312971,35 +403177,42 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 4, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 6, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 13, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -313012,9 +403225,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -313043,18 +403259,40 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 7, - "data_state": { + "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 14, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { "closed": true, "fields": [ { @@ -313067,12 +403305,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -313101,18 +403336,26 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 8, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } + }, + { + "guarantee": null, + "id": 17, + "output_schema": { "closed": true, "fields": [ { @@ -313156,20 +403399,48 @@ ] ] }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 16, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } }, { - "consumer": 9, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 18, + "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -313180,42 +403451,54 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 17, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, { "guarantee": null, - "id": 0, + "id": 19, "output_schema": { "closed": true, "fields": [ @@ -313262,60 +403545,15 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 40000 } } } @@ -313323,7 +403561,7 @@ }, { "guarantee": null, - "id": 1, + "id": 20, "output_schema": { "closed": true, "fields": [ @@ -313370,16 +403608,16 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 0, + "child": 19, "kind": "range", "range": { "nanos": 0, - "secs": 60 + "secs": 10 } } } @@ -313387,7 +403625,7 @@ }, { "guarantee": null, - "id": 2, + "id": 21, "output_schema": { "closed": true, "fields": [ @@ -313402,8 +403640,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -313437,16 +403675,16 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 1, + "child": 20, "family": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "filter": null, @@ -313467,7 +403705,7 @@ }, { "guarantee": null, - "id": 3, + "id": 22, "output_schema": { "closed": true, "fields": [ @@ -313514,22 +403752,42 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { "guarantee": null, - "id": 4, + "id": 23, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -313540,52 +403798,33 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "SummaryState", - "timing": "query_time" + "primitive": "Raw", + "timing": "ingestion_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 3, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] + "NonASAP": { + "TimeRange": { + "child": 22, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 } } } @@ -313593,10 +403832,29 @@ }, { "guarantee": null, - "id": 5, + "id": 24, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -313607,35 +403865,54 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "Raw", - "timing": "query_time" + "primitive": "SummaryState", + "timing": "ingestion_time" }, "payload": { "ASAP": { - "FinalizeExactAccumulator": { - "child": 4 + "SummaryAgg": { + "child": 23, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { "guarantee": null, - "id": 6, + "id": 25, "output_schema": { "closed": true, "fields": [ @@ -313689,33 +403966,22 @@ }, "payload": { "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "SummaryMerge": { + "children": [ + 9, + 12, + 15, + 18, + 21, + 24 + ] } } } }, { "guarantee": null, - "id": 7, + "id": 26, "output_schema": { "closed": true, "fields": [ @@ -313767,14 +404033,14 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 6 + "child": 25 } } } }, { "guarantee": null, - "id": 8, + "id": 27, "output_schema": { "closed": true, "fields": [ @@ -313822,7 +404088,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 7, + "child": 26, "family": { "Sketch": [ { @@ -313866,7 +404132,7 @@ }, { "guarantee": null, - "id": 9, + "id": 28, "output_schema": { "closed": true, "fields": [ @@ -313915,7 +404181,7 @@ "k": 10 } }, - "summary_input": 8 + "summary_input": 27 } } } @@ -313923,12 +404189,12 @@ ], "roots": [ 5, - 9 + 28 ] }, - "from_logical": "L82", - "id": "P82", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap (Sum acc) · shared input" + "from_logical": "L83", + "id": "P83-m1", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" }, { "dag": { @@ -315702,6 +405968,7 @@ ], "nodes": [ { + "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -315753,63 +406020,64 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } } }, { + "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -315861,19 +406129,31 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 2, "output_schema": { @@ -315928,32 +406208,29 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, "id": 3, "output_schema": { @@ -316005,14 +406282,23 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } + "kind": "finalize_exact_accumulator" } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 4, "output_schema": { @@ -316050,36 +406336,33 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 3, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] } } }, { + "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -316114,14 +406397,11 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 4 - } - } + "kind": "finalize_exact_accumulator" } }, { + "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -316173,18 +406453,18 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 0 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 } } } }, { + "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -316232,103 +406512,118 @@ ] }, "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 6, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 8, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 7, - "family": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "guarantee": null, + "id": 8, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { "ExactAggregate": [ "Sum", "Sum" ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" }, - "reduction": "PerEntity" + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } - } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -316380,18 +406675,18 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 10000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 } } } }, { + "coverage": null, "guarantee": null, "id": 10, "output_schema": { @@ -316443,21 +406738,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 9, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 11, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -316510,32 +406823,29 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 10, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, "id": 12, "output_schema": { @@ -316587,18 +406897,18 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 20000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 } } } }, { + "coverage": null, "guarantee": null, "id": 13, "output_schema": { @@ -316650,21 +406960,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 12, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 14, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -316717,32 +407045,29 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 13, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, "id": 15, "output_schema": { @@ -316794,18 +407119,18 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 30000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 } } } }, { + "coverage": null, "guarantee": null, "id": 16, "output_schema": { @@ -316857,21 +407182,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 15, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 17, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -316924,32 +407267,29 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 16, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, "id": 18, "output_schema": { @@ -317001,18 +407341,18 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 40000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 } } } }, { + "coverage": null, "guarantee": null, "id": 19, "output_schema": { @@ -317064,21 +407404,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 18, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 20, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -317131,32 +407489,29 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 19, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, "id": 21, "output_schema": { @@ -317208,18 +407563,18 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 50000 - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 } } } }, { + "coverage": null, "guarantee": null, "id": 22, "output_schema": { @@ -317271,21 +407626,39 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 21, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 23, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -317338,32 +407711,46 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 22, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 24, "output_schema": { @@ -317418,21 +407805,11 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 8, - 11, - 14, - 17, - 20, - 23 - ] - } - } + "kind": "summary_merge" } }, { + "coverage": null, "guarantee": null, "id": 25, "output_schema": { @@ -317484,14 +407861,23 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 24 - } - } + "kind": "finalize_exact_accumulator" } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 26, "output_schema": { @@ -317539,51 +407925,48 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 25, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" } }, - "reduction": { - "Reduce": [ - 2 - ] + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] } } }, { + "coverage": null, "guarantee": null, "id": 27, "output_schema": { @@ -317627,14 +408010,10 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 26 + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 } } } @@ -317646,8 +408025,8 @@ ] }, "from_logical": "L83", - "id": "P83", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · shared input" + "id": "P83-m2", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · shared input · query time, kept: exact Sum ×6 panes" }, { "dag": { @@ -317917,10 +408296,10 @@ "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 6, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -317967,15 +408346,15 @@ ] ] }, - "producer": 6, + "producer": 1, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 7, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -318022,36 +408401,20 @@ ] ] }, - "producer": 7, + "producer": 6, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 9, + "consumer": 8, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -318062,33 +408425,43 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 8, + "producer": 7, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, + "window": "NotApplicable" + } + ], + "nodes": [ { - "consumer": 10, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -318132,18 +408505,71 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 11, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, + { + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -318187,18 +408613,27 @@ ] ] }, - "producer": 10, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 12, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -318211,9 +408646,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -318242,18 +408680,40 @@ ] ] }, - "producer": 11, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } }, { - "consumer": 13, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { @@ -318297,36 +408757,24 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 14, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -318337,51 +408785,63 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 13, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } }, { - "consumer": 15, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 5, + "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -318392,33 +408852,36 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 14, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 16, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { "closed": true, "fields": [ { @@ -318462,36 +408925,36 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 17, - "data_state": { + "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -318502,51 +408965,88 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 16, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + } }, { - "consumer": 18, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -318562,37 +409062,6 @@ "name": "$promql_series_identity", "nullable": false, "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 17, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 19, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null }, { "dtype": { @@ -318601,41 +409070,51 @@ "name": "value", "nullable": false, "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, - 0 + 0, + 1 ] ] }, - "producer": 6, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 7 + } + } + } + } + ], + "roots": [ + 5, + 8 + ] + }, + "from_logical": "L84", + "id": "P84", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap · shared input" + }, + { + "dag": { + "edges": [ { - "consumer": 20, + "consumer": 1, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -318682,15 +409161,15 @@ ] ] }, - "producer": 19, + "producer": 0, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 21, + "consumer": 2, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -318737,15 +409216,15 @@ ] ] }, - "producer": 20, + "producer": 1, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 22, + "consumer": 3, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -318761,9 +409240,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -318792,15 +409274,15 @@ ] ] }, - "producer": 6, + "producer": 2, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 4, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -318847,36 +409329,20 @@ ] ] }, - "producer": 22, + "producer": 3, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 5, "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -318887,30 +409353,32 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 23, + "producer": 4, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 6, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -318926,12 +409394,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -318960,15 +409425,15 @@ ] ] }, - "producer": 9, + "producer": 1, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 7, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -319018,15 +409483,15 @@ ] ] }, - "producer": 12, + "producer": 6, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 8, "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -319042,12 +409507,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -319076,39 +409538,20 @@ ] ] }, - "producer": 15, + "producer": 7, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 9, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -319119,33 +409562,43 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, - "producer": 18, + "producer": 8, "role": "Input", "window": "NotApplicable" - }, + } + ], + "nodes": [ { - "consumer": 25, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -319158,12 +409611,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -319192,18 +409642,71 @@ ] ] }, - "producer": 21, - "role": "Input", - "window": "NotApplicable" + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } }, { - "consumer": 25, - "data_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 1, + "output_schema": { "closed": true, "fields": [ { @@ -319216,12 +409719,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -319250,18 +409750,27 @@ ] ] }, - "producer": 24, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 26, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { "closed": true, "fields": [ { @@ -319275,8 +409784,8 @@ { "dtype": { "ExactAggregate": [ - "Sum", - "Sum" + "Rate", + "Rate" ] }, "name": "state", @@ -319308,18 +409817,40 @@ ] ] }, - "producer": 25, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 27, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { @@ -319363,85 +409894,24 @@ ] ] }, - "producer": 26, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 28, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "producer": 27, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + } + } + }, { "guarantee": null, - "id": 0, + "id": 4, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -319452,77 +409922,52 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" ] }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } + }, + "reduction": { + "Reduce": [ + 2 + ] } } } @@ -319530,26 +409975,10 @@ }, { "guarantee": null, - "id": 1, + "id": 5, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -319560,17 +409989,16 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -319580,21 +410008,16 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 } } } }, { "guarantee": null, - "id": 2, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -319609,8 +410032,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -319652,8 +410075,8 @@ "child": 1, "family": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "filter": null, @@ -319674,7 +410097,7 @@ }, { "guarantee": null, - "id": 3, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -319726,14 +410149,14 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 2 + "child": 6 } } } }, { "guarantee": null, - "id": 4, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -319747,9 +410170,19 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" ] }, "name": "state", @@ -319771,22 +410204,37 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 3, + "child": 7, "family": { - "ExactAggregate": [ - "Sum", - "Sum" + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" ] }, "filter": null, "grouping": "PerSubpopulationInstance", "input": { - "item": null, + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, "weight": { "Column": "SampleValue" }, "weight_domain": { - "kind": "unknown_or_signed" + "kind": "non_negative", + "proof": "counter_samples" } }, "reduction": { @@ -319800,7 +410248,7 @@ }, { "guarantee": null, - "id": 5, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -319812,11 +410260,19 @@ "nullable": true, "table": null }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "float64" }, - "name": "sum", + "name": "value", "nullable": false, "table": null } @@ -319824,7 +410280,8 @@ "time_index": null, "unique_keys": [ [ - 0 + 0, + 1 ] ] }, @@ -319834,16 +410291,38 @@ }, "payload": { "ASAP": { - "FinalizeExactAccumulator": { - "child": 4 + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 8 } } } - }, + } + ], + "roots": [ + 5, + 9 + ] + }, + "from_logical": "L85", + "id": "P85", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap (Sum acc) · shared input" + }, + { + "dag": { + "edges": [ { - "guarantee": null, - "id": 6, - "output_schema": { + "consumer": 1, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -319887,71 +410366,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 7, - "output_schema": { + "consumer": 2, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -319995,26 +410421,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - } + "producer": 1, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 8, - "output_schema": { + "consumer": 3, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -320027,9 +410445,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -320058,27 +410479,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 7, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 2, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 9, - "output_schema": { + "consumer": 4, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -320091,12 +410503,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -320125,40 +410534,59 @@ ] ] }, - "output_state": { + "producer": 3, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 5, + "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 8, - "family": { + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { "ExactAggregate": [ "Sum", "Sum" ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "name": "state", + "nullable": false, + "table": null } - } - } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "producer": 4, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 10, - "output_schema": { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -320202,26 +410630,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 10000 - } - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 11, - "output_schema": { + "consumer": 7, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -320265,27 +410685,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 10, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 6, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 12, - "output_schema": { + "consumer": 8, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -320298,12 +410709,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -320332,40 +410740,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 11, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 7, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 13, - "output_schema": { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -320409,26 +410795,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 20000 - } - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 14, - "output_schema": { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -320472,27 +410850,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 13, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 9, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 15, - "output_schema": { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -320505,12 +410874,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -320539,40 +410905,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 14, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 10, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 16, - "output_schema": { + "consumer": 12, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -320616,26 +410960,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 30000 - } - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 17, - "output_schema": { + "consumer": 13, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -320679,27 +411015,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 16, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 12, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 18, - "output_schema": { + "consumer": 14, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -320712,12 +411039,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -320746,40 +411070,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 17, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 13, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 19, - "output_schema": { + "consumer": 15, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -320823,26 +411125,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 40000 - } - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 20, - "output_schema": { + "consumer": 16, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -320886,27 +411180,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 19, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 15, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 21, - "output_schema": { + "consumer": 17, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -320919,12 +411204,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -320953,40 +411235,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 20, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 16, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 22, - "output_schema": { + "consumer": 18, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -321030,26 +411290,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 50000 - } - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 23, - "output_schema": { + "consumer": 19, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -321093,27 +411345,18 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "payload": { - "NonASAP": { - "TimeRange": { - "child": 22, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } + "producer": 18, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 24, - "output_schema": { + "consumer": 20, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -321126,12 +411369,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -321160,40 +411400,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 23, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" - } - } - } + "producer": 19, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 25, - "output_schema": { + "consumer": 21, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -321206,12 +411424,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -321240,29 +411455,18 @@ ] ] }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 9, - 12, - 15, - 18, - 21, - 24 - ] - } - } - } + "producer": 0, + "role": "Input", + "window": "NotApplicable" }, { - "guarantee": null, - "id": 26, - "output_schema": { + "consumer": 22, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -321306,24 +411510,36 @@ ] ] }, - "output_state": { + "producer": 21, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { "primitive": "Raw", "timing": "query_time" }, - "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 25 - } - } - } - }, - { - "guarantee": null, - "id": 27, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -321334,155 +411550,87 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "output_state": { + "producer": 22, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { "primitive": "SummaryState", "timing": "query_time" }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 26, - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 28, - "output_schema": { + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 27 - } - } - } - } - ], - "roots": [ - 5, - 28 - ] - }, - "from_logical": "L83", - "id": "P83-m1", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" - }, - { - "dag": { - "edges": [ + "producer": 8, + "role": "Input", + "window": "NotApplicable" + }, { - "consumer": 1, + "consumer": 24, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -321499,9 +411647,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -321530,14 +411681,14 @@ ] ] }, - "producer": 0, + "producer": 11, "role": "Input", "window": "NotApplicable" }, { - "consumer": 2, + "consumer": 24, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -321554,9 +411705,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -321585,12 +411739,12 @@ ] ] }, - "producer": 1, + "producer": 14, "role": "Input", "window": "NotApplicable" }, { - "consumer": 3, + "consumer": 24, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -321610,8 +411764,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -321643,14 +411797,14 @@ ] ] }, - "producer": 2, + "producer": 17, "role": "Input", "window": "NotApplicable" }, { - "consumer": 4, + "consumer": 24, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -321667,9 +411821,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -321698,12 +411855,12 @@ ] ] }, - "producer": 3, + "producer": 20, "role": "Input", "window": "NotApplicable" }, { - "consumer": 5, + "consumer": 24, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -321714,10 +411871,10 @@ "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { @@ -321730,23 +411887,40 @@ "name": "state", "nullable": false, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 4, + "producer": 23, "role": "Input", "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 25, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -321763,9 +411937,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -321794,12 +411971,12 @@ ] ] }, - "producer": 1, + "producer": 24, "role": "Input", "window": "NotApplicable" }, { - "consumer": 7, + "consumer": 26, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -321849,12 +412026,12 @@ ] ] }, - "producer": 6, + "producer": 25, "role": "Input", "window": "NotApplicable" }, { - "consumer": 8, + "consumer": 27, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -321900,7 +412077,7 @@ ] ] }, - "producer": 7, + "producer": 26, "role": "Input", "window": "NotApplicable" } @@ -322379,20 +412556,12 @@ }, "payload": { "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 0 + } } } } @@ -322403,6 +412572,22 @@ "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -322413,77 +412598,33 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { + "NonASAP": { + "TimeRange": { "child": 6, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" - } - }, - "reduction": { - "Reduce": [ - 2 - ] + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 } } } @@ -322497,75 +412638,82 @@ "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "value", + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ - 0, - 1 + 3, + 0 ] ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 + "SummaryAgg": { + "child": 7, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } }, - "summary_input": 7 + "reduction": "PerEntity" } } } - } - ], - "roots": [ - 5, - 8 - ] - }, - "from_logical": "L84", - "id": "P84", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap · shared input" - }, - { - "dag": { - "edges": [ + }, { - "consumer": 1, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -322609,18 +412757,26 @@ ] ] }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 2, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 10, + "output_schema": { "closed": true, "fields": [ { @@ -322664,18 +412820,27 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 3, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 9, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { "closed": true, "fields": [ { @@ -322689,8 +412854,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -322722,18 +412887,40 @@ ] ] }, - "producer": 2, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 4, - "data_state": { - "primitive": "Raw", + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 10, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 12, + "output_schema": { "closed": true, "fields": [ { @@ -322777,20 +412964,44 @@ ] ] }, - "producer": 3, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 5, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } + }, + { + "guarantee": null, + "id": 13, + "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -322801,35 +413012,42 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 4, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 6, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 12, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 14, + "output_schema": { "closed": true, "fields": [ { @@ -322842,9 +413060,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -322873,18 +413094,40 @@ ] ] }, - "producer": 1, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 7, - "data_state": { + "output_state": { "primitive": "SummaryState", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 13, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 15, + "output_schema": { "closed": true, "fields": [ { @@ -322897,12 +413140,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -322931,18 +413171,26 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 8, - "data_state": { + "output_state": { "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 30000 + } + } + } + } + }, + { + "guarantee": null, + "id": 16, + "output_schema": { "closed": true, "fields": [ { @@ -322986,20 +413234,48 @@ ] ] }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 9, - "data_state": { - "primitive": "SummaryState", + "output_state": { + "primitive": "Raw", "timing": "query_time" }, - "grouping": "NotApplicable", - "intermediate_schema": { + "payload": { + "NonASAP": { + "TimeRange": { + "child": 15, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { + "guarantee": null, + "id": 17, + "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -323010,42 +413286,54 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] }, - "producer": 8, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 16, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, { "guarantee": null, - "id": 0, + "id": 18, "output_schema": { "closed": true, "fields": [ @@ -323096,56 +413384,11 @@ }, "payload": { "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 40000 } } } @@ -323153,7 +413396,7 @@ }, { "guarantee": null, - "id": 1, + "id": 19, "output_schema": { "closed": true, "fields": [ @@ -323205,11 +413448,11 @@ "payload": { "NonASAP": { "TimeRange": { - "child": 0, + "child": 18, "kind": "range", "range": { "nanos": 0, - "secs": 60 + "secs": 10 } } } @@ -323217,7 +413460,7 @@ }, { "guarantee": null, - "id": 2, + "id": 20, "output_schema": { "closed": true, "fields": [ @@ -323232,8 +413475,8 @@ { "dtype": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "name": "state", @@ -323272,11 +413515,11 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 1, + "child": 19, "family": { "ExactAggregate": [ - "Rate", - "Rate" + "Sum", + "Sum" ] }, "filter": null, @@ -323297,7 +413540,7 @@ }, { "guarantee": null, - "id": 3, + "id": 21, "output_schema": { "closed": true, "fields": [ @@ -323347,86 +413590,39 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { "guarantee": null, - "id": 4, + "id": 22, "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 3, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - } - }, - { - "guarantee": null, - "id": 5, - "output_schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -323437,16 +413633,17 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -323456,16 +413653,21 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 4 + "NonASAP": { + "TimeRange": { + "child": 21, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { "guarantee": null, - "id": 6, + "id": 23, "output_schema": { "closed": true, "fields": [ @@ -323520,7 +413722,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 1, + "child": 22, "family": { "ExactAggregate": [ "Sum", @@ -323545,7 +413747,76 @@ }, { "guarantee": null, - "id": 7, + "id": 24, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryMerge": { + "children": [ + 8, + 11, + 14, + 17, + 20, + 23 + ] + } + } + } + }, + { + "guarantee": null, + "id": 25, "output_schema": { "closed": true, "fields": [ @@ -323597,14 +413868,14 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 6 + "child": 24 } } } }, { "guarantee": null, - "id": 8, + "id": 26, "output_schema": { "closed": true, "fields": [ @@ -323652,7 +413923,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 7, + "child": 25, "family": { "Sketch": [ { @@ -323696,7 +413967,7 @@ }, { "guarantee": null, - "id": 9, + "id": 27, "output_schema": { "closed": true, "fields": [ @@ -323745,7 +414016,7 @@ "k": 10 } }, - "summary_input": 8 + "summary_input": 26 } } } @@ -323753,12 +414024,12 @@ ], "roots": [ 5, - 9 + 27 ] }, - "from_logical": "L85", - "id": "P85", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap (Sum acc) · shared input" + "from_logical": "L86", + "id": "P86", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · shared input" }, { "dag": { @@ -324028,10 +414299,10 @@ "window": "NotApplicable" }, { - "consumer": 6, + "consumer": 7, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -324078,15 +414349,180 @@ ] ] }, - "producer": 0, + "producer": 6, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 7, + "consumer": 8, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 7, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 9, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 10, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 6, + "role": "Input", + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + }, + { + "consumer": 11, + "data_state": { + "primitive": "Raw", + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -324133,180 +414569,15 @@ ] ] }, - "producer": 6, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 8, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 7, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 9, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 0, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 10, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 9, + "producer": 10, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 11, + "consumer": 12, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -324353,15 +414624,15 @@ ] ] }, - "producer": 10, + "producer": 11, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 12, + "consumer": 13, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -324408,15 +414679,15 @@ ] ] }, - "producer": 0, + "producer": 6, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 13, + "consumer": 14, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -324463,15 +414734,15 @@ ] ] }, - "producer": 12, + "producer": 13, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 14, + "consumer": 15, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -324518,15 +414789,15 @@ ] ] }, - "producer": 13, + "producer": 14, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 15, + "consumer": 16, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -324573,15 +414844,15 @@ ] ] }, - "producer": 0, + "producer": 6, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 16, + "consumer": 17, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -324628,15 +414899,15 @@ ] ] }, - "producer": 15, + "producer": 16, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 17, + "consumer": 18, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -324683,15 +414954,15 @@ ] ] }, - "producer": 16, + "producer": 17, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 18, + "consumer": 19, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -324738,15 +415009,15 @@ ] ] }, - "producer": 0, + "producer": 6, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 19, + "consumer": 20, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -324793,15 +415064,15 @@ ] ] }, - "producer": 18, + "producer": 19, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 20, + "consumer": 21, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -324848,15 +415119,15 @@ ] ] }, - "producer": 19, + "producer": 20, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 21, + "consumer": 22, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -324903,15 +415174,15 @@ ] ] }, - "producer": 0, + "producer": 6, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 22, + "consumer": 23, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -324958,15 +415229,15 @@ ] ] }, - "producer": 21, + "producer": 22, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 23, + "consumer": 24, "data_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -325013,15 +415284,15 @@ ] ] }, - "producer": 22, + "producer": 23, "role": "Input", - "window": "NotApplicable" + "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" }, { - "consumer": 24, + "consumer": 25, "data_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -325071,15 +415342,15 @@ ] ] }, - "producer": 8, + "producer": 9, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 25, "data_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -325129,15 +415400,15 @@ ] ] }, - "producer": 11, + "producer": 12, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 25, "data_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -325187,15 +415458,15 @@ ] ] }, - "producer": 14, + "producer": 15, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 25, "data_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -325245,15 +415516,15 @@ ] ] }, - "producer": 17, + "producer": 18, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 25, "data_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -325303,15 +415574,15 @@ ] ] }, - "producer": 20, + "producer": 21, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 25, "data_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -325361,12 +415632,12 @@ ] ] }, - "producer": 23, + "producer": 24, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 26, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -325419,12 +415690,12 @@ ] ] }, - "producer": 24, + "producer": 25, "role": "Input", "window": "NotApplicable" }, { - "consumer": 26, + "consumer": 27, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -325474,12 +415745,12 @@ ] ] }, - "producer": 25, + "producer": 26, "role": "Input", "window": "NotApplicable" }, { - "consumer": 27, + "consumer": 28, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -325525,7 +415796,7 @@ ] ] }, - "producer": 26, + "producer": 27, "role": "Input", "window": "NotApplicable" } @@ -326000,167 +416271,68 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "NonASAP": { - "TimeShift": { - "child": 0, - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - } - }, - { - "guarantee": null, - "id": 7, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { - "TimeRange": { - "child": 6, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } - } - } - } - }, - { - "guarantee": null, - "id": 8, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 7, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - }, - "reduction": "PerEntity" + } } } } }, { "guarantee": null, - "id": 9, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -326207,15 +416379,15 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeShift": { - "child": 0, + "child": 6, "shift": { "at": null, - "offset_ms": 10000 + "offset_ms": 0 } } } @@ -326223,7 +416395,7 @@ }, { "guarantee": null, - "id": 10, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -326270,12 +416442,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 9, + "child": 7, "kind": "range", "range": { "nanos": 0, @@ -326287,7 +416459,7 @@ }, { "guarantee": null, - "id": 11, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -326337,12 +416509,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 10, + "child": 8, "family": { "ExactAggregate": [ "Sum", @@ -326365,9 +416537,216 @@ } } }, + { + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 10000 + } + } + } + } + }, + { + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "ingestion_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 10, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, { "guarantee": null, "id": 12, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "ingestion_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 11, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 13, "output_schema": { "closed": true, "fields": [ @@ -326414,12 +416793,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeShift": { - "child": 0, + "child": 6, "shift": { "at": null, "offset_ms": 20000 @@ -326430,7 +416809,7 @@ }, { "guarantee": null, - "id": 13, + "id": 14, "output_schema": { "closed": true, "fields": [ @@ -326477,12 +416856,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 12, + "child": 13, "kind": "range", "range": { "nanos": 0, @@ -326494,7 +416873,7 @@ }, { "guarantee": null, - "id": 14, + "id": 15, "output_schema": { "closed": true, "fields": [ @@ -326544,12 +416923,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 13, + "child": 14, "family": { "ExactAggregate": [ "Sum", @@ -326574,7 +416953,7 @@ }, { "guarantee": null, - "id": 15, + "id": 16, "output_schema": { "closed": true, "fields": [ @@ -326621,12 +417000,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeShift": { - "child": 0, + "child": 6, "shift": { "at": null, "offset_ms": 30000 @@ -326637,7 +417016,7 @@ }, { "guarantee": null, - "id": 16, + "id": 17, "output_schema": { "closed": true, "fields": [ @@ -326684,12 +417063,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 15, + "child": 16, "kind": "range", "range": { "nanos": 0, @@ -326701,7 +417080,7 @@ }, { "guarantee": null, - "id": 17, + "id": 18, "output_schema": { "closed": true, "fields": [ @@ -326751,12 +417130,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 16, + "child": 17, "family": { "ExactAggregate": [ "Sum", @@ -326781,7 +417160,7 @@ }, { "guarantee": null, - "id": 18, + "id": 19, "output_schema": { "closed": true, "fields": [ @@ -326828,12 +417207,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeShift": { - "child": 0, + "child": 6, "shift": { "at": null, "offset_ms": 40000 @@ -326844,7 +417223,7 @@ }, { "guarantee": null, - "id": 19, + "id": 20, "output_schema": { "closed": true, "fields": [ @@ -326891,12 +417270,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 18, + "child": 19, "kind": "range", "range": { "nanos": 0, @@ -326908,7 +417287,7 @@ }, { "guarantee": null, - "id": 20, + "id": 21, "output_schema": { "closed": true, "fields": [ @@ -326958,12 +417337,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 19, + "child": 20, "family": { "ExactAggregate": [ "Sum", @@ -326988,7 +417367,7 @@ }, { "guarantee": null, - "id": 21, + "id": 22, "output_schema": { "closed": true, "fields": [ @@ -327035,12 +417414,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeShift": { - "child": 0, + "child": 6, "shift": { "at": null, "offset_ms": 50000 @@ -327051,7 +417430,7 @@ }, { "guarantee": null, - "id": 22, + "id": 23, "output_schema": { "closed": true, "fields": [ @@ -327098,12 +417477,12 @@ }, "output_state": { "primitive": "Raw", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "NonASAP": { "TimeRange": { - "child": 21, + "child": 22, "kind": "range", "range": { "nanos": 0, @@ -327115,7 +417494,7 @@ }, { "guarantee": null, - "id": 23, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -327165,12 +417544,12 @@ }, "output_state": { "primitive": "SummaryState", - "timing": "query_time" + "timing": "ingestion_time" }, "payload": { "ASAP": { "SummaryAgg": { - "child": 22, + "child": 23, "family": { "ExactAggregate": [ "Sum", @@ -327195,7 +417574,7 @@ }, { "guarantee": null, - "id": 24, + "id": 25, "output_schema": { "closed": true, "fields": [ @@ -327251,12 +417630,12 @@ "ASAP": { "SummaryMerge": { "children": [ - 8, - 11, - 14, - 17, - 20, - 23 + 9, + 12, + 15, + 18, + 21, + 24 ] } } @@ -327264,7 +417643,7 @@ }, { "guarantee": null, - "id": 25, + "id": 26, "output_schema": { "closed": true, "fields": [ @@ -327316,14 +417695,14 @@ "payload": { "ASAP": { "FinalizeExactAccumulator": { - "child": 24 + "child": 25 } } } }, { "guarantee": null, - "id": 26, + "id": 27, "output_schema": { "closed": true, "fields": [ @@ -327371,7 +417750,7 @@ "payload": { "ASAP": { "SummaryAgg": { - "child": 25, + "child": 26, "family": { "Sketch": [ { @@ -327415,7 +417794,7 @@ }, { "guarantee": null, - "id": 27, + "id": 28, "output_schema": { "closed": true, "fields": [ @@ -327464,7 +417843,7 @@ "k": 10 } }, - "summary_input": 26 + "summary_input": 27 } } } @@ -327472,12 +417851,12 @@ ], "roots": [ 5, - 27 + 28 ] }, "from_logical": "L86", - "id": "P86", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · shared input" + "id": "P86-m1", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" }, { "dag": { @@ -327746,11 +418125,66 @@ "role": "Input", "window": "NotApplicable" }, + { + "consumer": 6, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 0, + "role": "Input", + "window": "NotApplicable" + }, { "consumer": 7, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -327799,13 +418233,13 @@ }, "producer": 6, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 8, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -327854,13 +418288,13 @@ }, "producer": 7, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 9, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -327907,15 +418341,15 @@ ] ] }, - "producer": 8, + "producer": 0, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 10, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -327962,15 +418396,15 @@ ] ] }, - "producer": 6, + "producer": 9, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 11, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -328019,13 +418453,13 @@ }, "producer": 10, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 12, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -328072,15 +418506,15 @@ ] ] }, - "producer": 11, + "producer": 0, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 13, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -328127,15 +418561,15 @@ ] ] }, - "producer": 6, + "producer": 12, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 14, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -328184,13 +418618,13 @@ }, "producer": 13, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 15, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -328237,15 +418671,15 @@ ] ] }, - "producer": 14, + "producer": 0, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 16, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -328292,15 +418726,15 @@ ] ] }, - "producer": 6, + "producer": 15, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 17, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -328349,13 +418783,13 @@ }, "producer": 16, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 18, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -328402,15 +418836,15 @@ ] ] }, - "producer": 17, + "producer": 0, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 19, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -328457,15 +418891,15 @@ ] ] }, - "producer": 6, + "producer": 18, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 20, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -328514,13 +418948,13 @@ }, "producer": 19, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 21, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -328567,15 +419001,15 @@ ] ] }, - "producer": 20, + "producer": 0, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 22, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -328622,15 +419056,15 @@ ] ] }, - "producer": 6, + "producer": 21, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 23, "data_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -328677,70 +419111,73 @@ ] ] }, - "producer": 22, + "producer": 22, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 24, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 8, "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" + "window": "NotApplicable" }, { "consumer": 24, - "data_state": { - "primitive": "Raw", - "timing": "ingestion_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 23, - "role": "Input", - "window": "RequiresAlignedPanePhaseOrExactBoundaryResidual" - }, - { - "consumer": 25, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -328790,15 +419227,15 @@ ] ] }, - "producer": 9, + "producer": 11, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -328848,15 +419285,15 @@ ] ] }, - "producer": 12, + "producer": 14, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -328906,15 +419343,15 @@ ] ] }, - "producer": 15, + "producer": 17, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -328964,15 +419401,15 @@ ] ] }, - "producer": 18, + "producer": 20, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 24, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -329022,7 +419459,7 @@ ] ] }, - "producer": 21, + "producer": 23, "role": "Input", "window": "NotApplicable" }, @@ -329030,7 +419467,7 @@ "consumer": 25, "data_state": { "primitive": "SummaryState", - "timing": "ingestion_time" + "timing": "query_time" }, "grouping": "NotApplicable", "intermediate_schema": { @@ -329086,64 +419523,6 @@ }, { "consumer": 26, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 25, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 27, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -329193,12 +419572,12 @@ ] ] }, - "producer": 26, + "producer": 25, "role": "Input", "window": "NotApplicable" }, { - "consumer": 28, + "consumer": 27, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -329244,13 +419623,14 @@ ] ] }, - "producer": 27, + "producer": 26, "role": "Input", "window": "NotApplicable" } ], "nodes": [ { + "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -329302,63 +419682,64 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } } }, { + "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -329410,19 +419791,31 @@ "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 2, "output_schema": { @@ -329477,32 +419870,29 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 1, - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, "id": 3, "output_schema": { @@ -329554,14 +419944,23 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } + "kind": "finalize_exact_accumulator" } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 4, "output_schema": { @@ -329599,36 +419998,33 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 3, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] } } }, { + "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -329663,14 +420059,11 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 4 - } - } + "kind": "finalize_exact_accumulator" } }, { + "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -329719,66 +420112,21 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 0 } } } }, { + "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -329827,23 +420175,42 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 0 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -10000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 8, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -329857,9 +420224,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -329889,23 +420259,33 @@ ] }, "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 7, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -329921,12 +420301,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -329956,36 +420333,22 @@ ] }, "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 8, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 10000 } } } }, { + "coverage": null, "guarantee": null, "id": 10, "output_schema": { @@ -330034,23 +420397,42 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 10000 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -10000, + "start": -20000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 11, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -330064,9 +420446,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -330096,23 +420481,33 @@ ] }, "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 10, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, "id": 12, "output_schema": { @@ -330128,12 +420523,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -330163,36 +420555,22 @@ ] }, "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 11, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 20000 } } } }, { + "coverage": null, "guarantee": null, "id": 13, "output_schema": { @@ -330241,23 +420619,42 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 20000 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -20000, + "start": -30000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 14, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -330271,9 +420668,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -330303,23 +420703,33 @@ ] }, "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 13, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, "id": 15, "output_schema": { @@ -330335,12 +420745,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -330370,36 +420777,22 @@ ] }, "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 14, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 30000 } } } }, { + "coverage": null, "guarantee": null, "id": 16, "output_schema": { @@ -330448,23 +420841,42 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 30000 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -30000, + "start": -40000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 17, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -330478,9 +420890,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -330510,23 +420925,33 @@ ] }, "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 16, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, "id": 18, "output_schema": { @@ -330542,12 +420967,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -330577,36 +420999,22 @@ ] }, "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 17, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 40000 } } } }, { + "coverage": null, "guarantee": null, "id": 19, "output_schema": { @@ -330655,23 +421063,42 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 40000 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -40000, + "start": -50000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 20, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -330685,9 +421112,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -330717,23 +421147,33 @@ ] }, "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 19, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { + "coverage": null, "guarantee": null, "id": 21, "output_schema": { @@ -330749,12 +421189,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -330784,36 +421221,22 @@ ] }, "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" + "primitive": "Raw", + "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 20, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "kind": "relational", + "operator": { + "kind": "time_shift", + "shift": { + "at": null, + "offset_ms": 50000 } } } }, { + "coverage": null, "guarantee": null, "id": 22, "output_schema": { @@ -330862,23 +421285,42 @@ }, "output_state": { "primitive": "Raw", - "timing": "ingestion_time" + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeShift": { - "child": 6, - "shift": { - "at": null, - "offset_ms": 50000 - } - } + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 10 + }, + "range_kind": "range" } } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": -50000, + "start": -60000 + } + } + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, "id": 23, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -330892,9 +421334,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -330924,105 +421369,52 @@ ] }, "output_state": { - "primitive": "Raw", - "timing": "ingestion_time" + "primitive": "SummaryState", + "timing": "query_time" }, "payload": { - "NonASAP": { - "TimeRange": { - "child": 22, - "kind": "range", - "range": { - "nanos": 0, - "secs": 10 - } + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } - } + }, + "kind": "summary_agg", + "reduction": "PerEntity" } }, { - "guarantee": null, - "id": 24, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, + "coverage": { + "regions": [ { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null + "population": {}, + "time_ms": { + "relative_to_evaluation": { + "end": 0, + "start": -60000 + } + } } ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "ingestion_time" - }, - "payload": { - "ASAP": { - "SummaryAgg": { - "child": 23, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": "PerEntity" + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } - } - }, - { + }, "guarantee": null, - "id": 25, + "id": 24, "output_schema": { "closed": true, "fields": [ @@ -331075,23 +421467,13 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryMerge": { - "children": [ - 9, - 12, - 15, - 18, - 21, - 24 - ] - } - } + "kind": "summary_merge" } }, { + "coverage": null, "guarantee": null, - "id": 26, + "id": 25, "output_schema": { "closed": true, "fields": [ @@ -331141,16 +421523,25 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 25 - } - } + "kind": "finalize_exact_accumulator" } }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "id": 27, + "id": 26, "output_schema": { "closed": true, "fields": [ @@ -331196,53 +421587,50 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryAgg": { - "child": 26, - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" } }, - "reduction": { - "Reduce": [ - 2 - ] + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] } } }, { + "coverage": null, "guarantee": null, - "id": 28, + "id": 27, "output_schema": { "closed": true, "fields": [ @@ -331284,14 +421672,10 @@ "timing": "query_time" }, "payload": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 27 + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 } } } @@ -331299,12 +421683,12 @@ ], "roots": [ 5, - 28 + 27 ] }, "from_logical": "L86", - "id": "P86-m1", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · shared input · ingestion time: exact Sum ×6 panes" + "id": "P86-m2", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap (Sum acc · tumbling 10s panes) · shared input · query time, kept: exact Sum ×6 panes" }, { "dag": { @@ -338746,6 +429130,16 @@ } }, "rejected": [ + { + "id": "P3-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, + { + "id": "P6-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, { "id": "P7", "reason": "q2: query-time work takes 161.2 ms per evaluation, over the 100 ms latency bound", @@ -338766,11 +429160,26 @@ "reason": "q2: query-time work takes 133.0 ms per evaluation, over the 100 ms latency bound", "valid": false }, + { + "id": "P9-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, { "id": "P11", "reason": "q2: query-time work takes 531.2 ms per evaluation, over the 100 ms latency bound", "valid": false }, + { + "id": "P14-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, + { + "id": "P17-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, { "id": "P18", "reason": "q2: query-time work takes 161.2 ms per evaluation, over the 100 ms latency bound", @@ -338791,11 +429200,26 @@ "reason": "q2: query-time work takes 133.0 ms per evaluation, over the 100 ms latency bound", "valid": false }, + { + "id": "P20-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, { "id": "P22", "reason": "q2: query-time work takes 531.2 ms per evaluation, over the 100 ms latency bound", "valid": false }, + { + "id": "P25-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, + { + "id": "P28-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, { "id": "P29", "reason": "q2: query-time work takes 161.2 ms per evaluation, over the 100 ms latency bound", @@ -338816,11 +429240,26 @@ "reason": "q2: query-time work takes 133.0 ms per evaluation, over the 100 ms latency bound", "valid": false }, + { + "id": "P31-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, { "id": "P33", "reason": "q2: query-time work takes 531.2 ms per evaluation, over the 100 ms latency bound", "valid": false }, + { + "id": "P36-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, + { + "id": "P39-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, { "id": "P40", "reason": "q2: query-time work takes 161.2 ms per evaluation, over the 100 ms latency bound", @@ -338841,11 +429280,26 @@ "reason": "q2: query-time work takes 133.0 ms per evaluation, over the 100 ms latency bound", "valid": false }, + { + "id": "P42-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, { "id": "P44", "reason": "q2: query-time work takes 531.2 ms per evaluation, over the 100 ms latency bound", "valid": false }, + { + "id": "P47-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, + { + "id": "P50-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, { "id": "P51", "reason": "q2: query-time work takes 161.2 ms per evaluation, over the 100 ms latency bound", @@ -338866,11 +429320,26 @@ "reason": "q2: query-time work takes 133.0 ms per evaluation, over the 100 ms latency bound", "valid": false }, + { + "id": "P53-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, { "id": "P55", "reason": "q2: query-time work takes 531.2 ms per evaluation, over the 100 ms latency bound", "valid": false }, + { + "id": "P58-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, + { + "id": "P61-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, { "id": "P62", "reason": "q2: query-time work takes 161.2 ms per evaluation, over the 100 ms latency bound", @@ -338891,11 +429360,26 @@ "reason": "q2: query-time work takes 133.0 ms per evaluation, over the 100 ms latency bound", "valid": false }, + { + "id": "P64-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, { "id": "P66", "reason": "q2: query-time work takes 531.2 ms per evaluation, over the 100 ms latency bound", "valid": false }, + { + "id": "P69-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, + { + "id": "P72-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, { "id": "P73", "reason": "q2: query-time work takes 161.2 ms per evaluation, over the 100 ms latency bound", @@ -338916,11 +429400,26 @@ "reason": "q2: query-time work takes 133.0 ms per evaluation, over the 100 ms latency bound", "valid": false }, + { + "id": "P75-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, { "id": "P77", "reason": "q2: query-time work takes 531.2 ms per evaluation, over the 100 ms latency bound", "valid": false }, + { + "id": "P80-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, + { + "id": "P83-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, { "id": "P84", "reason": "q2: query-time work takes 161.2 ms per evaluation, over the 100 ms latency bound", @@ -338941,6 +429440,11 @@ "reason": "q2: query-time work takes 133.0 ms per evaluation, over the 100 ms latency bound", "valid": false }, + { + "id": "P86-m2", + "reason": "deployment cannot keep query-time state across evaluations (query time, kept)", + "valid": false + }, { "id": "P88", "reason": "q2: query-time work takes 531.2 ms per evaluation, over the 100 ms latency bound", diff --git a/tools/dag-viewer/stages.js b/tools/dag-viewer/stages.js index f030bbba4..653f866c2 100644 --- a/tools/dag-viewer/stages.js +++ b/tools/dag-viewer/stages.js @@ -336,10 +336,11 @@ function wirePartition(keys, schema) { return `${keys.without ? 'per group without' : 'per'} ${keys.keys.map((key) => wireColumn(key, schema)).join(', ')}`; } -function formatTiming(timing) { +// `kept`: a query-time output kept across evaluations (Stage 2's B3 panes). +function formatTiming(timing, kept) { const normalized = String(timing || '').replace(/_/g, '').toLowerCase(); if (normalized === 'ingestiontime') return 'ingestion time'; - if (normalized === 'querytime') return 'query time'; + if (normalized === 'querytime') return kept ? 'query time, kept' : 'query time'; return String(timing || 'unknown'); } @@ -431,7 +432,7 @@ function stageLaneElements(laneId, laneLabel, dag, options) { const lines = stageNodeLines(node, input && input.output_schema); const timing = physical && node.output_state ? node.output_state.timing : undefined; const cost = costPerNode ? costPerNode[String(node.id)] : undefined; - if (timing !== undefined) lines.push(`⏱ ${formatTiming(timing)}`); + if (timing !== undefined) lines.push(`⏱ ${formatTiming(timing, node.kept)}`); if (cost && typeof cost.cost === 'number') lines.push(`cost ${Number(cost.cost.toFixed(3))}`); if (rootFor.has(node.id)) lines.push(`root of ${rootFor.get(node.id).join(', ')}`); elements.push({ diff --git a/tools/dag-viewer/test_viewer.py b/tools/dag-viewer/test_viewer.py index cd91ff51b..73c8d92b5 100644 --- a/tools/dag-viewer/test_viewer.py +++ b/tools/dag-viewer/test_viewer.py @@ -217,6 +217,18 @@ def test_physical_lane_without_stage3_has_no_cost(self): if "source" not in node["data"]: self.assertNotIn("cost", node["data"]["label"]) + def test_kept_nodes_say_so_in_their_timing(self): + """A query-time node kept across evaluations (B3) reads "query time, kept"; no other node does.""" + dag = json.loads(json.dumps(self.doc["stage2_physical_asap"]["candidates"][0]["dag"])) + kept = dag["nodes"][0] + self.assertEqual(kept["output_state"]["timing"], "query_time") + kept["kept"] = True + lane = self.js.call("stageLaneElements", "stage2", "Physical", dag, {"physical": True}) + labels = {n["data"]["stageNode"]["id"]: n["data"]["label"] + for n in lane[1:] if "source" not in n["data"]} + self.assertIn("⏱ query time, kept", labels[kept["id"]].split("\n")) + self.assertFalse(any("kept" in label for id, label in labels.items() if id != kept["id"])) + def test_summary_nodes_print_their_configuration(self): """A summary node names its family's parameters and whether it keeps one state per group or one shared state.""" per_group = { From cfafcf15707c69b2a37a0abc2f2c90b89c6f79b8 Mon Sep 17 00:00:00 2001 From: zzylol <50204836+zzylol@users.noreply.github.com> Date: Thu, 8 Oct 2026 15:07:32 +0000 Subject: [PATCH 2/2] refactor(stage2): port kept tumbling panes to Operator payloads Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01W7qG9aFyPij5uWsyAJCxDW --- crates/executor/tests/promql_binary.rs | 1 + .../tests/planner_layering_common/mod.rs | 7 +- crates/plan-selection/src/lib.rs | 405 +- .../examples/planner-layering-example1.json | 26218 +++++++--------- 4 files changed, 12123 insertions(+), 14508 deletions(-) diff --git a/crates/executor/tests/promql_binary.rs b/crates/executor/tests/promql_binary.rs index 4e3d43ef1..b60d28e38 100644 --- a/crates/executor/tests/promql_binary.rs +++ b/crates/executor/tests/promql_binary.rs @@ -394,6 +394,7 @@ fn stored_series_evaluations_support_filters_and_sets() { }, ), }, + kept: false, output_state: if id < 2 { ExecutionDataState::INGESTION_SUMMARY } else { diff --git a/crates/integration-tests/tests/planner_layering_common/mod.rs b/crates/integration-tests/tests/planner_layering_common/mod.rs index 699dad5c7..bc2908efb 100644 --- a/crates/integration-tests/tests/planner_layering_common/mod.rs +++ b/crates/integration-tests/tests/planner_layering_common/mod.rs @@ -790,7 +790,12 @@ pub fn retention_ms(p: &Physical, node: PhysicalASAPNodeId) -> Option { .dag .consumers(node) .into_iter() - .filter(|&c| matches!(p.dag.payload(c), Operator::ASAP(ASAPOp::SummaryMerge { .. }))) + .filter(|&c| { + matches!( + p.dag.payload(c), + Operator::ASAP(ASAPOp::SummaryMerge { .. }) + ) + }) .map(|merge| p.dag.producers(merge).len() as u64 * window(node)) .max(); } diff --git a/crates/plan-selection/src/lib.rs b/crates/plan-selection/src/lib.rs index 0d77fc763..c1bc60a94 100644 --- a/crates/plan-selection/src/lib.rs +++ b/crates/plan-selection/src/lib.rs @@ -63,8 +63,10 @@ use asap_types::ir::NonASAPOp; use std::collections::{BTreeMap, HashMap}; use std::rc::Rc; -use asap_types::ir::physical_export::{ PhysicalASAPDAG, PhysicalASAPNodeId, PhysicalASAPOperatorPayload as Payload}; use asap_types::ir::operator::Reduction; +use asap_types::ir::physical_export::{ + PhysicalASAPDAG, PhysicalASAPNodeId, PhysicalASAPOperatorPayload as Payload, +}; use asap_types::ir::schema::{DataType, Schema}; use asap_types::ir::schema::{ FieldDataType, SketchAlgorithm, SketchParams, SketchStatistic, WeightDomain, @@ -1422,13 +1424,15 @@ fn scan_extent_ms( .filter_map(|e| { let consumer = dag.nodes.iter().find(|n| n.id == e.consumer)?; match &consumer.payload { - Payload::NonASAP(NonASAPOp::TimeShift { shift }) => scan_extent_ms( + Payload::NonASAP(NonASAPOp::TimeShift { shift, .. }) => scan_extent_ms( dag, roles, consumer.id, offset_ms.saturating_add(shift.offset_ms), ), - Payload::NonASAP(NonASAPOp::TimeRange { range, .. }) => Some((range.as_millis() as u64).saturating_add(offset_ms.max(0) as u64)), + Payload::NonASAP(NonASAPOp::TimeRange { range, .. }) => { + Some((range.as_millis() as u64).saturating_add(offset_ms.max(0) as u64)) + } _ => None, } }) @@ -1468,7 +1472,7 @@ fn pane_roles(dag: &PhysicalASAPDAG) -> HashMap { producers(pane) .flat_map(producers) .find_map(|id| match &nodes[&id].payload { - Payload::NonASAP(NonASAPOp::TimeShift { shift }) => Some(shift.offset_ms), + Payload::NonASAP(NonASAPOp::TimeShift { shift, .. }) => Some(shift.offset_ms), _ => None, }) .unwrap_or(0) @@ -1477,11 +1481,12 @@ fn pane_roles(dag: &PhysicalASAPDAG) -> HashMap { for merge in dag .nodes .iter() - .filter(|n| matches!(n.payload, Payload::ASAP(ASAPOp::SummaryMerge {}))) + .filter(|n| matches!(n.payload, Payload::ASAP(ASAPOp::SummaryMerge { .. }))) { let panes: Vec<_> = producers(merge.id) .filter(|&id| { - materialized(id) && matches!(nodes[&id].payload, Payload::ASAP(ASAPOp::SummaryAgg { .. })) + materialized(id) + && matches!(nodes[&id].payload, Payload::ASAP(ASAPOp::SummaryAgg { .. })) }) .collect(); let Some(&newest) = panes.iter().min_by_key(|&&id| shift(id)) else { @@ -1569,11 +1574,7 @@ fn price_nodes( calibration: &Stage3Calibration, raw_bytes_per_sample: Option, ) -> Result { - let first = dag - .roots - .first() - .copied() - .unwrap_or(0); + let first = dag.roots.first().copied().unwrap_or(0); calibration.validate().map_err(|error| (first, error))?; let series = data .input_cardinality @@ -1638,210 +1639,211 @@ fn price_nodes( } }; let groups = |reduction: &Reduction| bounded_groups(reduction, input.rows); - let (out, estimate, detail) = match &node.payload { - Payload::NonASAP(operator) => match operator { - NonASAPOp::Scan { .. } => { - // At ingestion time, one second of arriving rows; at - // query time, as far back as the ranges reading it reach. - let span_ms = match ingestion { - true => 1_000, - false => { - scan_extent_ms(dag, &roles, node.id, 0).unwrap_or(DEFAULT_LOOKBACK_MS) - } - }; - let out = edge(scan_rows(rows_per_ms, span_ms)); - let estimate = estimate_operator( - PhysicalOperator::Scan, - OperatorStatistics::Scan { - edges: UnaryEdgeStatistics { - input: out, - output: out, - promql: None, + let (out, estimate, detail) = + match &node.payload { + Payload::NonASAP(operator) => match operator { + NonASAPOp::Scan { .. } => { + // At ingestion time, one second of arriving rows; at + // query time, as far back as the ranges reading it reach. + let span_ms = match ingestion { + true => 1_000, + false => scan_extent_ms(dag, &roles, node.id, 0) + .unwrap_or(DEFAULT_LOOKBACK_MS), + }; + let out = edge(scan_rows(rows_per_ms, span_ms)); + let estimate = estimate_operator( + PhysicalOperator::Scan, + OperatorStatistics::Scan { + edges: UnaryEdgeStatistics { + input: out, + output: out, + promql: None, + }, + source_read_bytes: out.bytes, }, - source_read_bytes: out.bytes, - }, - ); - (out, estimate, format!("scan {} samples", out.rows)) - } - NonASAPOp::Aggregate { - reduction, - measures, - .. - } => { + ); + (out, estimate, format!("scan {} samples", out.rows)) + } + NonASAPOp::Aggregate { + reduction, + measures, + .. + } => { + let group_count = groups(reduction); + let keys = match reduction { + Reduction::Reduce(keys) => keys.keys().len() as u64, + _ => 1, + }; + let out = edge(group_count); + let estimate = estimate_operator( + PhysicalOperator::HashAggregate { + grouping_key_count: keys, + accumulator_count: measures.len().max(1) as u64, + }, + OperatorStatistics::HashAggregate { + edges: unary(out), + group_count, + key_bytes: 16 * keys, + accumulator_bytes_per_group: 8, + }, + ); + ( + out, + estimate, + format!( + "hash aggregate {} rows into {group_count} groups", + input.rows + ), + ) + } + NonASAPOp::Sort { + keys, partition_by, .. + } => { + let partitions = if partition_by.keys().is_empty() { + 1 + } else { + DEFAULT_GROUP_COUNT.min(input.rows.max(1)) + }; + let estimate = estimate_operator( + PhysicalOperator::InMemoryComparisonSort { + ordering_key_count: keys.len() as u64, + partitioned: partitions > 1, + }, + OperatorStatistics::InMemoryComparisonSort { + edges: unary(input), + input_partitioning: split(input, partitions), + }, + ); + ( + input, + estimate, + format!("sort {} rows in {partitions} partitions", input.rows), + ) + } + NonASAPOp::Limit { + n, + offset, + partition_by, + .. + } => { + let partitions = partition_count(!partition_by.keys().is_empty()); + let limit = n.map_or(u64::MAX, |n| (n as u64).saturating_mul(partitions)); + let offset = (*offset as u64).saturating_mul(partitions); + let out = edge(selected_rows(input.rows.saturating_sub(offset), limit)); + let estimate = estimate_operator( + PhysicalOperator::Limit { limit, offset }, + OperatorStatistics::Limit { edges: unary(out) }, + ); + (out, estimate, format!("limit to {} rows", out.rows)) + } + // At query time a range keeps only its own span of a longer + // scan: a filter on the timestamp. + NonASAPOp::TimeRange { range, .. } if !ingestion => { + let rows = (rows_per_ms * range.as_millis() as f64).round() as u64; + let out = edge(input.rows.min(rows.max(1))); + let estimate = estimate_operator( + PhysicalOperator::Filter { + predicate_operations_per_row: 1, + }, + OperatorStatistics::Filter { edges: unary(out) }, + ); + ( + out, + estimate, + format!("time range {range:?}: pass {} rows", out.rows), + ) + } + other => { + let estimate = estimate_operator( + PhysicalOperator::PassThrough, + OperatorStatistics::PassThrough { + edges: unary(input), + }, + ); + let name = match other { + NonASAPOp::TimeRange { range, .. } => format!("time range {range:?}"), + _ => "operator".into(), + }; + (input, estimate, format!("{name}: pass {} rows", input.rows)) + } + }, + Payload::ASAP(ASAPOp::SummaryAgg { + family, reduction, .. + }) => { let group_count = groups(reduction); - let keys = match reduction { - Reduction::Reduce(keys) => keys.keys().len() as u64, - _ => 1, + let (depth, state_bytes) = summary_shape(family); + let out = EdgeStatistics { + rows: group_count, + bytes: group_count * state_bytes, }; - let out = edge(group_count); - let estimate = estimate_operator( - PhysicalOperator::HashAggregate { - grouping_key_count: keys, - accumulator_count: measures.len().max(1) as u64, - }, - OperatorStatistics::HashAggregate { - edges: unary(out), - group_count, - key_bytes: 16 * keys, - accumulator_bytes_per_group: 8, - }, - ); + let ops = input.rows as f64 * depth as f64; ( out, - estimate, + Ok(ResourceEstimate::new(ops, out.bytes, 0)), format!( - "hash aggregate {} rows into {group_count} groups", + "build {} into {group_count} states: {} rows x depth {depth}", + family_name(family), input.rows ), ) } - NonASAPOp::Sort { keys, partition_by } => { - let partitions = if partition_by.keys().is_empty() { - 1 - } else { - DEFAULT_GROUP_COUNT.min(input.rows.max(1)) + Payload::ASAP(ASAPOp::SummaryEstimate { query, .. }) => { + let rows = match query { + // The logical result, as an exact Sort → Limit sizes it. + // Items are at most the series: a whole-expression + // sketch reads several samples per ranked item. + SketchStatistic::TopK { k } => { + let (summarized, grouped) = summarized_rows(dag, &output, node.id); + selected_rows( + summarized.min(shape.series), + (*k as u64).saturating_mul(partition_count(grouped)), + ) + } + _ => input.rows, }; - let estimate = estimate_operator( - PhysicalOperator::InMemoryComparisonSort { - ordering_key_count: keys.len() as u64, - partitioned: partitions > 1, - }, - OperatorStatistics::InMemoryComparisonSort { - edges: unary(input), - input_partitioning: split(input, partitions), - }, - ); + let out = edge(rows); ( - input, - estimate, - format!("sort {} rows in {partitions} partitions", input.rows), + out, + Ok(ResourceEstimate::new(out.rows as f64, 0, 0)), + format!("estimate {} rows from {} states", out.rows, input.rows), ) } - NonASAPOp::Limit { - n, - offset, - partition_by, - } => { - let partitions = partition_count(!partition_by.keys().is_empty()); - let limit = n.map_or(u64::MAX, |n| (n as u64).saturating_mul(partitions)); - let offset = (*offset as u64).saturating_mul(partitions); - let out = edge(selected_rows(input.rows.saturating_sub(offset), limit)); - let estimate = estimate_operator( - PhysicalOperator::Limit { limit, offset }, - OperatorStatistics::Limit { edges: unary(out) }, - ); - (out, estimate, format!("limit to {} rows", out.rows)) - } - // At query time a range keeps only its own span of a longer - // scan: a filter on the timestamp. - NonASAPOp::TimeRange { range, .. } if !ingestion => { - let rows = (rows_per_ms * range.as_millis() as f64).round() as u64; - let out = edge(input.rows.min(rows.max(1))); - let estimate = estimate_operator( - PhysicalOperator::Filter { - predicate_operations_per_row: 1, + // One merge per input state. The output holds the union of the + // inputs' groups, bounded as one build over all their rows is, + // so readers see what they would see over the whole window. + Payload::ASAP(ASAPOp::SummaryMerge { .. }) => { + let merged: u64 = inputs.iter().map(|edge| edge.rows).sum(); + let reduction = dag.edges.iter().filter(|e| e.consumer == node.id).find_map( + |e| match &nodes[&e.producer].payload { + Payload::ASAP(ASAPOp::SummaryAgg { reduction, .. }) => Some(reduction), + _ => None, }, - OperatorStatistics::Filter { edges: unary(out) }, ); + let rows = reduction.map_or(merged, |r| bounded_groups(r, merged)); + let out = EdgeStatistics { + rows, + bytes: rows * (input.bytes / input.rows.max(1)), + }; ( out, - estimate, - format!("time range {range:?}: pass {} rows", out.rows), + Ok(ResourceEstimate::new(merged as f64, 0, 0)), + format!( + "merge {merged} states from {} inputs into {rows}", + inputs.len() + ), ) } - other => { - let estimate = estimate_operator( - PhysicalOperator::PassThrough, - OperatorStatistics::PassThrough { - edges: unary(input), - }, - ); - let name = match other { - NonASAPOp::TimeRange { range, .. } => format!("time range {range:?}"), - _ => "operator".into(), - }; - (input, estimate, format!("{name}: pass {} rows", input.rows)) - } - }, - Payload::ASAP(ASAPOp::SummaryAgg { - family, reduction, .. - }) => { - let group_count = groups(reduction); - let (depth, state_bytes) = summary_shape(family); - let out = EdgeStatistics { - rows: group_count, - bytes: group_count * state_bytes, - }; - let ops = input.rows as f64 * depth as f64; - ( - out, - Ok(ResourceEstimate::new(ops, out.bytes, 0)), - format!( - "build {} into {group_count} states: {} rows x depth {depth}", - family_name(family), - input.rows - ), - ) - } - Payload::ASAP(ASAPOp::SummaryEstimate { query }) => { - let rows = match query { - // The logical result, as an exact Sort → Limit sizes it. - // Items are at most the series: a whole-expression - // sketch reads several samples per ranked item. - SketchStatistic::TopK { k } => { - let (summarized, grouped) = summarized_rows(dag, &output, node.id); - selected_rows( - summarized.min(shape.series), - (*k as u64).saturating_mul(partition_count(grouped)), - ) - } - _ => input.rows, - }; - let out = edge(rows); - ( - out, - Ok(ResourceEstimate::new(out.rows as f64, 0, 0)), - format!("estimate {} rows from {} states", out.rows, input.rows), - ) - } - // One merge per input state. The output holds the union of the - // inputs' groups, bounded as one build over all their rows is, - // so readers see what they would see over the whole window. - Payload::ASAP(ASAPOp::SummaryMerge {}) => { - let merged: u64 = inputs.iter().map(|edge| edge.rows).sum(); - let reduction = dag - .edges - .iter() - .filter(|e| e.consumer == node.id) - .find_map(|e| match &nodes[&e.producer].payload { - Payload::ASAP(ASAPOp::SummaryAgg { reduction, .. }) => Some(reduction), - _ => None, - }); - let rows = reduction.map_or(merged, |r| bounded_groups(r, merged)); - let out = EdgeStatistics { - rows, - bytes: rows * (input.bytes / input.rows.max(1)), - }; - ( - out, - Ok(ResourceEstimate::new(merged as f64, 0, 0)), - format!( - "merge {merged} states from {} inputs into {rows}", - inputs.len() - ), - ) - } - Payload::ASAP(ASAPOp::FinalizeExactAccumulator {}) => ( - edge(input.rows), - Ok(ResourceEstimate::new(input.rows as f64, 0, 0)), - format!("finalize {} accumulators", input.rows), - ), - _ => ( - edge(input.rows), - Ok(ResourceEstimate::new(input.rows as f64, 0, 0)), - format!("{} rows", input.rows), - ), - }; + Payload::ASAP(ASAPOp::FinalizeExactAccumulator { .. }) => ( + edge(input.rows), + Ok(ResourceEstimate::new(input.rows as f64, 0, 0)), + format!("finalize {} accumulators", input.rows), + ), + _ => ( + edge(input.rows), + Ok(ResourceEstimate::new(input.rows as f64, 0, 0)), + format!("{} rows", input.rows), + ), + }; let cost = estimate .and_then(|estimate| estimate.calibrated_cost(&resources)) .map_err(|error| (node.id, error))?; @@ -1974,10 +1976,7 @@ fn raw_retention( .iter() .filter(|n| { n.output_state.timing.is_query_time() - && matches!( - n.payload, - Payload::NonASAP(NonASAPOp::Scan { .. }) - ) + && matches!(n.payload, Payload::NonASAP(NonASAPOp::Scan { .. })) }) .map(|n| { let span_ms = scan_extent_ms(dag, roles, n.id, 0).unwrap_or(DEFAULT_LOOKBACK_MS); @@ -2744,10 +2743,7 @@ mod tests { } fn is_scan(payload: &Payload) -> bool { - matches!( - payload, - Payload::NonASAP(NonASAPOp::Scan { .. }) - ) + matches!(payload, Payload::NonASAP(NonASAPOp::Scan { .. })) } fn is_build(payload: &Payload) -> bool { @@ -3315,7 +3311,8 @@ mod tests { let (p, _) = maintained_panes(&run); let p = p.clone(); // data(): 10 000 series; the newest pane keeps itself and 5 others. - let Payload::ASAP(ASAPOp::SummaryAgg { family, .. }) = &node_of(&p.dag, is_build).payload else { + let Payload::ASAP(ASAPOp::SummaryAgg { family, .. }) = &node_of(&p.dag, is_build).payload + else { unreachable!() }; let retained = 6 * 10_000 * summary_shape(family).1; diff --git a/tools/dag-viewer/examples/planner-layering-example1.json b/tools/dag-viewer/examples/planner-layering-example1.json index d9d6d9f23..fae670f04 100644 --- a/tools/dag-viewer/examples/planner-layering-example1.json +++ b/tools/dag-viewer/examples/planner-layering-example1.json @@ -97193,7 +97193,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -97245,64 +97244,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -97354,19 +97352,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": null, "guarantee": null, "id": 2, "output_schema": { @@ -97418,25 +97416,25 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } } } }, { - "coverage": null, "guarantee": null, "id": 3, "output_schema": { @@ -97471,30 +97469,30 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] } } } }, { - "coverage": null, "guarantee": null, "id": 4, "output_schema": { @@ -97546,64 +97544,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -97655,18 +97652,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 0 + } } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -97718,36 +97715,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 7, "kept": true, @@ -97803,29 +97783,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 8, "output_schema": { @@ -97877,18 +97860,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 10000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -97940,36 +97923,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 8, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 10, "kept": true, @@ -98025,29 +97991,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 9, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 11, "output_schema": { @@ -98099,18 +98068,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 20000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 12, "output_schema": { @@ -98162,36 +98131,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 11, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 13, "kept": true, @@ -98247,29 +98199,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 12, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 14, "output_schema": { @@ -98321,18 +98276,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 30000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 15, "output_schema": { @@ -98384,36 +98339,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 14, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 16, "kept": true, @@ -98469,29 +98407,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 15, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 17, "output_schema": { @@ -98543,18 +98484,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 40000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 18, "output_schema": { @@ -98606,36 +98547,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 17, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 19, "kept": true, @@ -98691,29 +98615,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 18, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 20, "output_schema": { @@ -98765,18 +98692,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 21, "output_schema": { @@ -98828,133 +98755,22 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" - } - } - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } + "NonASAP": { + "TimeRange": { + "child": 20, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 } } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } } - }, - "guarantee": null, - "id": 22, - "kept": true, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "kind": "summary_agg", - "reduction": "PerEntity" } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 23, + "id": 22, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -99007,11 +98823,101 @@ "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "ASAP": { + "SummaryAgg": { + "child": 21, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 23, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryMerge": { + "children": [ + 7, + 10, + 13, + 16, + 19, + 22 + ] + } + } } }, { - "coverage": null, "guarantee": null, "id": 24, "output_schema": { @@ -99063,11 +98969,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 23 + } + } } }, { - "coverage": null, "guarantee": null, "id": 25, "output_schema": { @@ -99119,26 +99028,26 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false - } - ], - "kind": "sort", - "partition_by": [ - 2 - ] + "NonASAP": { + "Sort": { + "child": 24, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } } } }, { - "coverage": null, "guarantee": null, "id": 26, "output_schema": { @@ -99190,14 +99099,15 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "limit", - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "NonASAP": { + "Limit": { + "child": 25, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } } } } @@ -110400,7 +110310,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -110452,64 +110361,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -110561,19 +110469,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": null, "guarantee": null, "id": 2, "output_schema": { @@ -110625,25 +110533,25 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } } } }, { - "coverage": null, "guarantee": null, "id": 3, "output_schema": { @@ -110678,30 +110586,30 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] } } } }, { - "coverage": null, "guarantee": null, "id": 4, "output_schema": { @@ -110753,64 +110661,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -110862,18 +110769,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 0 + } } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -110925,36 +110832,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 7, "kept": true, @@ -111010,29 +110900,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 8, "output_schema": { @@ -111084,18 +110977,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 10000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -111147,36 +111040,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 8, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 10, "kept": true, @@ -111232,29 +111108,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 9, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 11, "output_schema": { @@ -111306,18 +111185,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 20000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 12, "output_schema": { @@ -111369,36 +111248,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 11, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 13, "kept": true, @@ -111454,29 +111316,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 12, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 14, "output_schema": { @@ -111528,18 +111393,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 30000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 15, "output_schema": { @@ -111591,36 +111456,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 14, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 16, "kept": true, @@ -111676,94 +111524,34 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "kind": "summary_agg", - "reduction": "PerEntity" - } - }, - { - "coverage": null, - "guarantee": null, - "id": 17, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + "ASAP": { + "SummaryAgg": { + "child": 15, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 18, + "id": 17, "output_schema": { "closed": true, "fields": [ @@ -111813,36 +111601,82 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 40000 + } + } } } }, { - "coverage": { - "regions": [ + "guarantee": null, + "id": 18, + "output_schema": { + "closed": true, + "fields": [ { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 17, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } - }, + } + }, + { "guarantee": null, "id": 19, "kept": true, @@ -111898,29 +111732,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 18, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 20, "output_schema": { @@ -111972,18 +111809,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 21, "output_schema": { @@ -112035,36 +111872,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 20, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 22, "kept": true, @@ -112120,46 +111940,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 21, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 23, "output_schema": { @@ -112214,11 +112020,21 @@ "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "ASAP": { + "SummaryMerge": { + "children": [ + 7, + 10, + 13, + 16, + 19, + 22 + ] + } + } } }, { - "coverage": null, "guarantee": null, "id": 24, "output_schema": { @@ -112270,23 +112086,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 23 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 25, "output_schema": { @@ -112334,48 +112141,51 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 + "ASAP": { + "SummaryAgg": { + "child": 24, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 26, "output_schema": { @@ -112419,10 +112229,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 25 } } } @@ -123626,7 +123440,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -123678,64 +123491,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -123787,19 +123599,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": null, "guarantee": null, "id": 2, "output_schema": { @@ -123851,25 +123663,25 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } } } }, { - "coverage": null, "guarantee": null, "id": 3, "output_schema": { @@ -123904,30 +123716,30 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] } } } }, { - "coverage": null, "guarantee": null, "id": 4, "output_schema": { @@ -123979,64 +123791,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -124088,18 +123899,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 0 + } } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -124151,36 +123962,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 7, "kept": true, @@ -124236,29 +124030,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 8, "output_schema": { @@ -124310,18 +124107,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 10000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -124373,36 +124170,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 8, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 10, "kept": true, @@ -124458,94 +124238,34 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "kind": "summary_agg", - "reduction": "PerEntity" - } - }, - { - "coverage": null, - "guarantee": null, - "id": 11, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + "ASAP": { + "SummaryAgg": { + "child": 9, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 12, + "id": 11, "output_schema": { "closed": true, "fields": [ @@ -124595,116 +124315,20 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" - } - } - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 20000 } } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } } - }, - "guarantee": null, - "id": 13, - "kept": true, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "kind": "summary_agg", - "reduction": "PerEntity" } }, { - "coverage": null, "guarantee": null, - "id": 14, + "id": 12, "output_schema": { "closed": true, "fields": [ @@ -124754,20 +124378,22 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "NonASAP": { + "TimeRange": { + "child": 11, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { - "coverage": null, "guarantee": null, - "id": 15, + "id": 13, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -124781,9 +124407,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -124813,43 +124442,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "ASAP": { + "SummaryAgg": { + "child": 12, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 16, - "kept": true, + "id": 14, "output_schema": { "closed": true, "fields": [ @@ -124863,12 +124487,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -124898,35 +124519,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 30000 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 17, + "id": 15, "output_schema": { "closed": true, "fields": [ @@ -124976,20 +124586,22 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "NonASAP": { + "TimeRange": { + "child": 14, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { - "coverage": null, "guarantee": null, - "id": 18, + "id": 16, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -125003,9 +124615,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -125035,43 +124650,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "ASAP": { + "SummaryAgg": { + "child": 15, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 19, - "kept": true, + "id": 17, "output_schema": { "closed": true, "fields": [ @@ -125085,12 +124695,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -125120,35 +124727,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 40000 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 20, + "id": 18, "output_schema": { "closed": true, "fields": [ @@ -125198,20 +124794,22 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "NonASAP": { + "TimeRange": { + "child": 17, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { - "coverage": null, "guarantee": null, - "id": 21, + "id": 19, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -125225,9 +124823,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -125257,40 +124858,163 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "ASAP": { + "SummaryAgg": { + "child": 18, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ + "guarantee": null, + "id": 20, + "output_schema": { + "closed": true, + "fields": [ { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } - } + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeShift": { + "child": 4, + "shift": { + "at": null, + "offset_ms": 50000 + } } } + } + }, + { + "guarantee": null, + "id": 21, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 20, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } + } + }, + { "guarantee": null, "id": 22, "kept": true, @@ -125346,46 +125070,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 21, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 23, "output_schema": { @@ -125440,11 +125150,21 @@ "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "ASAP": { + "SummaryMerge": { + "children": [ + 7, + 10, + 13, + 16, + 19, + 22 + ] + } + } } }, { - "coverage": null, "guarantee": null, "id": 24, "output_schema": { @@ -125496,23 +125216,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 23 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 25, "output_schema": { @@ -125560,48 +125271,51 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 + "ASAP": { + "SummaryAgg": { + "child": 24, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 26, "output_schema": { @@ -125645,10 +125359,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 25 } } } @@ -139308,7 +139026,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -139360,64 +139077,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -139469,31 +139185,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 2, "output_schema": { @@ -139548,29 +139252,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 3, "output_schema": { @@ -139622,11 +139329,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } } }, { - "coverage": null, "guarantee": null, "id": 4, "output_schema": { @@ -139661,30 +139371,30 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] } } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -139736,64 +139446,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -139845,18 +139554,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 0 + } } } } }, { - "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -139908,36 +139617,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 8, "kept": true, @@ -139993,29 +139685,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -140067,18 +139762,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 10000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 10, "output_schema": { @@ -140130,36 +139825,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 9, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 11, "kept": true, @@ -140215,29 +139893,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 10, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 12, "output_schema": { @@ -140289,18 +139970,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 20000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 13, "output_schema": { @@ -140352,36 +140033,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 12, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 14, "kept": true, @@ -140437,29 +140101,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 13, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 15, "output_schema": { @@ -140511,18 +140178,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 30000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 16, "output_schema": { @@ -140574,36 +140241,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 15, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 17, "kept": true, @@ -140659,29 +140309,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 16, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 18, "output_schema": { @@ -140733,18 +140386,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 40000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 19, "output_schema": { @@ -140796,36 +140449,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 18, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 20, "kept": true, @@ -140881,29 +140517,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 19, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 21, "output_schema": { @@ -140955,18 +140594,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 22, "output_schema": { @@ -141018,36 +140657,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 21, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 23, "kept": true, @@ -141103,46 +140725,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 22, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 24, "output_schema": { @@ -141197,11 +140805,21 @@ "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "ASAP": { + "SummaryMerge": { + "children": [ + 8, + 11, + 14, + 17, + 20, + 23 + ] + } + } } }, { - "coverage": null, "guarantee": null, "id": 25, "output_schema": { @@ -141253,11 +140871,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 24 + } + } } }, { - "coverage": null, "guarantee": null, "id": 26, "output_schema": { @@ -141309,26 +140930,26 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false - } - ], - "kind": "sort", - "partition_by": [ - 2 - ] + "NonASAP": { + "Sort": { + "child": 25, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } } } }, { - "coverage": null, "guarantee": null, "id": 27, "output_schema": { @@ -141380,14 +141001,15 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "limit", - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "NonASAP": { + "Limit": { + "child": 26, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } } } } @@ -153156,7 +152778,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -153208,64 +152829,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -153317,31 +152937,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 2, "output_schema": { @@ -153396,29 +153004,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 3, "output_schema": { @@ -153470,11 +153081,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } } }, { - "coverage": null, "guarantee": null, "id": 4, "output_schema": { @@ -153509,30 +153123,30 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] } } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -153584,64 +153198,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -153693,18 +153306,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 0 + } } } } }, { - "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -153756,36 +153369,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 8, "kept": true, @@ -153841,29 +153437,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -153915,18 +153514,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 10000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 10, "output_schema": { @@ -153978,36 +153577,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 9, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 11, "kept": true, @@ -154063,29 +153645,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 10, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 12, "output_schema": { @@ -154137,18 +153722,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 20000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 13, "output_schema": { @@ -154200,36 +153785,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 12, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 14, "kept": true, @@ -154285,94 +153853,34 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "kind": "summary_agg", - "reduction": "PerEntity" - } - }, - { - "coverage": null, - "guarantee": null, - "id": 15, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + "ASAP": { + "SummaryAgg": { + "child": 13, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 16, + "id": 15, "output_schema": { "closed": true, "fields": [ @@ -154422,116 +153930,20 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" - } - } - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 30000 } } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } } - }, - "guarantee": null, - "id": 17, - "kept": true, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "kind": "summary_agg", - "reduction": "PerEntity" } }, { - "coverage": null, "guarantee": null, - "id": 18, + "id": 16, "output_schema": { "closed": true, "fields": [ @@ -154581,20 +153993,102 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "NonASAP": { + "TimeRange": { + "child": 15, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { - "coverage": null, "guarantee": null, - "id": 19, + "id": 17, + "kept": true, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "SummaryAgg": { + "child": 16, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } + } + }, + { + "guarantee": null, + "id": 18, "output_schema": { "closed": true, "fields": [ @@ -154644,36 +154138,82 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 40000 + } + } } } }, { - "coverage": { - "regions": [ + "guarantee": null, + "id": 19, + "output_schema": { + "closed": true, + "fields": [ { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 18, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } - }, + } + }, + { "guarantee": null, "id": 20, "kept": true, @@ -154729,29 +154269,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 19, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 21, "output_schema": { @@ -154803,18 +154346,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 22, "output_schema": { @@ -154866,36 +154409,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 21, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 23, "kept": true, @@ -154951,46 +154477,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 22, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 24, "output_schema": { @@ -155045,11 +154557,21 @@ "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "ASAP": { + "SummaryMerge": { + "children": [ + 8, + 11, + 14, + 17, + 20, + 23 + ] + } + } } }, { - "coverage": null, "guarantee": null, "id": 25, "output_schema": { @@ -155101,23 +154623,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 24 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 26, "output_schema": { @@ -155165,48 +154678,51 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 + "ASAP": { + "SummaryAgg": { + "child": 25, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 27, "output_schema": { @@ -155250,10 +154766,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 26 } } } @@ -167023,7 +166543,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -167075,64 +166594,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -167184,31 +166702,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 2, "output_schema": { @@ -167263,29 +166769,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 3, "output_schema": { @@ -167337,11 +166846,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } } }, { - "coverage": null, "guarantee": null, "id": 4, "output_schema": { @@ -167376,30 +166888,30 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] } } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -167451,64 +166963,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -167560,18 +167071,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 0 + } } } } }, { - "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -167619,120 +167130,26 @@ ] }, "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" - } - } - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, - "guarantee": null, - "id": 8, - "kept": true, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 9, + "id": 8, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -167746,9 +167163,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -167778,24 +167198,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 10, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -167845,39 +167279,20 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 10000 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 11, - "kept": true, + "id": 10, "output_schema": { "closed": true, "fields": [ @@ -167891,12 +167306,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -167926,35 +167338,26 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeRange": { + "child": 9, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 12, + "id": 11, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -167968,9 +167371,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -168000,24 +167406,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 + "ASAP": { + "SummaryAgg": { + "child": 10, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 13, + "id": 12, "output_schema": { "closed": true, "fields": [ @@ -168067,39 +167487,20 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 20000 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 14, - "kept": true, + "id": 13, "output_schema": { "closed": true, "fields": [ @@ -168113,12 +167514,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -168148,35 +167546,26 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeRange": { + "child": 12, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 15, + "id": 14, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -168190,9 +167579,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -168222,24 +167614,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "ASAP": { + "SummaryAgg": { + "child": 13, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 16, + "id": 15, "output_schema": { "closed": true, "fields": [ @@ -168289,39 +167695,20 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 30000 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 17, - "kept": true, + "id": 16, "output_schema": { "closed": true, "fields": [ @@ -168335,12 +167722,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -168370,35 +167754,26 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeRange": { + "child": 15, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 18, + "id": 17, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -168412,9 +167787,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -168444,24 +167822,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "ASAP": { + "SummaryAgg": { + "child": 16, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 19, + "id": 18, "output_schema": { "closed": true, "fields": [ @@ -168511,36 +167903,82 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 40000 + } + } } } }, { - "coverage": { - "regions": [ + "guarantee": null, + "id": 19, + "output_schema": { + "closed": true, + "fields": [ { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 18, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } - }, + } + }, + { "guarantee": null, "id": 20, "kept": true, @@ -168596,29 +168034,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 19, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 21, "output_schema": { @@ -168670,18 +168111,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 22, "output_schema": { @@ -168733,36 +168174,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 21, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 23, "kept": true, @@ -168818,46 +168242,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 22, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 24, "output_schema": { @@ -168912,11 +168322,21 @@ "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "ASAP": { + "SummaryMerge": { + "children": [ + 8, + 11, + 14, + 17, + 20, + 23 + ] + } + } } }, { - "coverage": null, "guarantee": null, "id": 25, "output_schema": { @@ -168968,23 +168388,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 24 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 26, "output_schema": { @@ -169032,48 +168443,51 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 + "ASAP": { + "SummaryAgg": { + "child": 25, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 27, "output_schema": { @@ -169117,10 +168531,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 26 } } } @@ -182877,7 +182295,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -182929,64 +182346,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -183038,19 +182454,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": null, "guarantee": null, "id": 2, "output_schema": { @@ -183102,37 +182518,25 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 3, "output_schema": { @@ -183170,33 +182574,36 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 2, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 4, "output_schema": { @@ -183231,11 +182638,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -183287,64 +182697,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -183396,20 +182805,85 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } + }, + { + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { - "coverage": null, "guarantee": null, - "id": 7, + "id": 8, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -183423,9 +182897,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -183455,43 +182932,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 8, - "kept": true, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -183505,12 +182977,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -183540,35 +183009,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 10000 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 9, + "id": 10, "output_schema": { "closed": true, "fields": [ @@ -183618,20 +183076,22 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "NonASAP": { + "TimeRange": { + "child": 9, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { - "coverage": null, "guarantee": null, - "id": 10, + "id": 11, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -183645,9 +183105,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -183677,43 +183140,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "ASAP": { + "SummaryAgg": { + "child": 10, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 11, - "kept": true, + "id": 12, "output_schema": { "closed": true, "fields": [ @@ -183727,12 +183185,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -183762,35 +183217,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 20000 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 12, + "id": 13, "output_schema": { "closed": true, "fields": [ @@ -183840,20 +183284,22 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 + "NonASAP": { + "TimeRange": { + "child": 12, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { - "coverage": null, "guarantee": null, - "id": 13, + "id": 14, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -183867,9 +183313,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -183899,43 +183348,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "ASAP": { + "SummaryAgg": { + "child": 13, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 14, - "kept": true, + "id": 15, "output_schema": { "closed": true, "fields": [ @@ -183949,12 +183393,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -183984,35 +183425,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 30000 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 15, + "id": 16, "output_schema": { "closed": true, "fields": [ @@ -184062,20 +183492,22 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "NonASAP": { + "TimeRange": { + "child": 15, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { - "coverage": null, "guarantee": null, - "id": 16, + "id": 17, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -184089,9 +183521,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -184121,118 +183556,36 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" - } - } - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, - "guarantee": null, - "id": 17, - "kept": true, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { + "ASAP": { + "SummaryAgg": { + "child": 16, + "family": { "ExactAggregate": [ "Sum", "Sum" ] }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 18, "output_schema": { @@ -184284,18 +183637,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 40000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 19, "output_schema": { @@ -184347,36 +183700,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 18, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 20, "kept": true, @@ -184432,29 +183768,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 19, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 21, "output_schema": { @@ -184506,18 +183845,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 22, "output_schema": { @@ -184569,36 +183908,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 21, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 23, "kept": true, @@ -184654,46 +183976,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 22, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 24, "output_schema": { @@ -184748,11 +184056,21 @@ "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "ASAP": { + "SummaryMerge": { + "children": [ + 8, + 11, + 14, + 17, + 20, + 23 + ] + } + } } }, { - "coverage": null, "guarantee": null, "id": 25, "output_schema": { @@ -184804,11 +184122,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 24 + } + } } }, { - "coverage": null, "guarantee": null, "id": 26, "output_schema": { @@ -184860,26 +184181,26 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false - } - ], - "kind": "sort", - "partition_by": [ - 2 - ] + "NonASAP": { + "Sort": { + "child": 25, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } } } }, { - "coverage": null, "guarantee": null, "id": 27, "output_schema": { @@ -184931,14 +184252,15 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "limit", - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "NonASAP": { + "Limit": { + "child": 26, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } } } } @@ -196550,7 +195872,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -196602,64 +195923,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -196711,19 +196031,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": null, "guarantee": null, "id": 2, "output_schema": { @@ -196775,37 +196095,25 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 3, "output_schema": { @@ -196843,33 +196151,36 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 2, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 4, "output_schema": { @@ -196904,11 +196215,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -196960,64 +196274,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -197069,18 +196382,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 0 + } } } } }, { - "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -197128,120 +196441,26 @@ ] }, "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" - } - } - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, - "guarantee": null, - "id": 8, - "kept": true, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 9, + "id": 8, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -197255,9 +196474,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -197287,24 +196509,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 10, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -197354,39 +196590,20 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 10000 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 11, - "kept": true, + "id": 10, "output_schema": { "closed": true, "fields": [ @@ -197400,12 +196617,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -197435,35 +196649,26 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeRange": { + "child": 9, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 12, + "id": 11, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -197477,9 +196682,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -197509,24 +196717,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 + "ASAP": { + "SummaryAgg": { + "child": 10, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 13, + "id": 12, "output_schema": { "closed": true, "fields": [ @@ -197576,39 +196798,20 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 20000 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 14, - "kept": true, + "id": 13, "output_schema": { "closed": true, "fields": [ @@ -197622,12 +196825,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -197657,35 +196857,26 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeRange": { + "child": 12, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 15, + "id": 14, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -197699,9 +196890,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -197731,24 +196925,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "ASAP": { + "SummaryAgg": { + "child": 13, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 16, + "id": 15, "output_schema": { "closed": true, "fields": [ @@ -197798,39 +197006,20 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 30000 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 17, - "kept": true, + "id": 16, "output_schema": { "closed": true, "fields": [ @@ -197844,12 +197033,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -197879,35 +197065,26 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeRange": { + "child": 15, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 18, + "id": 17, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -197921,9 +197098,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -197953,24 +197133,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "ASAP": { + "SummaryAgg": { + "child": 16, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 19, + "id": 18, "output_schema": { "closed": true, "fields": [ @@ -198020,36 +197214,82 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 40000 + } + } } } }, { - "coverage": { - "regions": [ + "guarantee": null, + "id": 19, + "output_schema": { + "closed": true, + "fields": [ { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 18, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } - }, + } + }, + { "guarantee": null, "id": 20, "kept": true, @@ -198105,29 +197345,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 19, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 21, "output_schema": { @@ -198179,18 +197422,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 22, "output_schema": { @@ -198242,36 +197485,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 21, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 23, "kept": true, @@ -198327,46 +197553,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 22, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 24, "output_schema": { @@ -198421,11 +197633,21 @@ "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "ASAP": { + "SummaryMerge": { + "children": [ + 8, + 11, + 14, + 17, + 20, + 23 + ] + } + } } }, { - "coverage": null, "guarantee": null, "id": 25, "output_schema": { @@ -198477,23 +197699,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 24 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 26, "output_schema": { @@ -198541,48 +197754,51 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 + "ASAP": { + "SummaryAgg": { + "child": 25, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 27, "output_schema": { @@ -198626,10 +197842,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 26 } } } @@ -210242,7 +209462,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -210294,64 +209513,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -210403,19 +209621,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": null, "guarantee": null, "id": 2, "output_schema": { @@ -210467,37 +209685,25 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 3, "output_schema": { @@ -210535,33 +209741,36 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 2, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 4, "output_schema": { @@ -210596,11 +209805,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -210652,64 +209864,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -210761,18 +209972,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 0 + } } } } }, { - "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -210820,120 +210031,26 @@ ] }, "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" - } - } - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, - "guarantee": null, - "id": 8, - "kept": true, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 9, + "id": 8, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -210947,9 +210064,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -210979,24 +210099,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 10, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -211046,39 +210180,20 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 10000 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 11, - "kept": true, + "id": 10, "output_schema": { "closed": true, "fields": [ @@ -211092,12 +210207,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -211127,35 +210239,26 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeRange": { + "child": 9, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 12, + "id": 11, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -211169,9 +210272,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -211201,24 +210307,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 + "ASAP": { + "SummaryAgg": { + "child": 10, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 13, + "id": 12, "output_schema": { "closed": true, "fields": [ @@ -211268,39 +210388,20 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 20000 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 14, - "kept": true, + "id": 13, "output_schema": { "closed": true, "fields": [ @@ -211314,12 +210415,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -211349,35 +210447,26 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeRange": { + "child": 12, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 15, + "id": 14, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -211391,9 +210480,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -211423,24 +210515,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "ASAP": { + "SummaryAgg": { + "child": 13, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 16, + "id": 15, "output_schema": { "closed": true, "fields": [ @@ -211490,39 +210596,20 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 30000 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 17, - "kept": true, + "id": 16, "output_schema": { "closed": true, "fields": [ @@ -211536,12 +210623,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -211571,35 +210655,26 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeRange": { + "child": 15, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 18, + "id": 17, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -211613,9 +210688,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -211645,24 +210723,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "ASAP": { + "SummaryAgg": { + "child": 16, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 19, + "id": 18, "output_schema": { "closed": true, "fields": [ @@ -211712,36 +210804,82 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 40000 + } + } } } }, { - "coverage": { - "regions": [ + "guarantee": null, + "id": 19, + "output_schema": { + "closed": true, + "fields": [ { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 18, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } - }, + } + }, + { "guarantee": null, "id": 20, "kept": true, @@ -211797,29 +210935,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 19, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 21, "output_schema": { @@ -211871,18 +211012,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "NonASAP": { + "TimeShift": { + "child": 5, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 22, "output_schema": { @@ -211934,36 +211075,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 21, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 23, "kept": true, @@ -212019,46 +211143,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 22, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 24, "output_schema": { @@ -212113,11 +211223,21 @@ "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "ASAP": { + "SummaryMerge": { + "children": [ + 8, + 11, + 14, + 17, + 20, + 23 + ] + } + } } }, { - "coverage": null, "guarantee": null, "id": 25, "output_schema": { @@ -212169,23 +211289,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 24 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 26, "output_schema": { @@ -212233,48 +211344,51 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 + "ASAP": { + "SummaryAgg": { + "child": 25, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 27, "output_schema": { @@ -212318,10 +211432,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 26 } } } @@ -226574,7 +225692,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -226626,64 +225743,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -226735,31 +225851,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 2, "output_schema": { @@ -226814,29 +225918,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 3, "output_schema": { @@ -226888,23 +225995,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 4, "output_schema": { @@ -226942,33 +226040,36 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -227003,11 +226104,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -227059,64 +226163,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -227168,20 +226271,85 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } + }, + { + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 7, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { - "coverage": null, "guarantee": null, - "id": 8, + "id": 9, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -227195,9 +226363,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -227227,43 +226398,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "ASAP": { + "SummaryAgg": { + "child": 8, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 9, - "kept": true, + "id": 10, "output_schema": { "closed": true, "fields": [ @@ -227277,12 +226443,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -227312,35 +226475,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 10000 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 10, + "id": 11, "output_schema": { "closed": true, "fields": [ @@ -227390,20 +226542,22 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "NonASAP": { + "TimeRange": { + "child": 10, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { - "coverage": null, "guarantee": null, - "id": 11, + "id": 12, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -227417,9 +226571,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -227449,43 +226606,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "ASAP": { + "SummaryAgg": { + "child": 11, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 12, - "kept": true, + "id": 13, "output_schema": { "closed": true, "fields": [ @@ -227499,12 +226651,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -227534,35 +226683,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 20000 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 13, + "id": 14, "output_schema": { "closed": true, "fields": [ @@ -227612,20 +226750,22 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 + "NonASAP": { + "TimeRange": { + "child": 13, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { - "coverage": null, "guarantee": null, - "id": 14, + "id": 15, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -227639,9 +226779,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -227671,43 +226814,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "ASAP": { + "SummaryAgg": { + "child": 14, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 15, - "kept": true, + "id": 16, "output_schema": { "closed": true, "fields": [ @@ -227721,12 +226859,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -227756,35 +226891,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 30000 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 16, + "id": 17, "output_schema": { "closed": true, "fields": [ @@ -227834,20 +226958,22 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "NonASAP": { + "TimeRange": { + "child": 16, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { - "coverage": null, "guarantee": null, - "id": 17, + "id": 18, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -227861,9 +226987,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -227893,118 +227022,36 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" - } - } - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, - "guarantee": null, - "id": 18, - "kept": true, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { + "ASAP": { + "SummaryAgg": { + "child": 17, + "family": { "ExactAggregate": [ "Sum", "Sum" ] }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 19, "output_schema": { @@ -228056,18 +227103,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 40000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 20, "output_schema": { @@ -228119,36 +227166,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 19, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 21, "kept": true, @@ -228204,29 +227234,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 20, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 22, "output_schema": { @@ -228278,18 +227311,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 23, "output_schema": { @@ -228341,36 +227374,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 22, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 24, "kept": true, @@ -228426,46 +227442,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 23, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 25, "output_schema": { @@ -228520,11 +227522,21 @@ "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "ASAP": { + "SummaryMerge": { + "children": [ + 9, + 12, + 15, + 18, + 21, + 24 + ] + } + } } }, { - "coverage": null, "guarantee": null, "id": 26, "output_schema": { @@ -228576,11 +227588,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 25 + } + } } }, { - "coverage": null, "guarantee": null, "id": 27, "output_schema": { @@ -228632,26 +227647,26 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false - } - ], - "kind": "sort", - "partition_by": [ - 2 - ] + "NonASAP": { + "Sort": { + "child": 26, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } } } }, { - "coverage": null, "guarantee": null, "id": 28, "output_schema": { @@ -228703,14 +227718,15 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "limit", - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "NonASAP": { + "Limit": { + "child": 27, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } } } } @@ -240888,7 +239904,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -240940,64 +239955,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -241049,31 +240063,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 2, "output_schema": { @@ -241128,29 +240130,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 3, "output_schema": { @@ -241202,23 +240207,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 4, "output_schema": { @@ -241256,33 +240252,36 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -241317,11 +240316,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -241373,64 +240375,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -241482,18 +240483,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 0 + } } } } }, { - "coverage": null, "guarantee": null, "id": 8, "output_schema": { @@ -241541,120 +240542,26 @@ ] }, "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" - } - } - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, - "guarantee": null, - "id": 9, - "kept": true, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeRange": { + "child": 7, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 10, + "id": 9, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -241668,9 +240575,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -241700,24 +240610,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "ASAP": { + "SummaryAgg": { + "child": 8, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 11, + "id": 10, "output_schema": { "closed": true, "fields": [ @@ -241767,39 +240691,20 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 10000 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 12, - "kept": true, + "id": 11, "output_schema": { "closed": true, "fields": [ @@ -241813,12 +240718,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -241848,35 +240750,26 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeRange": { + "child": 10, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 13, + "id": 12, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -241890,9 +240783,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -241922,24 +240818,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 + "ASAP": { + "SummaryAgg": { + "child": 11, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 14, + "id": 13, "output_schema": { "closed": true, "fields": [ @@ -241989,39 +240899,20 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 20000 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 15, - "kept": true, + "id": 14, "output_schema": { "closed": true, "fields": [ @@ -242035,12 +240926,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -242070,35 +240958,26 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeRange": { + "child": 13, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 16, + "id": 15, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -242112,9 +240991,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -242144,24 +241026,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "ASAP": { + "SummaryAgg": { + "child": 14, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 17, + "id": 16, "output_schema": { "closed": true, "fields": [ @@ -242211,39 +241107,20 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 30000 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 18, - "kept": true, + "id": 17, "output_schema": { "closed": true, "fields": [ @@ -242257,12 +241134,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -242292,35 +241166,26 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeRange": { + "child": 16, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 19, + "id": 18, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -242334,9 +241199,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -242366,24 +241234,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "ASAP": { + "SummaryAgg": { + "child": 17, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 20, + "id": 19, "output_schema": { "closed": true, "fields": [ @@ -242433,36 +241315,82 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 40000 + } + } } } }, { - "coverage": { - "regions": [ + "guarantee": null, + "id": 20, + "output_schema": { + "closed": true, + "fields": [ { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 19, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } - }, + } + }, + { "guarantee": null, "id": 21, "kept": true, @@ -242518,29 +241446,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 20, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 22, "output_schema": { @@ -242592,18 +241523,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 23, "output_schema": { @@ -242655,36 +241586,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 22, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 24, "kept": true, @@ -242740,46 +241654,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 23, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 25, "output_schema": { @@ -242834,11 +241734,21 @@ "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "ASAP": { + "SummaryMerge": { + "children": [ + 9, + 12, + 15, + 18, + 21, + 24 + ] + } + } } }, { - "coverage": null, "guarantee": null, "id": 26, "output_schema": { @@ -242890,23 +241800,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 25 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 27, "output_schema": { @@ -242954,48 +241855,51 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 + "ASAP": { + "SummaryAgg": { + "child": 26, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 28, "output_schema": { @@ -243039,10 +241943,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 27 } } } @@ -255221,7 +254129,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -255273,64 +254180,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -255382,31 +254288,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 2, "output_schema": { @@ -255461,29 +254355,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 3, "output_schema": { @@ -255535,23 +254432,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 4, "output_schema": { @@ -255589,33 +254477,36 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -255650,11 +254541,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -255706,64 +254600,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -255815,99 +254708,82 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - }, - { - "coverage": null, - "guarantee": null, - "id": 8, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 0 + } + } } } }, { - "coverage": { - "regions": [ + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 - } - } + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 7, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } - }, + } + }, + { "guarantee": null, "id": 9, "kept": true, @@ -255963,29 +254839,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 8, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 10, "output_schema": { @@ -256037,18 +254916,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 10000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 11, "output_schema": { @@ -256100,36 +254979,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 10, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 12, "kept": true, @@ -256185,29 +255047,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 11, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 13, "output_schema": { @@ -256259,18 +255124,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 20000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 14, "output_schema": { @@ -256322,36 +255187,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 13, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 15, "kept": true, @@ -256407,29 +255255,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 14, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 16, "output_schema": { @@ -256481,18 +255332,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 30000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 17, "output_schema": { @@ -256544,36 +255395,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 16, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 18, "kept": true, @@ -256629,29 +255463,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 17, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 19, "output_schema": { @@ -256703,18 +255540,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 40000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 20, "output_schema": { @@ -256766,36 +255603,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 19, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 21, "kept": true, @@ -256851,29 +255671,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 20, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 22, "output_schema": { @@ -256925,18 +255748,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "NonASAP": { + "TimeShift": { + "child": 6, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 23, "output_schema": { @@ -256988,36 +255811,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 22, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 24, "kept": true, @@ -257073,46 +255879,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 23, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 25, "output_schema": { @@ -257167,11 +255959,21 @@ "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "ASAP": { + "SummaryMerge": { + "children": [ + 9, + 12, + 15, + 18, + 21, + 24 + ] + } + } } }, { - "coverage": null, "guarantee": null, "id": 26, "output_schema": { @@ -257223,23 +256025,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 25 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 27, "output_schema": { @@ -257287,48 +256080,51 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 + "ASAP": { + "SummaryAgg": { + "child": 26, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 28, "output_schema": { @@ -257372,10 +256168,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 27 } } } @@ -270170,72 +268970,14 @@ ] ] }, - "producer": 21, - "role": "Input", - "window": "NotApplicable" - }, - { - "consumer": 23, - "data_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "producer": 22, + "producer": 21, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 23, "data_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "grouping": "NotApplicable", @@ -270252,9 +268994,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -270283,12 +269028,12 @@ ] ] }, - "producer": 23, + "producer": 22, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 24, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -270338,17 +269083,18 @@ ] ] }, - "producer": 24, + "producer": 23, "role": "Input", "window": "NotApplicable" - } - ], - "nodes": [ + }, { - "coverage": null, - "guarantee": null, - "id": 0, - "output_schema": { + "consumer": 25, + "data_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -270392,71 +269138,15 @@ ] ] }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, + "producer": 24, + "role": "Input", + "window": "NotApplicable" + } + ], + "nodes": [ { - "coverage": null, "guarantee": null, - "id": 1, + "id": 0, "output_schema": { "closed": true, "fields": [ @@ -270506,21 +269196,65 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } } } }, { - "coverage": null, "guarantee": null, - "id": 2, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -270570,85 +269304,21 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - { - "coverage": null, - "guarantee": null, - "id": 3, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "sum", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] } } } }, { - "coverage": null, "guarantee": null, - "id": 4, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -270698,39 +269368,30 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 5, + "id": 3, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -270741,17 +269402,16 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -270761,39 +269421,32 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" - } - } - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } } - }, + } + }, + { "guarantee": null, - "id": 6, - "kept": true, + "id": 4, "output_schema": { "closed": true, "fields": [ @@ -270807,12 +269460,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -270842,35 +269492,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 0 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 7, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -270920,20 +269559,22 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "NonASAP": { + "TimeRange": { + "child": 4, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { - "coverage": null, "guarantee": null, - "id": 8, + "id": 6, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -270947,9 +269588,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -270979,43 +269623,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "ASAP": { + "SummaryAgg": { + "child": 5, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 9, - "kept": true, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -271029,12 +269668,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -271064,35 +269700,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 10000 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 10, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -271142,20 +269767,22 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 + "NonASAP": { + "TimeRange": { + "child": 7, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { - "coverage": null, "guarantee": null, - "id": 11, + "id": 9, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -271169,9 +269796,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -271201,43 +269831,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "ASAP": { + "SummaryAgg": { + "child": 8, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 12, - "kept": true, + "id": 10, "output_schema": { "closed": true, "fields": [ @@ -271251,12 +269876,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -271286,35 +269908,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 20000 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 13, + "id": 11, "output_schema": { "closed": true, "fields": [ @@ -271364,20 +269975,22 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "NonASAP": { + "TimeRange": { + "child": 10, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { - "coverage": null, "guarantee": null, - "id": 14, + "id": 12, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -271391,9 +270004,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -271423,43 +270039,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "ASAP": { + "SummaryAgg": { + "child": 11, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 15, - "kept": true, + "id": 13, "output_schema": { "closed": true, "fields": [ @@ -271473,12 +270084,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -271508,35 +270116,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 30000 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 16, + "id": 14, "output_schema": { "closed": true, "fields": [ @@ -271586,20 +270183,22 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "NonASAP": { + "TimeRange": { + "child": 13, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { - "coverage": null, "guarantee": null, - "id": 17, + "id": 15, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -271613,9 +270212,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -271645,43 +270247,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "ASAP": { + "SummaryAgg": { + "child": 14, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 18, - "kept": true, + "id": 16, "output_schema": { "closed": true, "fields": [ @@ -271695,12 +270292,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -271730,35 +270324,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 40000 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 19, + "id": 17, "output_schema": { "closed": true, "fields": [ @@ -271808,20 +270391,22 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "NonASAP": { + "TimeRange": { + "child": 16, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { - "coverage": null, "guarantee": null, - "id": 20, + "id": 18, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -271835,9 +270420,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -271867,43 +270455,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "ASAP": { + "SummaryAgg": { + "child": 17, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 21, - "kept": true, + "id": 19, "output_schema": { "closed": true, "fields": [ @@ -271917,12 +270500,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -271952,52 +270532,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 50000 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 22, + "id": 20, "output_schema": { "closed": true, "fields": [ @@ -272011,12 +270563,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -272046,17 +270595,26 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "NonASAP": { + "TimeRange": { + "child": 19, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } + } } }, { - "coverage": null, "guarantee": null, - "id": 23, + "id": 21, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -272070,9 +270628,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -272102,17 +270663,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "SummaryAgg": { + "child": 20, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } + } } }, { - "coverage": null, "guarantee": null, - "id": 24, + "id": 22, "output_schema": { "closed": true, "fields": [ @@ -272126,9 +270708,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -272158,32 +270743,27 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false - } - ], - "kind": "sort", - "partition_by": [ - 2 - ] + "ASAP": { + "SummaryMerge": { + "children": [ + 6, + 9, + 12, + 15, + 18, + 21 + ] + } } } }, { - "coverage": null, "guarantee": null, - "id": 25, + "id": 23, "output_schema": { "closed": true, "fields": [ @@ -272233,14 +270813,145 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "limit", - "n": 10, - "offset": 0, - "partition_by": [ - 2 + "ASAP": { + "FinalizeExactAccumulator": { + "child": 22 + } + } + } + }, + { + "guarantee": null, + "id": 24, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Sort": { + "child": 23, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } + } + } + }, + { + "guarantee": null, + "id": 25, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Limit": { + "child": 24, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } } } } @@ -282881,7 +281592,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -282933,64 +281643,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -283042,40 +281751,94 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } } } }, { - "coverage": null, "guarantee": null, - "id": 2, + "id": 3, "output_schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -283086,17 +281849,16 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, + "time_index": null, "unique_keys": [ [ - 3, 0 ] ] @@ -283106,30 +281868,51 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + } } } }, { - "coverage": null, "guarantee": null, - "id": 3, + "id": 4, "output_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -283140,16 +281923,17 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, + "time_index": 0, "unique_keys": [ [ + 3, 0 ] ] @@ -283159,32 +281943,20 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 0 } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] } } } }, { - "coverage": null, "guarantee": null, - "id": 4, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -283234,20 +282006,22 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 + "NonASAP": { + "TimeRange": { + "child": 4, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { - "coverage": null, "guarantee": null, - "id": 5, + "id": 6, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -283261,9 +282035,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -283293,43 +282070,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "ASAP": { + "SummaryAgg": { + "child": 5, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 6, - "kept": true, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -283343,12 +282115,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -283378,35 +282147,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 10000 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 7, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -283456,20 +282214,22 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "NonASAP": { + "TimeRange": { + "child": 7, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { - "coverage": null, "guarantee": null, - "id": 8, + "id": 9, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -283483,9 +282243,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -283515,43 +282278,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "ASAP": { + "SummaryAgg": { + "child": 8, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 9, - "kept": true, + "id": 10, "output_schema": { "closed": true, "fields": [ @@ -283565,12 +282323,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -283600,35 +282355,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 20000 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 10, + "id": 11, "output_schema": { "closed": true, "fields": [ @@ -283678,99 +282422,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 - } - } - } - }, - { - "coverage": null, - "guarantee": null, - "id": 11, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null + "NonASAP": { + "TimeRange": { + "child": 10, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 12, "kept": true, @@ -283826,29 +282490,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 11, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 13, "output_schema": { @@ -283900,18 +282567,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 30000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 14, "output_schema": { @@ -283963,36 +282630,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 13, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 15, "kept": true, @@ -284048,29 +282698,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 14, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 16, "output_schema": { @@ -284122,18 +282775,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 40000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 17, "output_schema": { @@ -284185,36 +282838,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 16, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 18, "kept": true, @@ -284270,94 +282906,34 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "kind": "summary_agg", - "reduction": "PerEntity" - } - }, - { - "coverage": null, - "guarantee": null, - "id": 19, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + "ASAP": { + "SummaryAgg": { + "child": 17, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 20, + "id": 19, "output_schema": { "closed": true, "fields": [ @@ -284407,36 +282983,82 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 50000 + } + } } } }, { - "coverage": { - "regions": [ + "guarantee": null, + "id": 20, + "output_schema": { + "closed": true, + "fields": [ { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } - } + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 19, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } - }, + } + }, + { "guarantee": null, "id": 21, "kept": true, @@ -284492,46 +283114,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 20, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 22, "output_schema": { @@ -284586,11 +283194,21 @@ "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "ASAP": { + "SummaryMerge": { + "children": [ + 6, + 9, + 12, + 15, + 18, + 21 + ] + } + } } }, { - "coverage": null, "guarantee": null, "id": 23, "output_schema": { @@ -284642,23 +283260,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 22 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 24, "output_schema": { @@ -284706,48 +283315,51 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 + "ASAP": { + "SummaryAgg": { + "child": 23, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 25, "output_schema": { @@ -284791,10 +283403,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 24 } } } @@ -295436,7 +294052,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -295488,64 +294103,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -295597,19 +294211,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": null, "guarantee": null, "id": 2, "output_schema": { @@ -295661,25 +294275,25 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } } } }, { - "coverage": null, "guarantee": null, "id": 3, "output_schema": { @@ -295714,30 +294328,30 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] } } } }, { - "coverage": null, "guarantee": null, "id": 4, "output_schema": { @@ -295789,18 +294403,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 0 + } } } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -295852,36 +294466,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 4, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 6, "kept": true, @@ -295937,29 +294534,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 5, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -296011,18 +294611,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 10000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 8, "output_schema": { @@ -296074,36 +294674,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 7, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 9, "kept": true, @@ -296159,29 +294742,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 8, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 10, "output_schema": { @@ -296233,18 +294819,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 20000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 11, "output_schema": { @@ -296296,36 +294882,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 10, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 12, "kept": true, @@ -296381,29 +294950,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 11, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 13, "output_schema": { @@ -296455,18 +295027,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 30000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 14, "output_schema": { @@ -296518,36 +295090,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 13, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 15, "kept": true, @@ -296603,29 +295158,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 14, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 16, "output_schema": { @@ -296677,18 +295235,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 40000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 17, "output_schema": { @@ -296740,36 +295298,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 16, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 18, "kept": true, @@ -296825,29 +295366,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 17, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 19, "output_schema": { @@ -296899,18 +295443,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 20, "output_schema": { @@ -296962,36 +295506,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 19, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 21, "kept": true, @@ -297047,46 +295574,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 20, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 22, "output_schema": { @@ -297141,11 +295654,21 @@ "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "ASAP": { + "SummaryMerge": { + "children": [ + 6, + 9, + 12, + 15, + 18, + 21 + ] + } + } } }, { - "coverage": null, "guarantee": null, "id": 23, "output_schema": { @@ -297197,23 +295720,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 22 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 24, "output_schema": { @@ -297261,48 +295775,51 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 + "ASAP": { + "SummaryAgg": { + "child": 23, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 25, "output_schema": { @@ -297346,10 +295863,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 24 } } } @@ -309528,7 +308049,65 @@ ] ] }, - "producer": 7, + "producer": 7, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 23, + "data_state": { + "primitive": "SummaryState", + "timing": "query_time" + }, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "producer": 10, "role": "Input", "window": "NotApplicable" }, @@ -309586,7 +308165,7 @@ ] ] }, - "producer": 10, + "producer": 13, "role": "Input", "window": "NotApplicable" }, @@ -309644,7 +308223,7 @@ ] ] }, - "producer": 13, + "producer": 16, "role": "Input", "window": "NotApplicable" }, @@ -309702,7 +308281,7 @@ ] ] }, - "producer": 16, + "producer": 19, "role": "Input", "window": "NotApplicable" }, @@ -309760,12 +308339,12 @@ ] ] }, - "producer": 19, + "producer": 22, "role": "Input", "window": "NotApplicable" }, { - "consumer": 23, + "consumer": 24, "data_state": { "primitive": "SummaryState", "timing": "query_time" @@ -309818,14 +308397,14 @@ ] ] }, - "producer": 22, + "producer": 23, "role": "Input", "window": "NotApplicable" }, { - "consumer": 24, + "consumer": 25, "data_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "grouping": "NotApplicable", @@ -309842,12 +308421,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -309876,12 +308452,12 @@ ] ] }, - "producer": 23, + "producer": 24, "role": "Input", "window": "NotApplicable" }, { - "consumer": 25, + "consumer": 26, "data_state": { "primitive": "Raw", "timing": "query_time" @@ -309931,18 +308507,16 @@ ] ] }, - "producer": 24, + "producer": 25, "role": "Input", "window": "NotApplicable" - }, + } + ], + "nodes": [ { - "consumer": 26, - "data_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "id": 0, + "output_schema": { "closed": true, "fields": [ { @@ -309986,16 +308560,70 @@ ] ] }, - "producer": 25, - "role": "Input", - "window": "NotApplicable" - } - ], - "nodes": [ + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + } + }, { - "coverage": null, "guarantee": null, - "id": 0, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -310045,66 +308673,21 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } } }, { - "coverage": null, "guarantee": null, - "id": 1, + "id": 2, "output_schema": { "closed": true, "fields": [ @@ -310118,9 +308701,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -310150,37 +308736,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 2, + "id": 3, "output_schema": { "closed": true, "fields": [ @@ -310194,12 +308781,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -310229,35 +308813,78 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + } + }, + { + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "weight_domain": { - "kind": "unknown_or_signed" + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } } }, { - "coverage": null, "guarantee": null, - "id": 3, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -310307,132 +308934,18 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" - } - }, - { - "coverage": null, - "guarantee": null, - "id": 4, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "sum", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 0 } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] } } } }, { - "coverage": null, - "guarantee": null, - "id": 5, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - }, - { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -310484,36 +308997,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 7, "kept": true, @@ -310569,29 +309065,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 8, "output_schema": { @@ -310643,18 +309142,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 10000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -310706,36 +309205,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 8, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 10, "kept": true, @@ -310791,29 +309273,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 9, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 11, "output_schema": { @@ -310865,18 +309350,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 20000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 12, "output_schema": { @@ -310928,36 +309413,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 11, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 13, "kept": true, @@ -311013,29 +309481,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 12, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 14, "output_schema": { @@ -311087,18 +309558,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 30000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 15, "output_schema": { @@ -311150,36 +309621,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 14, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 16, "kept": true, @@ -311235,29 +309689,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 15, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 17, "output_schema": { @@ -311309,18 +309766,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 40000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 18, "output_schema": { @@ -311372,36 +309829,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 17, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 19, "kept": true, @@ -311457,29 +309897,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 18, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 20, "output_schema": { @@ -311531,18 +309974,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 21, "output_schema": { @@ -311594,36 +310037,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 20, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 22, "kept": true, @@ -311679,46 +310105,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 21, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 23, "output_schema": { @@ -311773,11 +310185,21 @@ "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "ASAP": { + "SummaryMerge": { + "children": [ + 7, + 10, + 13, + 16, + 19, + 22 + ] + } + } } }, { - "coverage": null, "guarantee": null, "id": 24, "output_schema": { @@ -311829,11 +310251,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 23 + } + } } }, { - "coverage": null, "guarantee": null, "id": 25, "output_schema": { @@ -311885,85 +310310,86 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false - } - ], - "kind": "sort", - "partition_by": [ - 2 - ] - } - } - }, - { - "coverage": null, - "guarantee": null, - "id": 26, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null + "NonASAP": { + "Sort": { + "child": 24, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } + } + } + }, + { + "guarantee": null, + "id": 26, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Limit": { + "child": 25, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "limit", - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] } } } @@ -323170,7 +321596,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -323222,64 +321647,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -323331,31 +321755,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 2, "output_schema": { @@ -323410,29 +321822,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 3, "output_schema": { @@ -323484,11 +321899,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } } }, { - "coverage": null, "guarantee": null, "id": 4, "output_schema": { @@ -323523,30 +321941,30 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] } } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -323598,99 +322016,82 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 - } - } - } - }, - { - "coverage": null, - "guarantee": null, - "id": 6, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 0 + } + } } } }, { - "coverage": { - "regions": [ + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 - } - } + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } - }, + } + }, + { "guarantee": null, "id": 7, "kept": true, @@ -323746,29 +322147,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 8, "output_schema": { @@ -323820,18 +322224,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 10000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -323883,36 +322287,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 8, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 10, "kept": true, @@ -323968,29 +322355,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 9, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 11, "output_schema": { @@ -324042,18 +322432,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 20000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 12, "output_schema": { @@ -324105,36 +322495,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 11, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 13, "kept": true, @@ -324190,29 +322563,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 12, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 14, "output_schema": { @@ -324264,18 +322640,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 30000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 15, "output_schema": { @@ -324327,36 +322703,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 14, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 16, "kept": true, @@ -324412,29 +322771,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 15, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 17, "output_schema": { @@ -324486,18 +322848,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 40000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 18, "output_schema": { @@ -324549,36 +322911,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 17, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 19, "kept": true, @@ -324634,29 +322979,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 18, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 20, "output_schema": { @@ -324708,18 +323056,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 21, "output_schema": { @@ -324771,36 +323119,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 20, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 22, "kept": true, @@ -324856,46 +323187,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 21, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 23, "output_schema": { @@ -324950,11 +323267,21 @@ "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "ASAP": { + "SummaryMerge": { + "children": [ + 7, + 10, + 13, + 16, + 19, + 22 + ] + } + } } }, { - "coverage": null, "guarantee": null, "id": 24, "output_schema": { @@ -325006,23 +323333,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 23 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 25, "output_schema": { @@ -325070,48 +323388,51 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 + "ASAP": { + "SummaryAgg": { + "child": 24, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 26, "output_schema": { @@ -325155,10 +323476,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 25 } } } @@ -336366,7 +334691,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -336418,64 +334742,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -336527,31 +334850,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 2, "output_schema": { @@ -336606,29 +334917,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 3, "output_schema": { @@ -336680,11 +334994,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } } }, { - "coverage": null, "guarantee": null, "id": 4, "output_schema": { @@ -336719,30 +335036,30 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] } } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -336794,18 +335111,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 0 + } } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -336857,36 +335174,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 7, "kept": true, @@ -336942,29 +335242,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 8, "output_schema": { @@ -337016,18 +335319,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 10000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -337079,36 +335382,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 8, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 10, "kept": true, @@ -337164,29 +335450,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 9, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 11, "output_schema": { @@ -337238,18 +335527,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 20000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 12, "output_schema": { @@ -337301,36 +335590,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 11, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 13, "kept": true, @@ -337382,98 +335654,38 @@ ] }, "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "kind": "summary_agg", - "reduction": "PerEntity" - } - }, - { - "coverage": null, - "guarantee": null, - "id": 14, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "ASAP": { + "SummaryAgg": { + "child": 12, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 15, + "id": 14, "output_schema": { "closed": true, "fields": [ @@ -337523,36 +335735,82 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 30000 + } + } } } }, { - "coverage": { - "regions": [ + "guarantee": null, + "id": 15, + "output_schema": { + "closed": true, + "fields": [ { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } - } + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 14, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } - }, + } + }, + { "guarantee": null, "id": 16, "kept": true, @@ -337608,29 +335866,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 15, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 17, "output_schema": { @@ -337682,18 +335943,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 40000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 18, "output_schema": { @@ -337745,36 +336006,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 17, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 19, "kept": true, @@ -337830,29 +336074,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 18, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 20, "output_schema": { @@ -337904,18 +336151,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 21, "output_schema": { @@ -337967,36 +336214,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 20, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 22, "kept": true, @@ -338052,46 +336282,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 21, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 23, "output_schema": { @@ -338146,11 +336362,21 @@ "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "ASAP": { + "SummaryMerge": { + "children": [ + 7, + 10, + 13, + 16, + 19, + 22 + ] + } + } } }, { - "coverage": null, "guarantee": null, "id": 24, "output_schema": { @@ -338202,23 +336428,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 23 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 25, "output_schema": { @@ -338266,48 +336483,51 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 + "ASAP": { + "SummaryAgg": { + "child": 24, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 26, "output_schema": { @@ -338351,10 +336571,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 25 } } } @@ -351095,7 +349319,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -351147,64 +349370,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -351256,19 +349478,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": null, "guarantee": null, "id": 2, "output_schema": { @@ -351320,37 +349542,25 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 3, "output_schema": { @@ -351388,33 +349598,36 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 2, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 4, "output_schema": { @@ -351449,11 +349662,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -351505,20 +349721,85 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 0 + } + } + } + } + }, + { + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { - "coverage": null, "guarantee": null, - "id": 6, + "id": 7, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -351532,9 +349813,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -351564,43 +349848,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 7, - "kept": true, + "id": 8, "output_schema": { "closed": true, "fields": [ @@ -351614,12 +349893,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -351649,35 +349925,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 10000 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 8, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -351727,20 +349992,22 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "NonASAP": { + "TimeRange": { + "child": 8, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { - "coverage": null, "guarantee": null, - "id": 9, + "id": 10, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -351754,9 +350021,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -351786,43 +350056,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "ASAP": { + "SummaryAgg": { + "child": 9, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 10, - "kept": true, + "id": 11, "output_schema": { "closed": true, "fields": [ @@ -351836,12 +350101,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -351871,35 +350133,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 20000 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 11, + "id": 12, "output_schema": { "closed": true, "fields": [ @@ -351949,20 +350200,22 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 + "NonASAP": { + "TimeRange": { + "child": 11, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { - "coverage": null, "guarantee": null, - "id": 12, + "id": 13, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -351976,9 +350229,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -352008,43 +350264,38 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "ASAP": { + "SummaryAgg": { + "child": 12, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 13, - "kept": true, + "id": 14, "output_schema": { "closed": true, "fields": [ @@ -352058,12 +350309,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -352093,35 +350341,24 @@ ] }, "output_state": { - "primitive": "SummaryState", + "primitive": "Raw", "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 30000 + } } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, - "id": 14, + "id": 15, "output_schema": { "closed": true, "fields": [ @@ -352171,20 +350408,22 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "NonASAP": { + "TimeRange": { + "child": 14, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } } }, { - "coverage": null, "guarantee": null, - "id": 15, + "id": 16, + "kept": true, "output_schema": { "closed": true, "fields": [ @@ -352198,9 +350437,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -352230,118 +350472,36 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" - } - } - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, - "guarantee": null, - "id": 16, - "kept": true, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { + "ASAP": { + "SummaryAgg": { + "child": 15, + "family": { "ExactAggregate": [ "Sum", "Sum" ] }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 17, "output_schema": { @@ -352393,18 +350553,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 40000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 18, "output_schema": { @@ -352456,36 +350616,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 17, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 19, "kept": true, @@ -352541,29 +350684,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 18, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 20, "output_schema": { @@ -352615,18 +350761,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 21, "output_schema": { @@ -352678,36 +350824,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 20, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 22, "kept": true, @@ -352763,46 +350892,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 21, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 23, "output_schema": { @@ -352857,11 +350972,21 @@ "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "ASAP": { + "SummaryMerge": { + "children": [ + 7, + 10, + 13, + 16, + 19, + 22 + ] + } + } } }, { - "coverage": null, "guarantee": null, "id": 24, "output_schema": { @@ -352913,11 +351038,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 23 + } + } } }, { - "coverage": null, "guarantee": null, "id": 25, "output_schema": { @@ -352969,26 +351097,26 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false - } - ], - "kind": "sort", - "partition_by": [ - 2 - ] + "NonASAP": { + "Sort": { + "child": 24, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } } } }, { - "coverage": null, "guarantee": null, "id": 26, "output_schema": { @@ -353040,14 +351168,15 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "limit", - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "NonASAP": { + "Limit": { + "child": 25, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } } } } @@ -364097,7 +362226,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -364149,64 +362277,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -364258,19 +362385,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": null, "guarantee": null, "id": 2, "output_schema": { @@ -364322,37 +362449,25 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 3, "output_schema": { @@ -364390,33 +362505,36 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 2, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 4, "output_schema": { @@ -364451,11 +362569,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -364507,18 +362628,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 0 + } } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -364570,36 +362691,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 7, "kept": true, @@ -364655,29 +362759,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 8, "output_schema": { @@ -364729,18 +362836,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 10000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -364792,36 +362899,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 8, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 10, "kept": true, @@ -364877,29 +362967,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 9, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 11, "output_schema": { @@ -364951,99 +363044,82 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 - } - } - } - }, - { - "coverage": null, - "guarantee": null, - "id": 12, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 20000 + } + } + } + } + }, + { + "guarantee": null, + "id": 12, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 11, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 13, "kept": true, @@ -365099,29 +363175,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 12, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 14, "output_schema": { @@ -365173,18 +363252,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 30000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 15, "output_schema": { @@ -365236,36 +363315,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 14, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 16, "kept": true, @@ -365321,29 +363383,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 15, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 17, "output_schema": { @@ -365395,18 +363460,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 40000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 18, "output_schema": { @@ -365458,36 +363523,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 17, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 19, "kept": true, @@ -365543,94 +363591,34 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "kind": "summary_agg", - "reduction": "PerEntity" - } - }, - { - "coverage": null, - "guarantee": null, - "id": 20, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + "ASAP": { + "SummaryAgg": { + "child": 18, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 21, + "id": 20, "output_schema": { "closed": true, "fields": [ @@ -365680,36 +363668,82 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 50000 + } + } } } }, { - "coverage": { - "regions": [ + "guarantee": null, + "id": 21, + "output_schema": { + "closed": true, + "fields": [ { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } - } + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 20, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } - }, + } + }, + { "guarantee": null, "id": 22, "kept": true, @@ -365765,46 +363799,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 21, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 23, "output_schema": { @@ -365859,11 +363879,21 @@ "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "ASAP": { + "SummaryMerge": { + "children": [ + 7, + 10, + 13, + 16, + 19, + 22 + ] + } + } } }, { - "coverage": null, "guarantee": null, "id": 24, "output_schema": { @@ -365915,23 +363945,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 23 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 25, "output_schema": { @@ -365979,48 +364000,51 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 + "ASAP": { + "SummaryAgg": { + "child": 24, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 26, "output_schema": { @@ -366064,10 +364088,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 25 } } } @@ -377118,7 +375146,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -377170,130 +375197,65 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - { - "coverage": null, - "guarantee": null, - "id": 1, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } } } }, { - "coverage": null, "guarantee": null, - "id": 2, + "id": 1, "output_schema": { "closed": true, "fields": [ @@ -377343,37 +375305,89 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, { - "population": {}, - "time_ms": null + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } } - }, + } + }, + { "guarantee": null, "id": 3, "output_schema": { @@ -377411,33 +375425,36 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 2, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 4, "output_schema": { @@ -377472,11 +375489,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -377528,18 +375548,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 0 + } } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -377591,36 +375611,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 7, "kept": true, @@ -377676,29 +375679,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 6, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 8, "output_schema": { @@ -377750,18 +375756,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 10000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -377813,36 +375819,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 8, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 10, "kept": true, @@ -377898,29 +375887,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 9, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 11, "output_schema": { @@ -377972,18 +375964,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 20000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 12, "output_schema": { @@ -378035,36 +376027,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 11, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 13, "kept": true, @@ -378120,29 +376095,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 12, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 14, "output_schema": { @@ -378194,18 +376172,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 30000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 15, "output_schema": { @@ -378257,36 +376235,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 14, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 16, "kept": true, @@ -378342,29 +376303,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 15, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 17, "output_schema": { @@ -378416,18 +376380,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 40000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 18, "output_schema": { @@ -378479,36 +376443,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 17, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 19, "kept": true, @@ -378564,29 +376511,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 18, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 20, "output_schema": { @@ -378638,18 +376588,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 21, "output_schema": { @@ -378701,36 +376651,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 20, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 22, "kept": true, @@ -378786,46 +376719,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 21, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 23, "output_schema": { @@ -378880,11 +376799,21 @@ "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "ASAP": { + "SummaryMerge": { + "children": [ + 7, + 10, + 13, + 16, + 19, + 22 + ] + } + } } }, { - "coverage": null, "guarantee": null, "id": 24, "output_schema": { @@ -378936,23 +376865,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 23 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 25, "output_schema": { @@ -379000,48 +376920,51 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 + "ASAP": { + "SummaryAgg": { + "child": 24, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 26, "output_schema": { @@ -379085,10 +377008,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 25 } } } @@ -392325,7 +390252,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -392377,64 +390303,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -392486,31 +390411,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 2, "output_schema": { @@ -392565,29 +390478,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 3, "output_schema": { @@ -392639,23 +390555,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 4, "output_schema": { @@ -392693,33 +390600,36 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -392754,11 +390664,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -392810,18 +390723,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 0 + } } } } }, { - "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -392873,36 +390786,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 8, "kept": true, @@ -392954,98 +390850,38 @@ ] }, "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "kind": "summary_agg", - "reduction": "PerEntity" - } - }, - { - "coverage": null, - "guarantee": null, - "id": 9, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 10, + "id": 9, "output_schema": { "closed": true, "fields": [ @@ -393095,36 +390931,82 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 10000 + } + } } } }, { - "coverage": { - "regions": [ + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 9, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } - }, + } + }, + { "guarantee": null, "id": 11, "kept": true, @@ -393180,29 +391062,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 10, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 12, "output_schema": { @@ -393254,18 +391139,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 20000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 13, "output_schema": { @@ -393317,36 +391202,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 12, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 14, "kept": true, @@ -393402,29 +391270,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 13, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 15, "output_schema": { @@ -393476,18 +391347,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 30000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 16, "output_schema": { @@ -393539,36 +391410,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 15, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 17, "kept": true, @@ -393624,29 +391478,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 16, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 18, "output_schema": { @@ -393698,18 +391555,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 40000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 19, "output_schema": { @@ -393761,36 +391618,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 18, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 20, "kept": true, @@ -393846,29 +391686,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 19, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 21, "output_schema": { @@ -393920,18 +391763,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 22, "output_schema": { @@ -393983,36 +391826,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 21, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 23, "kept": true, @@ -394068,46 +391894,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 22, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 24, "output_schema": { @@ -394162,11 +391974,21 @@ "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "ASAP": { + "SummaryMerge": { + "children": [ + 8, + 11, + 14, + 17, + 20, + 23 + ] + } + } } }, { - "coverage": null, "guarantee": null, "id": 25, "output_schema": { @@ -394218,11 +392040,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 24 + } + } } }, { - "coverage": null, "guarantee": null, "id": 26, "output_schema": { @@ -394274,26 +392099,26 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "keys": [ - { - "ascending": false, - "expr": { - "Column": 1 - }, - "nulls_first": false - } - ], - "kind": "sort", - "partition_by": [ - 2 - ] + "NonASAP": { + "Sort": { + "child": 25, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } } } }, { - "coverage": null, "guarantee": null, "id": 27, "output_schema": { @@ -394345,14 +392170,15 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "limit", - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "NonASAP": { + "Limit": { + "child": 26, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } } } } @@ -405968,7 +403794,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -406020,64 +403845,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -406125,112 +403949,103 @@ ] }, "output_state": { - "primitive": "Raw", + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + } + }, + { + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - } - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, - "guarantee": null, - "id": 2, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { "ExactAggregate": [ "Rate", "Rate" ] }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 3, "output_schema": { @@ -406282,23 +404097,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 4, "output_schema": { @@ -406336,33 +404142,36 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -406397,11 +404206,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -406453,18 +404265,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 0 + } } } } }, { - "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -406516,36 +404328,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 8, "kept": true, @@ -406601,29 +404396,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -406675,18 +404473,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 10000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 10, "output_schema": { @@ -406738,36 +404536,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 9, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 11, "kept": true, @@ -406819,98 +404600,38 @@ ] }, "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "kind": "summary_agg", - "reduction": "PerEntity" - } - }, - { - "coverage": null, - "guarantee": null, - "id": 12, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 + "ASAP": { + "SummaryAgg": { + "child": 10, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 13, + "id": 12, "output_schema": { "closed": true, "fields": [ @@ -406960,36 +404681,82 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 20000 + } + } } } }, { - "coverage": { - "regions": [ + "guarantee": null, + "id": 13, + "output_schema": { + "closed": true, + "fields": [ { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } - } + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 12, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } - }, + } + }, + { "guarantee": null, "id": 14, "kept": true, @@ -407045,29 +404812,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 13, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 15, "output_schema": { @@ -407119,18 +404889,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 30000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 16, "output_schema": { @@ -407182,36 +404952,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 15, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 17, "kept": true, @@ -407267,29 +405020,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 16, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 18, "output_schema": { @@ -407341,18 +405097,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 40000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 19, "output_schema": { @@ -407404,36 +405160,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 18, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 20, "kept": true, @@ -407489,29 +405228,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 19, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 21, "output_schema": { @@ -407563,18 +405305,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 22, "output_schema": { @@ -407626,36 +405368,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 21, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 23, "kept": true, @@ -407711,46 +405436,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 22, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 24, "output_schema": { @@ -407805,11 +405516,21 @@ "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "ASAP": { + "SummaryMerge": { + "children": [ + 8, + 11, + 14, + 17, + 20, + 23 + ] + } + } } }, { - "coverage": null, "guarantee": null, "id": 25, "output_schema": { @@ -407861,23 +405582,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 24 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 26, "output_schema": { @@ -407925,48 +405637,51 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 + "ASAP": { + "SummaryAgg": { + "child": 25, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 27, "output_schema": { @@ -408010,10 +405725,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 26 } } } @@ -419630,7 +417349,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -419682,64 +417400,63 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "NonASAP": { + "Scan": { + "predicates": [], + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] ] - ] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -419791,31 +417508,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 2, "output_schema": { @@ -419870,29 +417575,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 1, + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 3, "output_schema": { @@ -419944,23 +417652,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 4, "output_schema": { @@ -419998,33 +417697,36 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 3, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -420059,11 +417761,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -420115,18 +417820,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 0 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 0 + } } } } }, { - "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -420178,36 +417883,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -10000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 8, "kept": true, @@ -420263,29 +417951,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -420337,18 +418028,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 10000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 10000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 10, "output_schema": { @@ -420400,36 +418091,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 9, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -10000, - "start": -20000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 11, "kept": true, @@ -420485,29 +418159,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 10, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 12, "output_schema": { @@ -420559,18 +418236,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 20000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 20000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 13, "output_schema": { @@ -420622,36 +418299,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 12, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -20000, - "start": -30000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 14, "kept": true, @@ -420707,29 +418367,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 13, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 15, "output_schema": { @@ -420781,18 +418444,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 30000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 30000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 16, "output_schema": { @@ -420844,36 +418507,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 15, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -30000, - "start": -40000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 17, "kept": true, @@ -420925,98 +418571,38 @@ ] }, "output_state": { - "primitive": "SummaryState", - "timing": "query_time" - }, - "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "kind": "summary_agg", - "reduction": "PerEntity" - } - }, - { - "coverage": null, - "guarantee": null, - "id": 18, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [ - [ - 3, - 0 - ] - ] - }, - "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 40000 + "ASAP": { + "SummaryAgg": { + "child": 16, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } } } }, { - "coverage": null, "guarantee": null, - "id": 19, + "id": 18, "output_schema": { "closed": true, "fields": [ @@ -421066,36 +418652,82 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 40000 + } + } } } }, { - "coverage": { - "regions": [ + "guarantee": null, + "id": 19, + "output_schema": { + "closed": true, + "fields": [ { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -40000, - "start": -50000 - } - } + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "time_index": 0, + "unique_keys": [ + [ + 3, + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "TimeRange": { + "child": 18, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } } } - }, + } + }, + { "guarantee": null, "id": 20, "kept": true, @@ -421151,29 +418783,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 19, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": null, "guarantee": null, "id": 21, "output_schema": { @@ -421225,18 +418860,18 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_shift", - "shift": { - "at": null, - "offset_ms": 50000 + "NonASAP": { + "TimeShift": { + "child": 0, + "shift": { + "at": null, + "offset_ms": 50000 + } } } } }, { - "coverage": null, "guarantee": null, "id": 22, "output_schema": { @@ -421288,36 +418923,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 10 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 21, + "kind": "range", + "range": { + "nanos": 0, + "secs": 10 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": -50000, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 23, "kept": true, @@ -421373,46 +418991,32 @@ "timing": "query_time" }, "payload": { - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "ASAP": { + "SummaryAgg": { + "child": 22, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "reduction": "PerEntity" } - }, - "kind": "summary_agg", - "reduction": "PerEntity" + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": { - "relative_to_evaluation": { - "end": 0, - "start": -60000 - } - } - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 24, "output_schema": { @@ -421467,11 +419071,21 @@ "timing": "query_time" }, "payload": { - "kind": "summary_merge" + "ASAP": { + "SummaryMerge": { + "children": [ + 8, + 11, + 14, + 17, + 20, + 23 + ] + } + } } }, { - "coverage": null, "guarantee": null, "id": 25, "output_schema": { @@ -421523,23 +419137,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 24 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 26, "output_schema": { @@ -421587,48 +419192,51 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 + "ASAP": { + "SummaryAgg": { + "child": 25, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "non_negative", + "proof": "counter_samples" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "non_negative", - "proof": "counter_samples" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 27, "output_schema": { @@ -421672,10 +419280,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 26 } } }