From 09caf48cb9234441558363080f355a7b1e83d7fa Mon Sep 17 00:00:00 2001 From: zzylol <50204836+zzylol@users.noreply.github.com> Date: Sat, 3 Oct 2026 21:00:36 +0000 Subject: [PATCH 1/3] feat(planner): #509 Stage 2 physical candidates and Stage 3 plan selection (MVP) Stage 2 implements one logical candidate physically: exact Aggregate{[TopK]} becomes Limit(Sort) per group, summaries stay build -> estimate, every node runs at query time, and the timed roots export as one PhysicalASAPDAG. Stage 3 is the only stage that computes cost. It rejects candidates whose summary misses its query's accuracy target (accuracy model, analytical guarantee) or uses Count-Min over weights not proven non-negative, prices every valid candidate node by node with analytical_cost (illustrative statistics), selects the cheapest and reports the rest as costlier. Co-Authored-By: Claude Opus 5.5 --- crates/asap-aware-mapping/src/lib.rs | 6 + .../src/physical_candidates.rs | 279 ++++++++ .../asap-aware-mapping/src/plan_selection.rs | 655 ++++++++++++++++++ 3 files changed, 940 insertions(+) create mode 100644 crates/asap-aware-mapping/src/physical_candidates.rs create mode 100644 crates/asap-aware-mapping/src/plan_selection.rs diff --git a/crates/asap-aware-mapping/src/lib.rs b/crates/asap-aware-mapping/src/lib.rs index f9bf6910..b7a6322c 100644 --- a/crates/asap-aware-mapping/src/lib.rs +++ b/crates/asap-aware-mapping/src/lib.rs @@ -215,3 +215,9 @@ pub mod maintained_population; /// Local candidate generation over the unified IR. No execution timing is /// assigned: that is a Stage 2 materialization decision. pub mod logical_candidates; + +/// #509 Stage 2 MVP: physical operator implementation, all at query time. +pub mod physical_candidates; + +/// #509 Stage 3 MVP: accuracy check, analytical pricing, cheapest valid plan. +pub mod plan_selection; diff --git a/crates/asap-aware-mapping/src/physical_candidates.rs b/crates/asap-aware-mapping/src/physical_candidates.rs new file mode 100644 index 00000000..094adda1 --- /dev/null +++ b/crates/asap-aware-mapping/src/physical_candidates.rs @@ -0,0 +1,279 @@ +//! #509 Stage 2 (MVP): physical operator implementation of one logical +//! candidate. No materialization choice is made: every node runs at query +//! time, so each logical candidate yields exactly one physical candidate. +//! +//! The runtime has one implementation per logical operator except exact +//! top-k, which it cannot run as `Aggregate{[TopK]}`. Stage 2 records that +//! choice in the DAG by rewriting it to a per-group sort followed by a +//! 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::HashMap; +use std::rc::Rc; + +use asap_types::ir::export::{compile_physical_asap_workload_with_node_ids, PhysicalASAPDAG}; +use asap_types::ir::{ + apply_materialization_timings, ASAPOp, MaterializationAssignment, NonASAPOp, Operator, + OperatorNode, ScalarExpr, SchemaDerivationError, SortKey, TimingMemo, +}; +use asap_types::post_asap::ExecutionDataStateError; +use asap_types::pre_asap::column_resolution::resolve_column_ref; +use asap_types::pre_asap::expr_ir::ColumnRef; +use asap_types::pre_asap::{AggIntent, Reduction}; +use thiserror::Error; + +/// One Stage 2 candidate, derived from exactly one Stage 1 candidate. +/// `roots` are the timed operator roots (one per query, in workload order) +/// that `dag` exports. +#[derive(Debug, Clone)] +pub struct PhysicalCandidate { + pub id: String, + pub from_logical: String, + pub label: String, + pub roots: Vec>, + pub dag: PhysicalASAPDAG, +} + +#[derive(Debug, Error)] +pub enum Stage2Error { + #[error(transparent)] + Structure(#[from] SchemaDerivationError), + #[error(transparent)] + Timing(#[from] ExecutionDataStateError), + #[error("exact top-k has no sortable value column: {0}")] + NoValueColumn(String), + #[error("maintained populations run at ingestion time, which Stage 2 does not plan yet")] + IngestionTimeOnly, +} + +/// Implement every operator of one logical candidate and time it at query +/// time. `id` and `label` are left empty for the caller to name. Sharing +/// between `roots` is preserved: one memo serves the whole workload. +pub fn stage2_physical( + from_logical: &str, + roots: &[Rc], +) -> Result { + let mut memo = HashMap::new(); + let implemented = roots + .iter() + .map(|root| implement(root, &mut memo)) + .collect::, _>>()?; + reject_maintained_populations(&implemented)?; + // The default assignment computes every summary state at query time. + let assignment = MaterializationAssignment::default(); + let mut timing = TimingMemo::new(); + let timed = implemented + .iter() + .map(|root| apply_materialization_timings(root, &assignment, &mut timing)) + .collect::, _>>()?; + let dag = compile_physical_asap_workload_with_node_ids(&timed)?.dag; + Ok(PhysicalCandidate { + id: String::new(), + from_logical: from_logical.to_string(), + label: String::new(), + roots: timed, + dag, + }) +} + +/// A maintained population always runs at ingestion time, which Stage 2 +/// does not plan yet. +fn reject_maintained_populations(roots: &[Rc]) -> Result<(), Stage2Error> { + let maintained = roots.iter().flat_map(OperatorNode::reachable).any(|node| { + matches!( + node.operator, + Operator::ASAP(ASAPOp::MaintainPopulation { .. }) + ) + }); + if maintained { + return Err(Stage2Error::IngestionTimeOnly); + } + Ok(()) +} + +type Memo = HashMap<*const OperatorNode, Rc>; + +fn implement(node: &Rc, memo: &mut Memo) -> Result, Stage2Error> { + if let Some(done) = memo.get(&Rc::as_ptr(node)) { + return Ok(done.clone()); + } + for child in node.children() { + implement(child, memo)?; + } + let implemented = match node.non_asap() { + Some(NonASAPOp::Aggregate { + reduction: Reduction::Reduce(keys), + measures, + filters, + having: None, + child, + .. + }) if filters.iter().all(Option::is_none) => match measures.as_slice() { + [AggIntent::TopK { k, .. }] => { + let child = memo[&Rc::as_ptr(child)].clone(); + let value = resolve_column_ref(&ColumnRef::SampleValue, &child.schema) + .map_err(|e| Stage2Error::NoValueColumn(e.to_string()))?; + let sorted = OperatorNode::new_shared(Operator::NonASAP(NonASAPOp::Sort { + keys: vec![SortKey { + expr: ScalarExpr::Column(value), + ascending: false, + nulls_first: false, + }], + partition_by: keys.clone(), + child, + }))?; + OperatorNode::new_shared(Operator::NonASAP(NonASAPOp::Limit { + n: Some(*k), + offset: 0, + partition_by: keys.clone(), + child: sorted, + }))? + } + _ => rebuilt(node, memo)?, + }, + _ => rebuilt(node, memo)?, + }; + memo.insert(Rc::as_ptr(node), implemented.clone()); + Ok(implemented) +} + +/// `node` over its implemented children; the same `Rc` when none changed. +fn rebuilt(node: &Rc, memo: &Memo) -> Result, Stage2Error> { + let changed = node + .children() + .iter() + .any(|child| !Rc::ptr_eq(child, &memo[&Rc::as_ptr(child)])); + Ok(if changed { + Rc::new(node.map_children(|child| memo[&Rc::as_ptr(child)].clone())?) + } else { + node.clone() + }) +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::test_support::lower_promql; + use asap_types::ir::export::PhysicalASAPOperatorPayload as Payload; + use asap_types::ir::export::{NonASAPOpKind, PhysicalASAPNodeId}; + use asap_types::ir::QueryRoot; + use asap_types::post_asap::ExecutionTiming; + use asap_types::types::AccuracyTarget; + + /// Exact `topk by (job)` becomes Limit(Sort) partitioned by `job`, and a + /// child shared by two roots stays one node (one `Rc`, one DAG node). + #[test] + fn exact_topk_becomes_sort_then_limit_and_keeps_shared_child() { + let exact = AccuracyTarget::Exact; + let topk = lower_promql("topk by (job) (10, sum_over_time(m[1m]))", exact.clone()); + let sum = lower_promql("sum by (job) (sum_over_time(m[1m]))", exact); + // Share Q2's per-series child with Q1, as Stage 1 sharing would. + let NonASAPOp::Aggregate { child: shared, .. } = topk.expect_non_asap() else { + panic!("topk aggregate") + }; + let sum = Rc::new(sum.map_children(|_| shared.clone()).unwrap()); + let candidate = stage2_physical("L1", &[topk, sum]).unwrap(); + + let NonASAPOp::Limit { + n: Some(10), + partition_by, + child: sort, + .. + } = candidate.roots[0].expect_non_asap() + else { + panic!("limit root") + }; + assert!(!partition_by.keys().is_empty()); + let NonASAPOp::Sort { + child: below_sort, + partition_by: sort_partition, + .. + } = sort.expect_non_asap() + else { + panic!("sort below limit") + }; + assert_eq!(sort_partition, partition_by); + let NonASAPOp::Aggregate { + child: below_sum, .. + } = candidate.roots[1].expect_non_asap() + else { + panic!("sum root") + }; + assert!(Rc::ptr_eq(below_sort, below_sum)); + + let dag = &candidate.dag; + let kind = |id: PhysicalASAPNodeId| match &dag + .nodes + .iter() + .find(|n| n.id == id) + .unwrap() + .payload + { + Payload::Relational { + operator: NonASAPOpKind::Sort { .. }, + } => "sort", + Payload::Relational { + operator: NonASAPOpKind::Limit { .. }, + } => "limit", + _ => "other", + }; + let sort_id = dag + .edges + .iter() + .find(|e| kind(e.producer) == "sort" && e.consumer == dag.roots[0]) + .expect("sort -> limit edge") + .producer; + let producer_of = |consumer| { + dag.edges + .iter() + .find(|e| e.consumer == consumer) + .unwrap() + .producer + }; + assert_eq!(producer_of(sort_id), producer_of(dag.roots[1])); + } + + /// With summaries chosen, every node, the summary build included, runs at + /// query time. + #[test] + fn everything_runs_at_query_time() { + let root = lower_promql( + "topk by (job) (10, sum_over_time(m[1m]))", + AccuracyTarget::EpsilonDelta { + epsilon: 0.01, + delta: 0.001, + }, + ); + let inventory = crate::logical_candidates::enumerate_local_logical_candidates(vec![( + 0, + QueryRoot::Operator(root), + )]) + .unwrap(); + // A summary (the last alternative) for every target. + let choice: Vec<_> = inventory + .targets + .iter() + .map(|t| t.alternatives.len() - 1) + .collect(); + let roots: Vec<_> = + crate::logical_candidates::compose_logical_candidate(&inventory, &choice) + .unwrap() + .into_iter() + .map(|(_, root)| match root { + QueryRoot::Operator(node) => node, + QueryRoot::Scalar(_) => panic!("operator root"), + }) + .collect(); + let candidate = stage2_physical("L1", &roots).unwrap(); + assert!(candidate + .dag + .nodes + .iter() + .any(|n| matches!(n.payload, Payload::SummaryAgg { .. }))); + assert!(candidate + .dag + .nodes + .iter() + .all(|n| n.output_state.timing == ExecutionTiming::QueryTime)); + } +} diff --git a/crates/asap-aware-mapping/src/plan_selection.rs b/crates/asap-aware-mapping/src/plan_selection.rs new file mode 100644 index 00000000..fd0ce9a8 --- /dev/null +++ b/crates/asap-aware-mapping/src/plan_selection.rs @@ -0,0 +1,655 @@ +//! #509 Stage 3 (MVP): plan selection, the only stage that computes cost. +//! +//! Each Stage 2 candidate is checked against every query's accuracy target +//! with the accuracy model, and Count-Min is admitted only over weights proven +//! non-negative; a miss rejects the candidate as invalid, with a reason. +//! Every valid candidate is priced node by node over its physical DAG, so a +//! node shared by several queries is charged once, and the cheapest is +//! selected. The rest are reported valid but costlier. +//! +//! Prices come from [`crate::analytical_cost::estimate_operator`] over edge +//! statistics derived from the [`DataWorkload`] and a fixed default group +//! count; summary build and estimation are priced as rows × sketch depth and +//! groups × k. These numbers are illustrative, not calibrated. Latency +//! bounds and deployment capabilities are not checked yet. +use std::collections::{BTreeMap, HashMap}; + +use asap_types::ir::export::{ + NonASAPOpKind, PhysicalASAPDAG, PhysicalASAPNodeId, PhysicalASAPOperatorPayload as Payload, +}; +use asap_types::ir::{ASAPOp, Operator, OperatorNode}; +use asap_types::post_asap::{ + FieldDataType, SketchAlgorithm, SketchParams, SketchStatistic, WeightDomain, +}; +use asap_types::pre_asap::{DataType, Reduction, Schema}; +use asap_types::types::AccuracyTarget; +use asap_types::workload::DataWorkload; +use thiserror::Error; + +use crate::analytical_cost::{ + estimate_operator, AnalyticalCostError, PhysicalOperator, ResourceCalibration, ResourceEstimate, +}; +use crate::physical_candidates::PhysicalCandidate; +use crate::physical_operator_statistics::{ + EdgeStatistics, OperatorStatistics, PartitionStatistics, UnaryEdgeStatistics, +}; +use crate::PlanningModels; + +pub const COST_UNIT: &str = "cpu_ms_per_workload_evaluation"; +pub const COST_SOURCE: &str = "analytical-cost-v1 (illustrative statistics)"; + +/// Groups assumed for every `by (...)` reduction, absent group-count evidence. +const DEFAULT_GROUP_COUNT: u64 = 100; +/// Used only when the data workload does not declare them. +const DEFAULT_SERIES: u64 = 1_000; +const DEFAULT_ROWS_PER_SECOND: f64 = 1_000.0; +const DEFAULT_LOOKBACK_MS: u64 = 60_000; + +#[derive(Debug, Clone, PartialEq)] +pub struct NodeCost { + pub cost: f64, + pub detail: String, +} + +/// Whole-workload cost of one candidate: one entry per DAG node, `total` is +/// their sum. +#[derive(Debug, Clone, PartialEq)] +pub struct CandidateCost { + pub total: f64, + pub unit: &'static str, + pub source: &'static str, + pub per_node: BTreeMap, +} + +/// A candidate that was not selected. `valid == false`: it failed a check; +/// `true`: it lost on cost. +#[derive(Debug, Clone, PartialEq)] +pub struct Rejection { + pub id: String, + pub valid: bool, + pub reason: String, +} + +/// Costs are present for valid candidates only. +#[derive(Debug, Clone, PartialEq)] +pub struct Selection { + pub selected: String, + pub costs: BTreeMap, + pub rejected: Vec, +} + +#[derive(Debug, Error)] +pub enum SelectionError { + #[error("candidate {candidate} has {roots} roots but {targets} accuracy targets were given")] + TargetCount { + candidate: String, + roots: usize, + targets: usize, + }, + #[error("candidate {candidate}, node {node:?}: {error}")] + Cost { + candidate: String, + node: PhysicalASAPNodeId, + error: AnalyticalCostError, + }, + #[error("no valid candidate: {0:?}")] + NoValidCandidate(Vec), +} + +/// Reject candidates that miss a query's accuracy target, price the rest and +/// select the cheapest (the first on ties). `targets[i]` is the requirement +/// of `candidate.roots[i]`; `None` imposes none. +pub fn stage3_select( + cands: &[PhysicalCandidate], + targets: &[Option], + data: &DataWorkload, + models: PlanningModels<'_>, +) -> Result { + let mut costs = BTreeMap::new(); + let mut rejected = Vec::new(); + let mut best: Option<(&str, f64)> = None; + for candidate in cands { + if candidate.roots.len() != targets.len() { + return Err(SelectionError::TargetCount { + candidate: candidate.id.clone(), + roots: candidate.roots.len(), + targets: targets.len(), + }); + } + if let Some(reason) = accuracy_violation(candidate, targets, &models) { + rejected.push(Rejection { + id: candidate.id.clone(), + valid: false, + reason, + }); + continue; + } + let cost = price(&candidate.dag, data).map_err(|(node, error)| SelectionError::Cost { + candidate: candidate.id.clone(), + node, + error, + })?; + if best.is_none_or(|(_, total)| cost.total < total) { + best = Some((&candidate.id, cost.total)); + } + costs.insert(candidate.id.clone(), cost); + } + let Some((selected, best_total)) = best else { + return Err(SelectionError::NoValidCandidate(rejected)); + }; + for candidate in cands { + if candidate.id != selected && costs.contains_key(&candidate.id) { + rejected.push(Rejection { + id: candidate.id.clone(), + valid: true, + reason: format!( + "costlier: {:.3} vs {:.3} {COST_UNIT}", + costs[&candidate.id].total, best_total + ), + }); + } + } + Ok(Selection { + selected: selected.to_string(), + costs, + rejected, + }) +} + +/// The first summary estimate that misses its query's target, as a reason. +fn accuracy_violation( + candidate: &PhysicalCandidate, + targets: &[Option], + models: &PlanningModels<'_>, +) -> Option { + for (query, (root, target)) in candidate.roots.iter().zip(targets).enumerate() { + let Some(target) = target else { continue }; + for node in OperatorNode::reachable(root) { + let Operator::ASAP(ASAPOp::SummaryEstimate { + summary_input, + query: statistic, + }) = &node.operator + else { + continue; + }; + let Operator::ASAP(ASAPOp::SummaryAgg { family, input, .. }) = &summary_input.operator + else { + return Some(format!("q{}: estimate over a non-summary input", query + 1)); + }; + let name = family_name(family); + // Count-Min's one-sided error bound assumes no negative updates. + if matches!(family, FieldDataType::Sketch(kind, _) + if matches!(kind.algorithm(), SketchAlgorithm::Cms | SketchAlgorithm::CmsWithHeap)) + && !matches!(input.weight_domain, WeightDomain::NonNegative { .. }) + { + return Some(format!( + "q{}: {name} needs non-negative update weights, and these are not proven \ + non-negative", + query + 1 + )); + } + let Some(guarantee) = models.accuracy.local_guarantee(family, statistic) else { + return Some(format!( + "q{}: no accuracy model for {name}; target {target:?}", + query + 1 + )); + }; + if !models.accuracy.satisfies(&guarantee, target) { + return Some(format!( + "q{}: {name} guarantees bound {:?}, failure probability {:?}, which misses \ + target {target:?} (analytical guarantee; no accuracy evidence)", + query + 1, + guarantee.bound.evaluate(), + guarantee.failure_probability.evaluate(), + )); + } + } + } + None +} + +fn family_name(family: &FieldDataType) -> String { + match family { + FieldDataType::Sketch(kind, _) => format!("{:?}", kind.algorithm()), + FieldDataType::ExactAggregate(kind, _) => format!("exact {kind:?} accumulator"), + other => format!("{other:?}"), + } +} + +/// Statistics the analytical model needs, derived once per workload. +struct Shape { + series: u64, + rows_per_ms: f64, +} + +/// Price every node of `dag` once. Nodes are exported children first, so +/// each node's input statistics are known when it is reached. +fn price( + dag: &PhysicalASAPDAG, + data: &DataWorkload, +) -> Result { + let series = data + .input_cardinality + .value + .unwrap_or(DEFAULT_SERIES) + .max(1); + let shape = Shape { + series, + rows_per_ms: data + .ingestion_rate + .value + .map_or(DEFAULT_ROWS_PER_SECOND, |rate| rate.0) + / 1_000.0, + }; + let calibration = ResourceCalibration { + cost_per_cpu_op: 1e-6, + cost_per_scan_byte: 1e-7, + cost_per_retained_byte: 0.0, + version: "illustrative-v1".into(), + }; + let nodes: HashMap<_, _> = dag.nodes.iter().map(|n| (n.id, n)).collect(); + let mut output: HashMap = HashMap::new(); + let mut per_node = BTreeMap::new(); + for node in &dag.nodes { + let inputs: Vec<_> = dag + .edges + .iter() + .filter(|e| e.consumer == node.id) + .map(|e| output[&e.producer]) + .collect(); + let input = inputs + .first() + .copied() + .unwrap_or(EdgeStatistics { rows: 1, bytes: 1 }); + let width = row_bytes(&node.output_schema); + let edge = |rows: u64| EdgeStatistics { + rows, + bytes: rows * width, + }; + let unary = |output| UnaryEdgeStatistics { + input, + output, + promql: None, + }; + let groups = |reduction: &Reduction| { + match reduction { + Reduction::Reduce(keys) if keys.keys().is_empty() && !keys.is_without() => 1, + Reduction::Reduce(keys) if !keys.is_without() => DEFAULT_GROUP_COUNT, + _ => shape.series, + } + .min(input.rows.max(1)) + }; + let (out, estimate, detail) = match &node.payload { + Payload::Relational { operator } => match operator { + NonASAPOpKind::Scan { .. } => { + // A scan reads what its time range keeps. + let lookback = dag + .edges + .iter() + .filter(|e| e.producer == node.id) + .filter_map(|e| match &nodes[&e.consumer].payload { + Payload::Relational { + operator: NonASAPOpKind::TimeRange { range, .. }, + } => Some(range.as_millis() as u64), + _ => None, + }) + .max() + .unwrap_or(DEFAULT_LOOKBACK_MS); + let out = edge(((shape.rows_per_ms * lookback as f64).round() as u64).max(1)); + 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)) + } + NonASAPOpKind::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 + ), + ) + } + NonASAPOpKind::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), + ) + } + NonASAPOpKind::Limit { + n, + offset, + partition_by, + } => { + let partitions = if partition_by.keys().is_empty() { + 1 + } else { + DEFAULT_GROUP_COUNT + }; + 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(input.rows.saturating_sub(offset).min(limit)); + let estimate = estimate_operator( + PhysicalOperator::Limit { limit, offset }, + OperatorStatistics::Limit { edges: unary(out) }, + ); + (out, estimate, format!("limit to {} rows", out.rows)) + } + other => { + let estimate = estimate_operator( + PhysicalOperator::PassThrough, + OperatorStatistics::PassThrough { + edges: unary(input), + }, + ); + let name = match other { + NonASAPOpKind::TimeRange { range, .. } => format!("time range {range:?}"), + _ => "operator".into(), + }; + (input, estimate, format!("{name}: pass {} rows", input.rows)) + } + }, + Payload::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::SummaryEstimate { query } => { + let per_group = match query { + SketchStatistic::TopK { k } => *k as u64, + _ => 1, + }; + let out = edge(input.rows * per_group); + ( + out, + Ok(ResourceEstimate::new(out.rows as f64, 0, 0)), + format!("estimate {} groups x {per_group}", input.rows), + ) + } + Payload::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(&calibration)) + .map_err(|error| (node.id, error))?; + output.insert(node.id, out); + per_node.insert(node.id, NodeCost { cost, detail }); + } + Ok(CandidateCost { + total: per_node.values().map(|n| n.cost).sum(), + unit: COST_UNIT, + source: COST_SOURCE, + per_node, + }) +} + +/// `input` split as evenly as integers allow into `partitions` parts. +fn split(input: EdgeStatistics, partitions: u64) -> PartitionStatistics { + let part = |total: u64, i: u64| total / partitions + u64::from(i < total % partitions); + PartitionStatistics { + partitions: (0..partitions) + .map(|i| EdgeStatistics { + rows: part(input.rows, i), + bytes: part(input.bytes, i), + }) + .collect(), + } +} + +/// Plain values are 8 bytes, strings 16; summary columns are sized apart. +fn row_bytes(schema: &Schema) -> u64 { + schema + .fields + .iter() + .map(|f| match &f.dtype { + FieldDataType::Plain(DataType::Utf8) => 16, + _ => 8, + }) + .sum::() + .max(1) +} + +/// Update operations per input row and bytes per state. +fn summary_shape(family: &FieldDataType) -> (u64, u64) { + match family { + FieldDataType::Sketch(kind, _) => match kind.params() { + SketchParams::Cms { width, depth } | SketchParams::CountSketch { width, depth } => { + (u64::from(*depth), 8 * u64::from(*width) * u64::from(*depth)) + } + SketchParams::CmsWithHeap { + width, + depth, + heap_size, + } + | SketchParams::CountSketchWithHeap { + width, + depth, + heap_size, + } => ( + u64::from(*depth) + 1, + 8 * u64::from(*width) * u64::from(*depth) + 24 * u64::from(*heap_size), + ), + _ => (1, 1_024), + }, + _ => (1, 8), + } +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::physical_candidates::stage2_physical; + use crate::test_support::lower_promql; + use asap_types::ir::QueryRoot; + use asap_types::workload::{Evidence, Rate}; + + fn data() -> DataWorkload { + DataWorkload { + ingestion_rate: Evidence { + value: Some(Rate(10_000.0)), + ..Default::default() + }, + input_cardinality: Evidence { + value: Some(10_000), + ..Default::default() + }, + ..Default::default() + } + } + + /// Exact (P1), CMS+heap (P2) and CountSketch+heap (P3) realizations of + /// one approximate top-k query, in Pass 1 catalog order. + fn candidates() -> Vec { + let root = lower_promql( + "topk by (job) (10, sum_over_time(m[1m]))", + AccuracyTarget::EpsilonDelta { + epsilon: 0.01, + delta: 0.001, + }, + ); + let inventory = crate::logical_candidates::enumerate_local_logical_candidates(vec![( + 0, + QueryRoot::Operator(root), + )]) + .unwrap(); + let topk = inventory + .targets + .iter() + .position(|t| t.alternatives.len() > 2) + .unwrap(); + [0, 1, 2] + .into_iter() + .map(|alternative| { + let mut choice = vec![0; inventory.targets.len()]; + choice[topk] = alternative; + let roots: Vec<_> = + crate::logical_candidates::compose_logical_candidate(&inventory, &choice) + .unwrap() + .into_iter() + .map(|(_, root)| match root { + QueryRoot::Operator(node) => node, + QueryRoot::Scalar(_) => panic!("operator root"), + }) + .collect(); + let mut candidate = stage2_physical("L", &roots).unwrap(); + candidate.id = format!("P{}", alternative + 1); + candidate + }) + .collect() + } + + /// A summary whose analytical guarantee misses the target is rejected as + /// invalid with a reason; the exact plan is then selected. + #[test] + fn accuracy_failing_candidate_is_rejected_as_invalid() { + let candidates = candidates(); + let strict = AccuracyTarget::EpsilonDelta { + epsilon: 1e-6, + delta: 1e-9, + }; + let selection = stage3_select( + &candidates, + &[Some(strict)], + &data(), + PlanningModels::builtin(), + ) + .unwrap(); + assert_eq!(selection.selected, "P1"); + let rejected: BTreeMap<_, _> = selection + .rejected + .iter() + .map(|r| (r.id.as_str(), r)) + .collect(); + assert_eq!(rejected.len(), 2); + assert!(!rejected["P3"].valid); + assert!( + rejected["P3"].reason.contains("misses target"), + "{}", + rejected["P3"].reason + ); + assert!(!selection.costs.contains_key("P3")); + } + + /// Count-Min over weights not proven non-negative is invalid whatever + /// the target. + #[test] + fn count_min_over_signed_weights_is_rejected_as_invalid() { + let target = AccuracyTarget::EpsilonDelta { + epsilon: 0.01, + delta: 0.001, + }; + let selection = stage3_select( + &candidates(), + &[Some(target)], + &data(), + PlanningModels::builtin(), + ) + .unwrap(); + let p2 = selection.rejected.iter().find(|r| r.id == "P2").unwrap(); + assert!(!p2.valid); + assert!(p2.reason.contains("non-negative"), "{}", p2.reason); + } + + /// Each node is priced once, under its DAG id, and the total is the sum; + /// every candidate is either selected or rejected as costlier. + #[test] + fn per_node_costs_cover_the_dag_and_sum_to_the_total() { + let candidates = candidates(); + let target = AccuracyTarget::EpsilonDelta { + epsilon: 0.01, + delta: 0.001, + }; + let selection = stage3_select( + &candidates, + &[Some(target)], + &data(), + PlanningModels::builtin(), + ) + .unwrap(); + for candidate in candidates.iter().filter(|c| c.id != "P2") { + let cost = &selection.costs[&candidate.id]; + let ids: Vec<_> = candidate.dag.nodes.iter().map(|n| n.id).collect(); + let mut keys: Vec<_> = cost.per_node.keys().copied().collect(); + keys.sort(); + let mut sorted = ids.clone(); + sorted.sort(); + assert_eq!(keys, sorted); + let sum: f64 = cost.per_node.values().map(|n| n.cost).sum(); + assert_eq!(cost.total, sum); + assert!(cost.total > 0.0); + } + let costlier: Vec<_> = selection.rejected.iter().filter(|r| r.valid).collect(); + assert_eq!(costlier.len(), 1); + assert_ne!(costlier[0].id, selection.selected); + } +} From 4040ad3a88833cde85ecc1f296b685ad177f855c Mon Sep 17 00:00:00 2001 From: zzylol <50204836+zzylol@users.noreply.github.com> Date: Sat, 3 Oct 2026 21:00:37 +0000 Subject: [PATCH 2/3] feat(devtools): stage_pipeline emits all four stages for Example 1 Add stage2_physical_asap (no cost) and stage3_selection (costs, selected, every other candidate rejected as invalid or costlier) per the v2 contract. PromQL rows carry the series identity from Stage 0, as runtime state needs. Regenerate tools/dag-viewer/examples/planner-layering-example1.json. Co-Authored-By: Claude Opus 5.5 --- crates/devtools/src/bin/stage_pipeline.rs | 92 +- crates/devtools/tests/stage_pipeline.rs | 45 +- .../examples/planner-layering-example1.json | 57470 +++++++++++++--- 3 files changed, 49059 insertions(+), 8548 deletions(-) diff --git a/crates/devtools/src/bin/stage_pipeline.rs b/crates/devtools/src/bin/stage_pipeline.rs index 7ed70e4b..79dfdf11 100644 --- a/crates/devtools/src/bin/stage_pipeline.rs +++ b/crates/devtools/src/bin/stage_pipeline.rs @@ -4,12 +4,15 @@ // --promql "topk by (job) (10, rate(x[1m]))" --epsilon 0.01 --delta 0.001 --out run.json // // Writes an `asap-stage-pipeline/v1` document (tools/dag-viewer) with the -// first two planner stages only: +// four planner stages (#509 MVP): // - stage0_logical: the frontends' workload DAG, one root per query; // - stage1_logical_asap: Pass 1 workload candidates, one per choice of a // local alternative for every target (the Cartesian product), in -// enumeration order and capped by `--max-candidates` (default 64). -// Stages 2 and 3, and therefore cost, are absent. +// enumeration order and capped by `--max-candidates` (default 64); +// - stage2_physical_asap: one physical candidate per logical candidate +// (operator implementation only, everything at query time), no cost; +// - stage3_selection: per-candidate costs, the selected candidate, and +// every other candidate as rejected (`valid: false`) or costlier. // // `--promql` may repeat. `--epsilon`/`--delta` apply to every `--promql` // query; without them the queries are exact. `--interval-ms` is the source @@ -20,8 +23,11 @@ use std::rc::Rc; use asap_aware_mapping::logical_candidates::{ compose_logical_candidate, enumerate_local_logical_candidates, LocalLogicalCandidates, }; -use asap_aware_mapping::Realization; +use asap_aware_mapping::physical_candidates::stage2_physical; +use asap_aware_mapping::plan_selection::{stage3_select, Selection}; +use asap_aware_mapping::{PlanningModels, Realization}; use asap_types::ir::flat::{flatten, FlatDag}; +use asap_types::ir::schema_support::with_promql_series_identity; use asap_types::ir::{OperatorNode, QueryRoot}; use asap_types::post_asap::SketchAlgorithm; use asap_types::types::AccuracyTarget; @@ -85,8 +91,18 @@ fn run(args: Vec) -> Result<(), String> { } fn stage_pipeline(workload: &PlanningWorkload, max_candidates: usize) -> Result { + // PromQL rows carry each series' full identity as a column: the row + // representation per-series state needs at runtime. let roots = asap_frontend_promql::lower_promql_query_workload(workload, 0) - .map_err(|e| format!("lowering: {e}"))?; + .map_err(|e| format!("lowering: {e}"))? + .into_iter() + .map(|root| match root { + QueryRoot::Operator(node) => with_promql_series_identity(&node) + .map(QueryRoot::Operator) + .map_err(|e| format!("series identity: {e}")), + scalar => Ok(scalar), + }) + .collect::, _>>()?; let stage0 = export(&roots)?; let inventory = enumerate_local_logical_candidates(roots.into_iter().enumerate().collect()) .map_err(|e| format!("Pass 1: {e}"))?; @@ -97,16 +113,29 @@ fn stage_pipeline(workload: &PlanningWorkload, max_candidates: usize) -> Result< .product::(); let owners = target_owners(&inventory); let mut candidates = Vec::new(); + let mut physical = Vec::new(); let mut choice = vec![0; inventory.targets.len()]; for index in 0..combinations.min(max_candidates) { let roots = compose_logical_candidate(&inventory, &choice) .map_err(|e| format!("candidate {choice:?}: {e}"))?; let roots: Vec<_> = roots.into_iter().map(|(_, root)| root).collect(); - candidates.push(json!({ - "id": format!("L{}", index + 1), - "label": label(&inventory, &owners, &choice), - "dag": export(&roots)?, - })); + let (id, label) = ( + format!("L{}", index + 1), + label(&inventory, &owners, &choice), + ); + candidates.push(json!({ "id": id, "label": label, "dag": export(&roots)? })); + let operators = roots + .into_iter() + .map(|root| match root { + QueryRoot::Operator(node) => Ok(node), + QueryRoot::Scalar(_) => Err("Stage 2: scalar query roots are not physical yet"), + }) + .collect::, _>>()?; + let mut candidate = + stage2_physical(&id, &operators).map_err(|e| format!("Stage 2 {id}: {e}"))?; + candidate.id = format!("P{}", index + 1); + candidate.label = label; + physical.push(candidate); // Mixed-radix increment: the last target varies fastest. for (digit, target) in choice.iter_mut().zip(&inventory.targets).rev() { *digit += 1; @@ -116,6 +145,18 @@ fn stage_pipeline(workload: &PlanningWorkload, max_candidates: usize) -> Result< *digit = 0; } } + let targets: Vec<_> = workload + .query_workload + .entries() + .map(|entry| Some(entry.requirements.accuracy.target())) + .collect(); + let data = workload.data_workload.clone().unwrap_or_default(); + let selection = stage3_select(&physical, &targets, &data, PlanningModels::builtin()) + .map_err(|e| format!("Stage 3: {e}"))?; + let stage2: Vec<_> = physical + .iter() + .map(|p| json!({ "id": p.id, "from_logical": p.from_logical, "label": p.label, "dag": p.dag })) + .collect(); Ok(json!({ "format": "asap-stage-pipeline/v1", "workload": { "queries": workload_queries(workload) }, @@ -125,9 +166,40 @@ fn stage_pipeline(workload: &PlanningWorkload, max_candidates: usize) -> Result< "capped": combinations > max_candidates, "candidates": candidates, }, + "stage2_physical_asap": { "candidates": stage2 }, + "stage3_selection": stage3_json(&selection), })) } +fn stage3_json(selection: &Selection) -> Value { + let costs: serde_json::Map<_, _> = selection + .costs + .iter() + .map(|(id, cost)| { + let per_node: serde_json::Map<_, _> = cost + .per_node + .iter() + .map(|(node, c)| { + ( + node.0.to_string(), + json!({ "cost": c.cost, "detail": c.detail }), + ) + }) + .collect(); + ( + id.clone(), + json!({ "total": cost.total, "unit": cost.unit, "source": cost.source, "per_node": per_node }), + ) + }) + .collect(); + let rejected: Vec<_> = selection + .rejected + .iter() + .map(|r| json!({ "id": r.id, "valid": r.valid, "reason": r.reason })) + .collect(); + json!({ "costs": costs, "selected": selection.selected, "rejected": rejected }) +} + /// A logical DAG as a flat node list: node `i` is `nodes[i]`, and children are /// node indices inside each operator. fn export(roots: &[QueryRoot]) -> Result { diff --git a/crates/devtools/tests/stage_pipeline.rs b/crates/devtools/tests/stage_pipeline.rs index 51f237f3..26fc4eff 100644 --- a/crates/devtools/tests/stage_pipeline.rs +++ b/crates/devtools/tests/stage_pipeline.rs @@ -1,10 +1,11 @@ -//! `stage_pipeline` writes a valid Stage 0/1 viewer document for #509 Example 1. +//! `stage_pipeline` writes a valid four-stage viewer document for #509 Example 1. use std::collections::HashSet; use std::path::PathBuf; use std::process::Command; use asap_types::ir::flat::FlatDag; use asap_types::ir::QueryRoot; +use asap_types::ir::physical_export::{PhysicalASAPDAG, PhysicalASAPDAGDocument}; use serde_json::Value; const COMMITTED: &str = "../../tools/dag-viewer/examples/planner-layering-example1.json"; @@ -45,8 +46,11 @@ fn validated_dag(value: &Value, queries: usize) { } } -/// Every DAG is a well-formed flat DAG with one root per query; ids are unique; -/// only Stages 0 and 1 are present; the committed fixture is current. +/// Every logical DAG is a well-formed flat DAG and every physical DAG validates; +/// each has one root per query; ids are unique; +/// Stage 2 maps Stage 1 one-to-one with no cost; Stage 3 accounts for every +/// Stage 2 candidate once and costs exactly the valid ones; the committed +/// fixture is current. #[test] fn example1_document_is_valid_and_committed_fixture_is_current() { let document = generate(&[]); @@ -60,8 +64,6 @@ fn example1_document_is_valid_and_committed_fixture_is_current() { assert_eq!(document["format"], "asap-stage-pipeline/v1"); let queries = document["workload"]["queries"].as_array().unwrap().len(); assert_eq!(queries, 2); - assert!(document.get("stage2_physical_asap").is_none()); - assert!(document.get("stage3_selection").is_none()); validated_dag(&document["stage0_logical"]["dag"], queries); let stage1 = &document["stage1_logical_asap"]; @@ -73,6 +75,39 @@ fn example1_document_is_valid_and_committed_fixture_is_current() { assert!(ids.insert(candidate["id"].as_str().unwrap())); validated_dag(&candidate["dag"], queries); } + + let physical = document["stage2_physical_asap"]["candidates"] + .as_array() + .unwrap(); + let sources: HashSet<_> = physical + .iter() + .map(|p| p["from_logical"].as_str().unwrap()) + .collect(); + assert_eq!(physical.len(), candidates.len()); + assert_eq!(sources, ids); + for candidate in physical { + assert!(candidate.get("cost").is_none(), "Stage 2 has no cost"); + let dag: PhysicalASAPDAG = serde_json::from_value(candidate["dag"].clone()).unwrap(); + assert_eq!(dag.roots.len(), queries); + PhysicalASAPDAGDocument::new(dag).validate().unwrap(); + } + + let stage3 = &document["stage3_selection"]; + let costs = stage3["costs"].as_object().unwrap(); + let selected = stage3["selected"].as_str().unwrap(); + let mut accounted = HashSet::from([selected]); + for rejection in stage3["rejected"].as_array().unwrap() { + let id = rejection["id"].as_str().unwrap(); + assert!(accounted.insert(id), "{id} accounted for once"); + assert!(!rejection["reason"].as_str().unwrap().is_empty()); + assert_eq!( + rejection["valid"].as_bool().unwrap(), + costs.contains_key(id) + ); + } + assert!(costs.contains_key(selected)); + let all: HashSet<_> = physical.iter().map(|p| p["id"].as_str().unwrap()).collect(); + assert_eq!(accounted, all); } /// The Cartesian product is cut at `--max-candidates` and says so. diff --git a/tools/dag-viewer/examples/planner-layering-example1.json b/tools/dag-viewer/examples/planner-layering-example1.json index e5b1febe..dfd2cf1e 100644 --- a/tools/dag-viewer/examples/planner-layering-example1.json +++ b/tools/dag-viewer/examples/planner-layering-example1.json @@ -2,55 +2,12 @@ "format": "asap-stage-pipeline/v1", "stage0_logical": { "dag": { - "nodes": [ + "edges": [ { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -75,30 +32,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 0, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "consumer": 2, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -123,36 +77,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 1, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 3, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -170,49 +115,6 @@ "nullable": false, "table": null }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": true, - "fields": [ { "dtype": { "Plain": "utf8" @@ -223,70 +125,24 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] }, - "timing": null + "producer": 2, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 5, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -311,30 +167,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 4, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 4, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "consumer": 6, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -359,37 +212,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 5, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 5, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -414,46 +257,47 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, + "producer": 6, + "role": "Input" + } + ], + "nodes": [ { + "coverage": null, "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 6, - "filters": [], - "having": null, - "measures": [ - { - "accuracy": { - "EpsilonDelta": { - "delta": 0.001, - "epsilon": 0.01 - } - }, - "k": 10, - "kind": "top_k" - } - ], - "output_names": [], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "instant_vector", - "schema": { + "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" @@ -466,84 +310,21 @@ "dtype": { "Plain": "utf8" }, - "name": "topk_10", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] }, - "timing": null - } - ], - "roots": [ - { - "Operator": 3 - }, - { - "Operator": 7 - } - ] - } - }, - "stage1_logical_asap": { - "candidates": [ - { - "dag": { - "nodes": [ - { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", + "payload": { + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], "schema": { - "closed": false, + "closed": true, "fields": [ { "dtype": { @@ -568,218 +349,251 @@ "name": "job", "nullable": true, "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null }, { "dtype": { "Plain": "utf8" }, - "name": "job", - "nullable": true, + "name": "$promql_series_identity", + "nullable": false, "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } + "source": { + "TimeSeries": { + "metric": "http_requests_total" } + } + } + }, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "result_kind": "instant_vector", - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + }, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 3, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "result_kind": "instant_vector", - "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 - ] + { + "dtype": { + "Plain": "float64" + }, + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 ] + } + } + }, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null }, - "result_kind": "instant_vector", + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "scan", + "predicates": [], "schema": { - "closed": false, + "closed": true, "fields": [ { "dtype": { @@ -804,30 +618,227 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 4, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + }, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk_10", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "accuracy": { + "EpsilonDelta": { + "delta": 0.001, + "epsilon": 0.01 + } + }, + "k": 10, + "kind": "top_k" + } + ], + "output_names": [], + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + "result_kind": "instant_vector" + } + ], + "roots": [ + { + "Operator": 3 + }, + { + "Operator": 7 + } + ] + } + }, + "stage1_logical_asap": { + "candidates": [ + { + "dag": { + "edges": [ + { + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -852,37 +863,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 0, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 5, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 2, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -907,46 +908,44 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 1, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 6, - "filters": [], - "having": null, - "measures": [ - { - "accuracy": { - "EpsilonDelta": { - "delta": 0.001, - "epsilon": 0.01 - } - }, - "k": 10, - "kind": "top_k" - } - ], - "output_names": [], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "instant_vector", - "schema": { + "consumer": 3, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -959,84 +958,22 @@ "dtype": { "Plain": "utf8" }, - "name": "topk_10", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] }, - "timing": null - } - ], - "roots": [ - { - "Operator": 3 + "producer": 2, + "role": "Input" }, { - "Operator": 7 - } - ] - }, - "id": "L1", - "label": "Q1 exact · Q2 exact" - }, - { - "dag": { - "nodes": [ - { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 5, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -1061,30 +998,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 4, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "consumer": 6, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -1109,36 +1043,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 5, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -1156,49 +1081,6 @@ "nullable": false, "table": null }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": true, - "fields": [ { "dtype": { "Plain": "utf8" @@ -1209,70 +1091,27 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] }, - "timing": null - }, + "producer": 6, + "role": "Input" + } + ], + "nodes": [ { + "coverage": null, "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 0, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -1297,30 +1136,78 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 4, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -1345,89 +1232,38 @@ "name": "job", "nullable": true, "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "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" - } - } - }, - "result_kind": "state", - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null }, { "dtype": { "Plain": "utf8" }, - "name": "job", - "nullable": true, + "name": "$promql_series_identity", + "nullable": false, "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 6 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 2, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -1452,44 +1288,43 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 7, - "filters": [], - "having": null, - "measures": [ - { - "accuracy": { - "EpsilonDelta": { - "delta": 0.001, - "epsilon": 0.01 - } - }, - "k": 10, - "kind": "top_k" - } - ], - "output_names": [], - "reduction": { - "Reduce": [ - 2 - ] + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" } - } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } }, - "result_kind": "instant_vector", - "schema": { + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { @@ -1502,9 +1337,9 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "topk_10", + "name": "sum", "nullable": false, "table": null } @@ -1516,72 +1351,36 @@ ] ] }, - "timing": null - } - ], - "roots": [ - { - "Operator": 3 - }, - { - "Operator": 8 - } - ] - }, - "id": "L2", - "label": "Q1 exact · Q2 exact (Sum acc)" - }, - { - "dag": { - "nodes": [ - { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -1606,30 +1405,78 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -1654,36 +1501,38 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { + "coverage": null, "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 6, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -1708,40 +1557,44 @@ "name": "job", "nullable": true, "table": null - } + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" } - } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } }, - "result_kind": "instant_vector", - "schema": { + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ { @@ -1754,9 +1607,9 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "topk_10", "nullable": false, "table": null } @@ -1768,56 +1621,55 @@ ] ] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "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": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "accuracy": { + "EpsilonDelta": { + "delta": 0.001, + "epsilon": 0.01 } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + }, + "k": 10, + "kind": "top_k" } + ], + "output_names": [], + "reduction": { + "Reduce": [ + 2 + ] } } }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + } + ], + "roots": [ + { + "Operator": 3 + }, + { + "Operator": 7 + } + ] + }, + "id": "L1", + "label": "Q1 exact · Q2 exact" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -1842,30 +1694,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 0, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 4, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "consumer": 2, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -1890,37 +1739,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 1, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 5, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 3, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -1945,125 +1784,44 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 2, + "role": "Input" }, { - "guarantee": null, - "operator": { - "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": { - "EntityIdentity": { - "PromqlLabelSet": { - "excluding": [ - { - "Named": "job" - } - ] - } - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "state", - "schema": { + "consumer": 5, + "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 - ] - ] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 7 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -2076,84 +1834,22 @@ "dtype": { "Plain": "utf8" }, - "name": "topk", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] }, - "timing": null - } - ], - "roots": [ - { - "Operator": 3 + "producer": 4, + "role": "Input" }, { - "Operator": 8 - } - ] - }, - "id": "L3", - "label": "Q1 exact · Q2 CMS+heap" - }, - { - "dag": { - "nodes": [ - { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 6, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -2178,30 +1874,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 5, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -2213,9 +1906,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -2226,36 +1922,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 6, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 8, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -2280,42 +1967,47 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, + "producer": 7, + "role": "Input" + } + ], + "nodes": [ { + "coverage": null, "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "instant_vector", - "schema": { + "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" @@ -2326,70 +2018,75 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null + "payload": { + "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 - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -2414,30 +2111,38 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { + "coverage": null, "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 4, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "id": 2, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -2462,43 +2167,99 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + }, + "result_kind": "instant_vector" }, { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "SummaryAgg": { - "child": 5, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "id": 3, + "output_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": { + "Plain": "float64" }, - "reduction": "PerEntity" + "name": "sum", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } }, - "result_kind": "state", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -2510,12 +2271,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -2526,25 +2284,78 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 6 + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -2569,125 +2380,70 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { - "guarantee": null, - "operator": { - "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": { - "EntityIdentity": { - "PromqlLabelSet": { - "excluding": [ - { - "Named": "job" - } - ] - } - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } }, - "result_kind": "state", - "schema": { + "guarantee": null, + "id": 6, + "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 - ] - ] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 8 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -2700,84 +2456,43 @@ "dtype": { "Plain": "utf8" }, - "name": "topk", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 + "time_index": 0, + "unique_keys": [] + }, + "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" }, - "timing": null - } - ], - "roots": [ - { - "Operator": 3 + "result_kind": "state" }, { - "Operator": 9 - } - ] - }, - "id": "L4", - "label": "Q1 exact · Q2 CMS+heap (Sum acc)" - }, - { - "dag": { - "nodes": [ - { + "coverage": null, "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 7, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -2802,30 +2517,104 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" }, { + "coverage": null, "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk_10", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "accuracy": { + "EpsilonDelta": { + "delta": 0.001, + "epsilon": 0.01 + } + }, + "k": 10, + "kind": "top_k" } + ], + "output_names": [], + "reduction": { + "Reduce": [ + 2 + ] } } }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + } + ], + "roots": [ + { + "Operator": 3 + }, + { + "Operator": 8 + } + ] + }, + "id": "L2", + "label": "Q1 exact · Q2 exact (Sum acc)" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -2850,36 +2639,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 0, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 2, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -2904,42 +2684,44 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 1, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "instant_vector", - "schema": { + "consumer": 3, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -2950,70 +2732,24 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] }, - "timing": null + "producer": 2, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 5, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -3038,30 +2774,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 4, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 4, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "consumer": 6, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -3086,37 +2819,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 5, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 5, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -3141,66 +2864,26 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 6, + "role": "Input" }, { - "guarantee": null, - "operator": { - "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": { - "EntityIdentity": { - "PromqlLabelSet": { - "excluding": [ - { - "Named": "job" - } - ] - } - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "state", - "schema": { + "consumer": 8, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -3215,13 +2898,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CountSketchWithHeap", + "algorithm": "CmsWithHeap", "category": "TopK", "params": { - "CountSketchWithHeap": { - "depth": 125, + "CmsWithHeap": { + "depth": 7, "heap_size": 100, - "width": 30000 + "width": 272 } } }, @@ -3240,116 +2923,17 @@ ] ] }, - "timing": null - }, + "producer": 7, + "role": "Input" + } + ], + "nodes": [ { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 7 - } - } - }, - "result_kind": "instant_vector", - "schema": { + "id": 0, + "output_schema": { "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "topk", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "timing": null - } - ], - "roots": [ - { - "Operator": 3 - }, - { - "Operator": 8 - } - ] - }, - "id": "L5", - "label": "Q1 exact · Q2 CountSketch+heap" - }, - { - "dag": { - "nodes": [ - { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, "fields": [ { "dtype": { @@ -3374,30 +2958,78 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -3422,36 +3054,38 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { + "coverage": null, "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 2, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -3476,40 +3110,43 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 2, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" } - } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } }, - "result_kind": "instant_vector", - "schema": { + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { @@ -3536,56 +3173,36 @@ ] ] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -3610,30 +3227,78 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 4, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -3658,43 +3323,38 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { + "coverage": null, "guarantee": null, - "operator": { - "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" - } - } - }, - "result_kind": "state", - "schema": { - "closed": false, + "id": 6, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -3706,12 +3366,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -3722,137 +3379,84 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + }, + "result_kind": "instant_vector" }, { - "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 6 + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "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": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "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": { - "EntityIdentity": { - "PromqlLabelSet": { - "excluding": [ - { - "Named": "job" - } - ] - } - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "state", - "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", + "name": "state", "nullable": false, "table": null } @@ -3864,24 +3468,52 @@ ] ] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 + "payload": { + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } } }, - "summary_input": 8 + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] } }, - "result_kind": "instant_vector", - "schema": { + "result_kind": "state" + }, + { + "coverage": null, + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -3908,7 +3540,15 @@ ] ] }, - "timing": null + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + }, + "result_kind": "instant_vector" } ], "roots": [ @@ -3916,64 +3556,21 @@ "Operator": 3 }, { - "Operator": 9 + "Operator": 8 } ] }, - "id": "L6", - "label": "Q1 exact · Q2 CountSketch+heap (Sum acc)" + "id": "L3", + "label": "Q1 exact · Q2 CMS+heap" }, { "dag": { - "nodes": [ + "edges": [ { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -3998,30 +3595,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 0, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "consumer": 2, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -4046,43 +3640,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 1, + "role": "Input" }, { - "guarantee": null, - "operator": { - "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" - } - } - }, - "result_kind": "state", - "schema": { - "closed": false, + "consumer": 3, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -4094,12 +3672,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -4110,25 +3685,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 2, + "role": "Input" }, { - "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 5, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -4153,42 +3730,44 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 4, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "instant_vector", - "schema": { + "consumer": 6, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -4199,70 +3778,24 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] }, - "timing": null + "producer": 5, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -4274,9 +3807,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -4287,30 +3823,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 6, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "consumer": 8, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -4335,99 +3868,26 @@ "name": "job", "nullable": true, "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 6, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null }, { "dtype": { "Plain": "utf8" }, - "name": "job", - "nullable": true, + "name": "$promql_series_identity", + "nullable": false, "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 7, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 7, - "filters": [], - "having": null, - "measures": [ - { - "accuracy": { - "EpsilonDelta": { - "delta": 0.001, - "epsilon": 0.01 - } - }, - "k": 10, - "kind": "top_k" - } - ], - "output_names": [], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "instant_vector", - "schema": { + "consumer": 9, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -4440,9 +3900,22 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "topk_10", + "name": "state", "nullable": false, "table": null } @@ -4454,72 +3927,17 @@ ] ] }, - "timing": null + "producer": 8, + "role": "Input" } ], - "roots": [ - { - "Operator": 4 - }, - { - "Operator": 8 - } - ] - }, - "id": "L7", - "label": "Q1 exact (Rate acc) · Q2 exact" - }, - { - "dag": { "nodes": [ { + "coverage": null, "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 0, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -4544,30 +3962,78 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -4592,89 +4058,38 @@ "name": "job", "nullable": true, "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "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" - } - } - }, - "result_kind": "state", - "schema": { - "closed": false, - "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, + "name": "$promql_series_identity", + "nullable": false, "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 2, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -4699,40 +4114,43 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" } - } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } }, - "result_kind": "instant_vector", - "schema": { + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { @@ -4759,56 +4177,36 @@ ] ] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -4833,30 +4231,78 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -4881,43 +4327,50 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { - "guarantee": null, - "operator": { - "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": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } }, - "result_kind": "state", - "schema": { - "closed": false, + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -4945,25 +4398,48 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "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" + }, + "result_kind": "state" }, { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 7 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 7, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -4988,44 +4464,126 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 8, - "filters": [], - "having": null, - "measures": [ - { - "accuracy": { - "EpsilonDelta": { - "delta": 0.001, - "epsilon": 0.01 + "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 + } } }, - "k": 10, - "kind": "top_k" - } - ], - "output_names": [], - "reduction": { - "Reduce": [ - 2 + "PerSubpopulationInstance" ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "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": "unknown_or_signed" } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] } }, - "result_kind": "instant_vector", - "schema": { + "result_kind": "state" + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -5040,7 +4598,7 @@ "dtype": { "Plain": "utf8" }, - "name": "topk_10", + "name": "topk", "nullable": false, "table": null } @@ -5052,72 +4610,37 @@ ] ] }, - "timing": null + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + }, + "result_kind": "instant_vector" } ], "roots": [ { - "Operator": 4 + "Operator": 3 }, { "Operator": 9 } ] }, - "id": "L8", - "label": "Q1 exact (Rate acc) · Q2 exact (Sum acc)" + "id": "L4", + "label": "Q1 exact · Q2 CMS+heap (Sum acc)" }, { "dag": { - "nodes": [ + "edges": [ { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -5142,30 +4665,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 0, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "consumer": 2, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -5190,43 +4710,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 1, + "role": "Input" }, { - "guarantee": null, - "operator": { - "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" - } - } - }, - "result_kind": "state", - "schema": { - "closed": false, + "consumer": 3, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -5238,12 +4742,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -5254,25 +4755,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 2, + "role": "Input" }, { - "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 5, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -5290,49 +4793,6 @@ "nullable": false, "table": null }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": true, - "fields": [ { "dtype": { "Plain": "utf8" @@ -5343,70 +4803,24 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] }, - "timing": null + "producer": 4, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 6, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -5431,30 +4845,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 5, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -5479,121 +4890,26 @@ "name": "job", "nullable": true, "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 6, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null }, { "dtype": { "Plain": "utf8" }, - "name": "job", - "nullable": true, + "name": "$promql_series_identity", + "nullable": false, "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 6, + "role": "Input" }, { - "guarantee": null, - "operator": { - "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": { - "EntityIdentity": { - "PromqlLabelSet": { - "excluding": [ - { - "Named": "job" - } - ] - } - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "state", - "schema": { + "consumer": 8, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -5608,13 +4924,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CmsWithHeap", + "algorithm": "CountSketchWithHeap", "category": "TopK", "params": { - "CmsWithHeap": { - "depth": 7, + "CountSketchWithHeap": { + "depth": 125, "heap_size": 100, - "width": 272 + "width": 30000 } } }, @@ -5633,116 +4949,17 @@ ] ] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 8 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "topk", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "timing": null + "producer": 7, + "role": "Input" } ], - "roots": [ - { - "Operator": 4 - }, - { - "Operator": 9 - } - ] - }, - "id": "L9", - "label": "Q1 exact (Rate acc) · Q2 CMS+heap" - }, - { - "dag": { "nodes": [ { + "coverage": null, "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 0, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -5767,30 +4984,78 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -5815,89 +5080,38 @@ "name": "job", "nullable": true, "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "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" - } - } - }, - "result_kind": "state", - "schema": { - "closed": false, - "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, + "name": "$promql_series_identity", + "nullable": false, "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 2, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -5922,40 +5136,43 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" } - } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } }, - "result_kind": "instant_vector", - "schema": { + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 3, + "output_schema": { "closed": true, "fields": [ { @@ -5982,56 +5199,36 @@ ] ] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -6056,91 +5253,78 @@ "name": "job", "nullable": true, "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null }, { "dtype": { "Plain": "utf8" }, - "name": "job", - "nullable": true, + "name": "$promql_series_identity", + "nullable": false, "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "ASAP": { - "SummaryAgg": { - "child": 6, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": null, - "weight": { - "Column": "SampleValue" + "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 }, - "weight_domain": { - "kind": "unknown_or_signed" + { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } } }, - "result_kind": "state", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -6152,12 +5336,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -6168,25 +5349,38 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 7 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 6, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -6211,66 +5405,56 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + }, + "result_kind": "instant_vector" }, { - "guarantee": null, - "operator": { - "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": { - "EntityIdentity": { - "PromqlLabelSet": { - "excluding": [ - { - "Named": "job" - } - ] - } - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } }, - "result_kind": "state", - "schema": { + "guarantee": null, + "id": 7, + "output_schema": { "closed": true, "fields": [ { @@ -6285,13 +5469,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CmsWithHeap", + "algorithm": "CountSketchWithHeap", "category": "TopK", "params": { - "CmsWithHeap": { - "depth": 7, + "CountSketchWithHeap": { + "depth": 125, "heap_size": 100, - "width": 272 + "width": 30000 } } }, @@ -6310,24 +5494,52 @@ ] ] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 + "payload": { + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } } }, - "summary_input": 9 + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] } }, - "result_kind": "instant_vector", - "schema": { + "result_kind": "state" + }, + { + "coverage": null, + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -6354,72 +5566,37 @@ ] ] }, - "timing": null + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + }, + "result_kind": "instant_vector" } ], "roots": [ { - "Operator": 4 + "Operator": 3 }, { - "Operator": 10 + "Operator": 8 } ] }, - "id": "L10", - "label": "Q1 exact (Rate acc) · Q2 CMS+heap (Sum acc)" + "id": "L5", + "label": "Q1 exact · Q2 CountSketch+heap" }, { "dag": { - "nodes": [ + "edges": [ { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -6444,30 +5621,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 0, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "consumer": 2, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -6492,43 +5666,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 1, + "role": "Input" }, { - "guarantee": null, - "operator": { - "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" - } - } - }, - "result_kind": "state", - "schema": { - "closed": false, + "consumer": 3, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -6540,12 +5698,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -6556,25 +5711,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 2, + "role": "Input" }, { - "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 5, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -6599,164 +5756,72 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 4, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "instant_vector", - "schema": { + "consumer": 6, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" + "Plain": "timestamp" }, - "name": "job", - "nullable": true, + "name": "ts", + "nullable": false, "table": null }, { "dtype": { "Plain": "float64" }, - "name": "sum", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", + "name": "value", "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 } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 5, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -6768,9 +5833,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -6781,37 +5849,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 6, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 6, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 8, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -6836,66 +5894,26 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 7, + "role": "Input" }, { - "guarantee": null, - "operator": { - "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": { - "EntityIdentity": { - "PromqlLabelSet": { - "excluding": [ - { - "Named": "job" - } - ] - } - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "state", - "schema": { + "consumer": 9, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -6935,116 +5953,17 @@ ] ] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 8 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "topk", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "timing": null + "producer": 8, + "role": "Input" } ], - "roots": [ - { - "Operator": 4 - }, - { - "Operator": 9 - } - ] - }, - "id": "L11", - "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap" - }, - { - "dag": { "nodes": [ { + "coverage": null, "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 0, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -7069,30 +5988,78 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -7117,43 +6084,38 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { + "coverage": null, "guarantee": null, - "operator": { - "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" - } - } - }, - "result_kind": "state", - "schema": { - "closed": false, + "id": 2, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -7165,12 +6127,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -7181,98 +6140,58 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + }, + "result_kind": "instant_vector" }, { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "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" }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 3, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "sum", + "name": "sum", "nullable": false, "table": null } @@ -7284,56 +6203,36 @@ ] ] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 4, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -7358,30 +6257,78 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -7406,43 +6353,50 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { - "guarantee": null, - "operator": { - "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": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } }, - "result_kind": "state", - "schema": { - "closed": false, + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -7470,25 +6424,48 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "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" + }, + "result_kind": "state" }, { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 7 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 7, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -7513,66 +6490,41 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" }, { - "guarantee": null, - "operator": { - "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": { - "EntityIdentity": { - "PromqlLabelSet": { - "excluding": [ - { - "Named": "job" - } - ] - } - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } }, - "result_kind": "state", - "schema": { + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -7612,24 +6564,52 @@ ] ] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 + "payload": { + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } } }, - "summary_input": 9 + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] } }, - "result_kind": "instant_vector", - "schema": { + "result_kind": "state" + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -7656,72 +6636,37 @@ ] ] }, - "timing": null + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + }, + "result_kind": "instant_vector" } ], "roots": [ { - "Operator": 4 + "Operator": 3 }, { - "Operator": 10 + "Operator": 9 } ] }, - "id": "L12", - "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap (Sum acc)" + "id": "L6", + "label": "Q1 exact · Q2 CountSketch+heap (Sum acc)" }, { "dag": { - "nodes": [ + "edges": [ { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -7746,30 +6691,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 0, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "consumer": 2, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -7794,36 +6736,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 1, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 3, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -7835,9 +6768,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -7848,90 +6784,44 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 2, + "role": "Input" }, { - "guarantee": null, - "operator": { - "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 - ] - } - } - } - }, - "result_kind": "state", - "schema": { + "consumer": 4, + "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 - ] - ] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -7942,70 +6832,24 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] }, - "timing": null + "producer": 3, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 6, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -8030,30 +6874,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 5, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -8078,37 +6919,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 6, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 6, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 8, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -8133,46 +6964,47 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, + "producer": 7, + "role": "Input" + } + ], + "nodes": [ { + "coverage": null, "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 7, - "filters": [], - "having": null, - "measures": [ - { - "accuracy": { - "EpsilonDelta": { - "delta": 0.001, - "epsilon": 0.01 - } - }, - "k": 10, - "kind": "top_k" - } - ], - "output_names": [], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "instant_vector", - "schema": { + "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" @@ -8185,84 +7017,73 @@ "dtype": { "Plain": "utf8" }, - "name": "topk_10", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] }, - "timing": null - } - ], - "roots": [ - { - "Operator": 4 - }, - { - "Operator": 8 - } - ] - }, - "id": "L13", - "label": "Q1 exact (Sum acc) · Q2 exact" - }, - { - "dag": { - "nodes": [ - { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null + "payload": { + "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 - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -8287,30 +7108,50 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -8322,9 +7163,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -8335,36 +7179,48 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "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" + }, + "result_kind": "state" }, { + "coverage": null, "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 3, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -8382,55 +7238,6 @@ "nullable": false, "table": null }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "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 - ] - } - } - } - }, - "result_kind": "state", - "schema": { - "closed": true, - "fields": [ { "dtype": { "Plain": "utf8" @@ -8441,36 +7248,26 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] }, - "timing": null + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" }, { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 - } - } - }, - "result_kind": "instant_vector", - "schema": { + "id": 4, + "output_schema": { "closed": true, "fields": [ { @@ -8497,56 +7294,36 @@ ] ] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -8571,30 +7348,78 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -8619,89 +7444,38 @@ "name": "job", "nullable": true, "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "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" - } - } - }, - "result_kind": "state", - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null }, { "dtype": { "Plain": "utf8" }, - "name": "job", - "nullable": true, + "name": "$promql_series_identity", + "nullable": false, "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 7 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 7, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -8726,44 +7500,44 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 8, - "filters": [], - "having": null, - "measures": [ - { - "accuracy": { - "EpsilonDelta": { - "delta": 0.001, - "epsilon": 0.01 - } - }, - "k": 10, - "kind": "top_k" - } - ], - "output_names": [], - "reduction": { - "Reduce": [ - 2 - ] + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" } - } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" } }, - "result_kind": "instant_vector", - "schema": { + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -8790,7 +7564,33 @@ ] ] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "accuracy": { + "EpsilonDelta": { + "delta": 0.001, + "epsilon": 0.01 + } + }, + "k": 10, + "kind": "top_k" + } + ], + "output_names": [], + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + "result_kind": "instant_vector" } ], "roots": [ @@ -8798,64 +7598,21 @@ "Operator": 4 }, { - "Operator": 9 + "Operator": 8 } ] }, - "id": "L14", - "label": "Q1 exact (Sum acc) · Q2 exact (Sum acc)" + "id": "L7", + "label": "Q1 exact (Rate acc) · Q2 exact" }, { "dag": { - "nodes": [ + "edges": [ { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -8880,30 +7637,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 0, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "consumer": 2, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -8928,36 +7682,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 1, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 3, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -8969,9 +7714,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -8982,90 +7730,44 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 2, + "role": "Input" }, { - "guarantee": null, - "operator": { - "ASAP": { - "SummaryAgg": { - "child": 2, - "family": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "consumer": 4, + "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" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "state", - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "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 - ] - ] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -9076,70 +7778,24 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] }, - "timing": null + "producer": 3, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 6, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -9164,30 +7820,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 5, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -9212,37 +7865,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 6, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 6, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 8, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -9254,9 +7897,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -9267,125 +7913,44 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 7, + "role": "Input" }, { - "guarantee": null, - "operator": { - "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": { - "EntityIdentity": { - "PromqlLabelSet": { - "excluding": [ - { - "Named": "job" - } - ] - } - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "state", - "schema": { + "consumer": 9, + "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 - ] - ] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 8 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -9398,84 +7963,25 @@ "dtype": { "Plain": "utf8" }, - "name": "topk", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] }, - "timing": null + "producer": 8, + "role": "Input" } ], - "roots": [ - { - "Operator": 4 - }, - { - "Operator": 9 - } - ] - }, - "id": "L15", - "label": "Q1 exact (Sum acc) · Q2 CMS+heap" - }, - { - "dag": { "nodes": [ { + "coverage": null, "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 0, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -9500,30 +8006,78 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -9548,36 +8102,50 @@ "name": "job", "nullable": true, "table": null - } - ], + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { - "guarantee": null, - "operator": { - "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" } } }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -9589,9 +8157,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -9602,48 +8173,65 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "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" + }, + "result_kind": "state" }, { + "coverage": null, "guarantee": null, - "operator": { - "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 - ] - } - } - } - }, - "result_kind": "state", - "schema": { + "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" @@ -9654,36 +8242,26 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] + }, + "payload": { + "kind": "finalize_exact_accumulator" }, - "timing": null + "result_kind": "instant_vector" }, { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 - } - } - }, - "result_kind": "instant_vector", - "schema": { + "id": 4, + "output_schema": { "closed": true, "fields": [ { @@ -9710,56 +8288,36 @@ ] ] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -9784,30 +8342,78 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -9832,43 +8438,50 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { - "guarantee": null, - "operator": { - "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": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } }, - "result_kind": "state", - "schema": { - "closed": false, + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -9896,25 +8509,48 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "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" + }, + "result_kind": "state" }, { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 7 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 8, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -9939,66 +8575,29 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" }, { + "coverage": null, "guarantee": null, - "operator": { - "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": { - "EntityIdentity": { - "PromqlLabelSet": { - "excluding": [ - { - "Named": "job" - } - ] - } - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "state", - "schema": { + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -10011,22 +8610,9 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "topk_10", "nullable": false, "table": null } @@ -10038,51 +8624,33 @@ ] ] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 9 + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "accuracy": { + "EpsilonDelta": { + "delta": 0.001, + "epsilon": 0.01 + } + }, + "k": 10, + "kind": "top_k" + } + ], + "output_names": [], + "reduction": { + "Reduce": [ + 2 + ] } } }, - "result_kind": "instant_vector", - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "topk", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "timing": null + "result_kind": "instant_vector" } ], "roots": [ @@ -10090,64 +8658,21 @@ "Operator": 4 }, { - "Operator": 10 + "Operator": 9 } ] }, - "id": "L16", - "label": "Q1 exact (Sum acc) · Q2 CMS+heap (Sum acc)" + "id": "L8", + "label": "Q1 exact (Rate acc) · Q2 exact (Sum acc)" }, { "dag": { - "nodes": [ + "edges": [ { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -10172,30 +8697,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 0, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "consumer": 2, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -10220,36 +8742,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 1, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 3, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -10261,9 +8774,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -10274,90 +8790,44 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 2, + "role": "Input" }, { - "guarantee": null, - "operator": { - "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 - ] - } - } - } - }, - "result_kind": "state", - "schema": { + "consumer": 4, + "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 - ] - ] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -10368,70 +8838,24 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] }, - "timing": null + "producer": 3, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 6, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -10456,30 +8880,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 5, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -10504,37 +8925,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 6, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 6, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 8, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -10559,66 +8970,26 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 7, + "role": "Input" }, { - "guarantee": null, - "operator": { - "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": { - "EntityIdentity": { - "PromqlLabelSet": { - "excluding": [ - { - "Named": "job" - } - ] - } - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "state", - "schema": { + "consumer": 9, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -10633,13 +9004,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CountSketchWithHeap", + "algorithm": "CmsWithHeap", "category": "TopK", "params": { - "CountSketchWithHeap": { - "depth": 125, + "CmsWithHeap": { + "depth": 7, "heap_size": 100, - "width": 30000 + "width": 272 } } }, @@ -10658,116 +9029,113 @@ ] ] }, - "timing": null - }, + "producer": 8, + "role": "Input" + } + ], + "nodes": [ { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 8 - } - } - }, - "result_kind": "instant_vector", - "schema": { + "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": "topk", + "name": "value", + "nullable": false, + "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, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] }, - "timing": null - } - ], - "roots": [ - { - "Operator": 4 - }, - { - "Operator": 9 - } - ] - }, - "id": "L17", - "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap" - }, - { - "dag": { - "nodes": [ - { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null + "payload": { + "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 - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -10792,30 +9160,50 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -10827,9 +9215,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -10840,36 +9231,48 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "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" + }, + "result_kind": "state" }, { + "coverage": null, "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 1, - "filters": [], - "having": null, - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 3, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -10887,55 +9290,6 @@ "nullable": false, "table": null }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "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 - ] - } - } - } - }, - "result_kind": "state", - "schema": { - "closed": true, - "fields": [ { "dtype": { "Plain": "utf8" @@ -10946,36 +9300,26 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] + }, + "payload": { + "kind": "finalize_exact_accumulator" }, - "timing": null + "result_kind": "instant_vector" }, { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 3 - } - } - }, - "result_kind": "instant_vector", - "schema": { + "id": 4, + "output_schema": { "closed": true, "fields": [ { @@ -11002,56 +9346,36 @@ ] ] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -11076,30 +9400,78 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 5, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -11124,43 +9496,38 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { + "coverage": null, "guarantee": null, - "operator": { - "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" - } - } - }, - "result_kind": "state", - "schema": { - "closed": false, + "id": 7, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -11172,12 +9539,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -11188,109 +9552,56 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 7 - } - } + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } }, - "result_kind": "instant_vector", - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, + "result_kind": "instant_vector" + }, + { + "coverage": { + "regions": [ { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null + "population": {}, + "time_ms": null } ], - "time_index": 0, - "unique_keys": [] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "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": { - "EntityIdentity": { - "PromqlLabelSet": { - "excluding": [ - { - "Named": "job" - } - ] - } - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } }, - "result_kind": "state", - "schema": { + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -11305,13 +9616,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CountSketchWithHeap", + "algorithm": "CmsWithHeap", "category": "TopK", "params": { - "CountSketchWithHeap": { - "depth": 125, + "CmsWithHeap": { + "depth": 7, "heap_size": 100, - "width": 30000 + "width": 272 } } }, @@ -11330,24 +9641,52 @@ ] ] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 + "payload": { + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } } }, - "summary_input": 9 + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] } }, - "result_kind": "instant_vector", - "schema": { + "result_kind": "state" + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -11374,7 +9713,15 @@ ] ] }, - "timing": null + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + }, + "result_kind": "instant_vector" } ], "roots": [ @@ -11382,64 +9729,21 @@ "Operator": 4 }, { - "Operator": 10 + "Operator": 9 } ] }, - "id": "L18", - "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap (Sum acc)" + "id": "L9", + "label": "Q1 exact (Rate acc) · Q2 CMS+heap" }, { "dag": { - "nodes": [ + "edges": [ { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -11464,30 +9768,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 0, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "consumer": 2, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -11512,43 +9813,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 1, + "role": "Input" }, { - "guarantee": null, - "operator": { - "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" - } - } - }, - "result_kind": "state", - "schema": { - "closed": false, + "consumer": 3, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -11576,25 +9861,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 2, + "role": "Input" }, { - "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 4, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -11619,90 +9906,44 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 3, + "role": "Input" }, { - "guarantee": null, - "operator": { - "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 - ] - } - } - } - }, - "result_kind": "state", - "schema": { + "consumer": 6, + "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 - ] - ] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 4 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -11713,70 +9954,24 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] }, - "timing": null + "producer": 5, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -11801,30 +9996,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 6, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 6, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "consumer": 8, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -11836,9 +10028,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -11849,37 +10044,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 7, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 7, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 9, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -11904,44 +10089,26 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 8, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 8, - "filters": [], - "having": null, - "measures": [ - { - "accuracy": { - "EpsilonDelta": { - "delta": 0.001, - "epsilon": 0.01 - } - }, - "k": 10, - "kind": "top_k" - } - ], - "output_names": [], - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "instant_vector", - "schema": { + "consumer": 10, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -11954,9 +10121,22 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "topk_10", + "name": "state", "nullable": false, "table": null } @@ -11968,72 +10148,17 @@ ] ] }, - "timing": null + "producer": 9, + "role": "Input" } ], - "roots": [ - { - "Operator": 5 - }, - { - "Operator": 9 - } - ] - }, - "id": "L19", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact" - }, - { - "dag": { "nodes": [ { + "coverage": null, "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 0, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -12058,30 +10183,78 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -12106,43 +10279,50 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { - "guarantee": null, - "operator": { - "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" } } }, - "result_kind": "state", - "schema": { - "closed": false, + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -12170,25 +10350,48 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "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" + }, + "result_kind": "state" }, { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 3, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -12206,55 +10409,6 @@ "nullable": false, "table": null }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "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 - ] - } - } - } - }, - "result_kind": "state", - "schema": { - "closed": true, - "fields": [ { "dtype": { "Plain": "utf8" @@ -12265,36 +10419,26 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] }, - "timing": null + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" }, { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 4 - } - } - }, - "result_kind": "instant_vector", - "schema": { + "id": 4, + "output_schema": { "closed": true, "fields": [ { @@ -12321,56 +10465,36 @@ ] ] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -12395,40 +10519,88 @@ "name": "job", "nullable": true, "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 6, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, - "fields": [ + }, { "dtype": { - "Plain": "timestamp" + "Plain": "utf8" }, - "name": "ts", + "name": "$promql_series_identity", "nullable": false, "table": null - }, - { + } + ], + "time_index": 0, + "unique_keys": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { "dtype": { "Plain": "float64" }, @@ -12443,43 +10615,50 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { - "guarantee": null, - "operator": { - "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": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } }, - "result_kind": "state", - "schema": { - "closed": false, + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -12507,25 +10686,48 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "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" + }, + "result_kind": "state" }, { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 8 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 8, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -12550,44 +10752,126 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" }, { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 9, - "filters": [], - "having": null, - "measures": [ - { - "accuracy": { - "EpsilonDelta": { - "delta": 0.001, - "epsilon": 0.01 + "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 + } } }, - "k": 10, - "kind": "top_k" - } - ], - "output_names": [], - "reduction": { - "Reduce": [ - 2 + "PerSubpopulationInstance" ] + }, + "name": "state", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "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": "unknown_or_signed" } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] } }, - "result_kind": "instant_vector", - "schema": { + "result_kind": "state" + }, + { + "coverage": null, + "guarantee": null, + "id": 10, + "output_schema": { "closed": true, "fields": [ { @@ -12602,7 +10886,7 @@ "dtype": { "Plain": "utf8" }, - "name": "topk_10", + "name": "topk", "nullable": false, "table": null } @@ -12614,72 +10898,37 @@ ] ] }, - "timing": null + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + }, + "result_kind": "instant_vector" } ], "roots": [ { - "Operator": 5 + "Operator": 4 }, { "Operator": 10 } ] }, - "id": "L20", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact (Sum acc)" + "id": "L10", + "label": "Q1 exact (Rate acc) · Q2 CMS+heap (Sum acc)" }, { "dag": { - "nodes": [ + "edges": [ { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -12704,30 +10953,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 0, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "consumer": 2, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -12752,43 +10998,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 1, + "role": "Input" }, { - "guarantee": null, - "operator": { - "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" - } - } - }, - "result_kind": "state", - "schema": { - "closed": false, + "consumer": 3, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -12816,25 +11046,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 2, + "role": "Input" }, { - "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 4, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -12859,90 +11091,44 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 3, + "role": "Input" }, { - "guarantee": null, - "operator": { - "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 - ] - } - } - } - }, - "result_kind": "state", - "schema": { + "consumer": 6, + "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 - ] - ] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 4 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -12953,70 +11139,24 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] }, - "timing": null + "producer": 5, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -13041,85 +11181,27 @@ "name": "job", "nullable": true, "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 6, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null }, { "dtype": { "Plain": "utf8" }, - "name": "job", - "nullable": true, + "name": "$promql_series_identity", + "nullable": false, "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 6, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 7, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 8, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -13144,66 +11226,26 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 7, + "role": "Input" }, { - "guarantee": null, - "operator": { - "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": { - "EntityIdentity": { - "PromqlLabelSet": { - "excluding": [ - { - "Named": "job" - } - ] - } - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "state", - "schema": { + "consumer": 9, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -13218,13 +11260,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CmsWithHeap", + "algorithm": "CountSketchWithHeap", "category": "TopK", "params": { - "CmsWithHeap": { - "depth": 7, + "CountSketchWithHeap": { + "depth": 125, "heap_size": 100, - "width": 272 + "width": 30000 } } }, @@ -13243,26 +11285,34 @@ ] ] }, - "timing": null - }, + "producer": 8, + "role": "Input" + } + ], + "nodes": [ { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 9 - } - } - }, - "result_kind": "instant_vector", - "schema": { + "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" @@ -13275,84 +11325,73 @@ "dtype": { "Plain": "utf8" }, - "name": "topk", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] }, - "timing": null - } - ], - "roots": [ - { - "Operator": 5 - }, - { - "Operator": 10 - } - ] - }, - "id": "L21", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap" - }, - { - "dag": { - "nodes": [ - { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null + "payload": { + "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 - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -13377,30 +11416,50 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -13412,9 +11471,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -13425,89 +11487,48 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "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" - } - } - }, - "result_kind": "state", - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] - }, - "name": "state", - "nullable": false, - "table": null + "payload": { + "family": { + "ExactAggregate": [ + "Rate", + "Rate" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null + "weight_domain": { + "kind": "unknown_or_signed" } - ], - "time_index": 0, - "unique_keys": [] + }, + "kind": "summary_agg", + "reduction": "PerEntity" }, - "timing": null + "result_kind": "state" }, { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 3, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -13525,55 +11546,6 @@ "nullable": false, "table": null }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "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 - ] - } - } - } - }, - "result_kind": "state", - "schema": { - "closed": true, - "fields": [ { "dtype": { "Plain": "utf8" @@ -13584,36 +11556,26 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] + }, + "payload": { + "kind": "finalize_exact_accumulator" }, - "timing": null + "result_kind": "instant_vector" }, { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 4 - } - } - }, - "result_kind": "instant_vector", - "schema": { + "id": 4, + "output_schema": { "closed": true, "fields": [ { @@ -13640,56 +11602,36 @@ ] ] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 5, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -13714,30 +11656,78 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 6, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -13762,89 +11752,38 @@ "name": "job", "nullable": true, "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "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" - } - } - }, - "result_kind": "state", - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null }, { "dtype": { "Plain": "utf8" }, - "name": "job", - "nullable": true, + "name": "$promql_series_identity", + "nullable": false, "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 8 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 7, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -13869,66 +11808,56 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + }, + "result_kind": "instant_vector" }, { - "guarantee": null, - "operator": { - "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": { - "EntityIdentity": { - "PromqlLabelSet": { - "excluding": [ - { - "Named": "job" - } - ] - } - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } }, - "result_kind": "state", - "schema": { + "guarantee": null, + "id": 8, + "output_schema": { "closed": true, "fields": [ { @@ -13943,13 +11872,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CmsWithHeap", + "algorithm": "CountSketchWithHeap", "category": "TopK", "params": { - "CmsWithHeap": { - "depth": 7, + "CountSketchWithHeap": { + "depth": 125, "heap_size": 100, - "width": 272 + "width": 30000 } } }, @@ -13968,24 +11897,52 @@ ] ] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 + "payload": { + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } } }, - "summary_input": 10 - } - } + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } }, - "result_kind": "instant_vector", - "schema": { + "result_kind": "state" + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -14012,72 +11969,37 @@ ] ] }, - "timing": null + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + }, + "result_kind": "instant_vector" } ], "roots": [ { - "Operator": 5 + "Operator": 4 }, { - "Operator": 11 + "Operator": 9 } ] }, - "id": "L22", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap (Sum acc)" + "id": "L11", + "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap" }, { "dag": { - "nodes": [ + "edges": [ { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -14102,30 +12024,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 0, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "consumer": 2, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -14150,43 +12069,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 1, + "role": "Input" }, { - "guarantee": null, - "operator": { - "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" - } - } - }, - "result_kind": "state", - "schema": { - "closed": false, + "consumer": 3, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -14214,25 +12117,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 2, + "role": "Input" }, { - "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 4, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -14257,90 +12162,44 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 3, + "role": "Input" }, { - "guarantee": null, - "operator": { - "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 - ] - } - } - } - }, - "result_kind": "state", - "schema": { + "consumer": 6, + "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 - ] - ] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 4 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": true, - "fields": [ + }, { "dtype": { "Plain": "utf8" @@ -14351,70 +12210,24 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] }, - "timing": null + "producer": 5, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -14439,30 +12252,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 6, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 6, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } - } - } - }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "consumer": 8, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -14474,9 +12284,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -14487,37 +12300,27 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 7, + "role": "Input" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "Aggregate": { - "child": 7, - "filters": [], - "having": null, - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "consumer": 9, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, "fields": [ { "dtype": { @@ -14542,66 +12345,26 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "producer": 8, + "role": "Input" }, { - "guarantee": null, - "operator": { - "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": { - "EntityIdentity": { - "PromqlLabelSet": { - "excluding": [ - { - "Named": "job" - } - ] - } - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } - } - } - }, - "result_kind": "state", - "schema": { + "consumer": 10, + "grouping": "NotApplicable", + "intermediate_schema": { "closed": true, "fields": [ { @@ -14641,120 +12404,21 @@ ] ] }, - "timing": null - }, + "producer": 9, + "role": "Input" + } + ], + "nodes": [ { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 - } - }, - "summary_input": 9 - } - } - }, - "result_kind": "instant_vector", - "schema": { + "id": 0, + "output_schema": { "closed": true, "fields": [ { "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "topk", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "timing": null - } - ], - "roots": [ - { - "Operator": 5 - }, - { - "Operator": 10 - } - ] - }, - "id": "L23", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap" - }, - { - "dag": { - "nodes": [ - { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" + "Plain": "timestamp" }, "name": "ts", "nullable": false, @@ -14775,30 +12439,78 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 0, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 1, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -14823,43 +12535,50 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { - "guarantee": null, - "operator": { - "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" } } }, - "result_kind": "state", - "schema": { - "closed": false, + "guarantee": null, + "id": 2, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -14887,25 +12606,48 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "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" + }, + "result_kind": "state" }, { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 2 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 3, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -14930,46 +12672,29 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" }, { + "coverage": null, "guarantee": null, - "operator": { - "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 - ] - } - } - } - }, - "result_kind": "state", - "schema": { + "id": 4, + "output_schema": { "closed": true, "fields": [ { @@ -14982,12 +12707,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "sum", "nullable": false, "table": null } @@ -14999,21 +12721,53 @@ ] ] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 4 + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] } } }, - "result_kind": "instant_vector", - "schema": { + "result_kind": "instant_vector" + }, + { + "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" @@ -15024,70 +12778,75 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "NonASAP": { - "Scan": { - "predicates": [], - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null + "payload": { + "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 - } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } } }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -15112,30 +12871,50 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" }, { - "guarantee": null, - "operator": { - "NonASAP": { - "TimeRange": { - "child": 6, - "kind": "range", - "range": { - "nanos": 0, - "secs": 60 - } + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } }, - "result_kind": "range_vector", - "schema": { - "closed": false, + "guarantee": null, + "id": 7, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -15147,9 +12926,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -15160,89 +12942,48 @@ "name": "job", "nullable": true, "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "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" - } - } - }, - "result_kind": "state", - "schema": { - "closed": false, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null }, { "dtype": { "Plain": "utf8" }, - "name": "job", - "nullable": true, + "name": "$promql_series_identity", + "nullable": false, "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "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" + }, + "result_kind": "state" }, { + "coverage": null, "guarantee": null, - "operator": { - "ASAP": { - "FinalizeExactAccumulator": { - "child": 8 - } - } - }, - "result_kind": "instant_vector", - "schema": { - "closed": false, + "id": 8, + "output_schema": { + "closed": true, "fields": [ { "dtype": { @@ -15267,66 +13008,41 @@ "name": "job", "nullable": true, "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null } ], "time_index": 0, "unique_keys": [] }, - "timing": null + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" }, { - "guarantee": null, - "operator": { - "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": { - "EntityIdentity": { - "PromqlLabelSet": { - "excluding": [ - { - "Named": "job" - } - ] - } - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" - } - }, - "reduction": { - "Reduce": [ - 2 - ] - } + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" } } }, - "result_kind": "state", - "schema": { + "guarantee": null, + "id": 9, + "output_schema": { "closed": true, "fields": [ { @@ -15366,24 +13082,52 @@ ] ] }, - "timing": null - }, - { - "guarantee": null, - "operator": { - "ASAP": { - "SummaryEstimate": { - "query": { - "TopK": { - "k": 10 + "payload": { + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } } }, - "summary_input": 10 + "PerSubpopulationInstance" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] } }, - "result_kind": "instant_vector", - "schema": { + "result_kind": "state" + }, + { + "coverage": null, + "guarantee": null, + "id": 10, + "output_schema": { "closed": true, "fields": [ { @@ -15410,24 +13154,42684 @@ ] ] }, - "timing": null + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + }, + "result_kind": "instant_vector" } ], "roots": [ { - "Operator": 5 + "Operator": 4 }, { - "Operator": 11 + "Operator": 10 } ] }, - "id": "L24", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap (Sum acc)" - } - ], - "capped": false, - "combinations": 24 + "id": "L12", + "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap (Sum acc)" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 0, + "role": "Input" + }, + { + "consumer": 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": [] + }, + "producer": 1, + "role": "Input" + }, + { + "consumer": 3, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 2, + "role": "Input" + }, + { + "consumer": 4, + "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" + }, + { + "consumer": 6, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 5, + "role": "Input" + }, + { + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 6, + "role": "Input" + }, + { + "consumer": 8, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 7, + "role": "Input" + } + ], + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + }, + "result_kind": "instant_vector" + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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 + ] + ] + }, + "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 + ] + } + }, + "result_kind": "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 + ] + ] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + }, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk_10", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "accuracy": { + "EpsilonDelta": { + "delta": 0.001, + "epsilon": 0.01 + } + }, + "k": 10, + "kind": "top_k" + } + ], + "output_names": [], + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + "result_kind": "instant_vector" + } + ], + "roots": [ + { + "Operator": 4 + }, + { + "Operator": 8 + } + ] + }, + "id": "L13", + "label": "Q1 exact (Sum acc) · Q2 exact" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 0, + "role": "Input" + }, + { + "consumer": 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": [] + }, + "producer": 1, + "role": "Input" + }, + { + "consumer": 3, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 2, + "role": "Input" + }, + { + "consumer": 4, + "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" + }, + { + "consumer": 6, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 5, + "role": "Input" + }, + { + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 6, + "role": "Input" + }, + { + "consumer": 8, + "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": [] + }, + "producer": 7, + "role": "Input" + }, + { + "consumer": 9, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 8, + "role": "Input" + } + ], + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + }, + "result_kind": "instant_vector" + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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 + ] + ] + }, + "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 + ] + } + }, + "result_kind": "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 + ] + ] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "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": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "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" + }, + "result_kind": "state" + }, + { + "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": [] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk_10", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "accuracy": { + "EpsilonDelta": { + "delta": 0.001, + "epsilon": 0.01 + } + }, + "k": 10, + "kind": "top_k" + } + ], + "output_names": [], + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + "result_kind": "instant_vector" + } + ], + "roots": [ + { + "Operator": 4 + }, + { + "Operator": 9 + } + ] + }, + "id": "L14", + "label": "Q1 exact (Sum acc) · Q2 exact (Sum acc)" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 0, + "role": "Input" + }, + { + "consumer": 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": [] + }, + "producer": 1, + "role": "Input" + }, + { + "consumer": 3, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 2, + "role": "Input" + }, + { + "consumer": 4, + "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" + }, + { + "consumer": 6, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 5, + "role": "Input" + }, + { + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 6, + "role": "Input" + }, + { + "consumer": 8, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 7, + "role": "Input" + }, + { + "consumer": 9, + "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" + } + ], + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + }, + "result_kind": "instant_vector" + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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 + ] + ] + }, + "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 + ] + } + }, + "result_kind": "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 + ] + ] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + }, + "result_kind": "instant_vector" + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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 + ] + ] + }, + "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + }, + "result_kind": "state" + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + }, + "result_kind": "instant_vector" + } + ], + "roots": [ + { + "Operator": 4 + }, + { + "Operator": 9 + } + ] + }, + "id": "L15", + "label": "Q1 exact (Sum acc) · Q2 CMS+heap" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 0, + "role": "Input" + }, + { + "consumer": 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": [] + }, + "producer": 1, + "role": "Input" + }, + { + "consumer": 3, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 2, + "role": "Input" + }, + { + "consumer": 4, + "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" + }, + { + "consumer": 6, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 5, + "role": "Input" + }, + { + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 6, + "role": "Input" + }, + { + "consumer": 8, + "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": [] + }, + "producer": 7, + "role": "Input" + }, + { + "consumer": 9, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 8, + "role": "Input" + }, + { + "consumer": 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": 9, + "role": "Input" + } + ], + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + }, + "result_kind": "instant_vector" + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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 + ] + ] + }, + "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 + ] + } + }, + "result_kind": "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 + ] + ] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "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": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "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" + }, + "result_kind": "state" + }, + { + "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": [] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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 + ] + ] + }, + "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + }, + "result_kind": "state" + }, + { + "coverage": null, + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + }, + "result_kind": "instant_vector" + } + ], + "roots": [ + { + "Operator": 4 + }, + { + "Operator": 10 + } + ] + }, + "id": "L16", + "label": "Q1 exact (Sum acc) · Q2 CMS+heap (Sum acc)" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 0, + "role": "Input" + }, + { + "consumer": 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": [] + }, + "producer": 1, + "role": "Input" + }, + { + "consumer": 3, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 2, + "role": "Input" + }, + { + "consumer": 4, + "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" + }, + { + "consumer": 6, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 5, + "role": "Input" + }, + { + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 6, + "role": "Input" + }, + { + "consumer": 8, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 7, + "role": "Input" + }, + { + "consumer": 9, + "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" + } + ], + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + }, + "result_kind": "instant_vector" + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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 + ] + ] + }, + "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 + ] + } + }, + "result_kind": "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 + ] + ] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + }, + "result_kind": "instant_vector" + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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 + ] + ] + }, + "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + }, + "result_kind": "state" + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + }, + "result_kind": "instant_vector" + } + ], + "roots": [ + { + "Operator": 4 + }, + { + "Operator": 9 + } + ] + }, + "id": "L17", + "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 0, + "role": "Input" + }, + { + "consumer": 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": [] + }, + "producer": 1, + "role": "Input" + }, + { + "consumer": 3, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 2, + "role": "Input" + }, + { + "consumer": 4, + "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" + }, + { + "consumer": 6, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 5, + "role": "Input" + }, + { + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 6, + "role": "Input" + }, + { + "consumer": 8, + "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": [] + }, + "producer": 7, + "role": "Input" + }, + { + "consumer": 9, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 8, + "role": "Input" + }, + { + "consumer": 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": 9, + "role": "Input" + } + ], + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + }, + "result_kind": "instant_vector" + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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 + ] + ] + }, + "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 + ] + } + }, + "result_kind": "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 + ] + ] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "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": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "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" + }, + "result_kind": "state" + }, + { + "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": [] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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 + ] + ] + }, + "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + }, + "result_kind": "state" + }, + { + "coverage": null, + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + }, + "result_kind": "instant_vector" + } + ], + "roots": [ + { + "Operator": 4 + }, + { + "Operator": 10 + } + ] + }, + "id": "L18", + "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap (Sum acc)" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 0, + "role": "Input" + }, + { + "consumer": 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": [] + }, + "producer": 1, + "role": "Input" + }, + { + "consumer": 3, + "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": [] + }, + "producer": 2, + "role": "Input" + }, + { + "consumer": 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": [] + }, + "producer": 3, + "role": "Input" + }, + { + "consumer": 5, + "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" + }, + { + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 6, + "role": "Input" + }, + { + "consumer": 8, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 7, + "role": "Input" + }, + { + "consumer": 9, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 8, + "role": "Input" + } + ], + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "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": [] + }, + "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" + }, + "result_kind": "state" + }, + { + "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": [] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "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 + ] + ] + }, + "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 + ] + } + }, + "result_kind": "state" + }, + { + "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 + ] + ] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + }, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk_10", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "accuracy": { + "EpsilonDelta": { + "delta": 0.001, + "epsilon": 0.01 + } + }, + "k": 10, + "kind": "top_k" + } + ], + "output_names": [], + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + "result_kind": "instant_vector" + } + ], + "roots": [ + { + "Operator": 5 + }, + { + "Operator": 9 + } + ] + }, + "id": "L19", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 0, + "role": "Input" + }, + { + "consumer": 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": [] + }, + "producer": 1, + "role": "Input" + }, + { + "consumer": 3, + "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": [] + }, + "producer": 2, + "role": "Input" + }, + { + "consumer": 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": [] + }, + "producer": 3, + "role": "Input" + }, + { + "consumer": 5, + "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" + }, + { + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 6, + "role": "Input" + }, + { + "consumer": 8, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 7, + "role": "Input" + }, + { + "consumer": 9, + "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": [] + }, + "producer": 8, + "role": "Input" + }, + { + "consumer": 10, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 9, + "role": "Input" + } + ], + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "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": [] + }, + "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" + }, + "result_kind": "state" + }, + { + "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": [] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "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 + ] + ] + }, + "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 + ] + } + }, + "result_kind": "state" + }, + { + "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 + ] + ] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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": [] + }, + "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" + }, + "result_kind": "state" + }, + { + "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": [] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "coverage": null, + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk_10", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "accuracy": { + "EpsilonDelta": { + "delta": 0.001, + "epsilon": 0.01 + } + }, + "k": 10, + "kind": "top_k" + } + ], + "output_names": [], + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + "result_kind": "instant_vector" + } + ], + "roots": [ + { + "Operator": 5 + }, + { + "Operator": 10 + } + ] + }, + "id": "L20", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact (Sum acc)" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 0, + "role": "Input" + }, + { + "consumer": 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": [] + }, + "producer": 1, + "role": "Input" + }, + { + "consumer": 3, + "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": [] + }, + "producer": 2, + "role": "Input" + }, + { + "consumer": 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": [] + }, + "producer": 3, + "role": "Input" + }, + { + "consumer": 5, + "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" + }, + { + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 6, + "role": "Input" + }, + { + "consumer": 8, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 7, + "role": "Input" + }, + { + "consumer": 9, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 8, + "role": "Input" + }, + { + "consumer": 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": 9, + "role": "Input" + } + ], + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "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": [] + }, + "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" + }, + "result_kind": "state" + }, + { + "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": [] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "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 + ] + ] + }, + "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 + ] + } + }, + "result_kind": "state" + }, + { + "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 + ] + ] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + }, + "result_kind": "instant_vector" + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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 + ] + ] + }, + "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + }, + "result_kind": "state" + }, + { + "coverage": null, + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + }, + "result_kind": "instant_vector" + } + ], + "roots": [ + { + "Operator": 5 + }, + { + "Operator": 10 + } + ] + }, + "id": "L21", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 0, + "role": "Input" + }, + { + "consumer": 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": [] + }, + "producer": 1, + "role": "Input" + }, + { + "consumer": 3, + "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": [] + }, + "producer": 2, + "role": "Input" + }, + { + "consumer": 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": [] + }, + "producer": 3, + "role": "Input" + }, + { + "consumer": 5, + "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" + }, + { + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 6, + "role": "Input" + }, + { + "consumer": 8, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 7, + "role": "Input" + }, + { + "consumer": 9, + "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": [] + }, + "producer": 8, + "role": "Input" + }, + { + "consumer": 10, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 9, + "role": "Input" + }, + { + "consumer": 11, + "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": 10, + "role": "Input" + } + ], + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "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": [] + }, + "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" + }, + "result_kind": "state" + }, + { + "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": [] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "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 + ] + ] + }, + "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 + ] + } + }, + "result_kind": "state" + }, + { + "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 + ] + ] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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": [] + }, + "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" + }, + "result_kind": "state" + }, + { + "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": [] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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 + ] + ] + }, + "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + }, + "result_kind": "state" + }, + { + "coverage": null, + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + }, + "result_kind": "instant_vector" + } + ], + "roots": [ + { + "Operator": 5 + }, + { + "Operator": 11 + } + ] + }, + "id": "L22", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap (Sum acc)" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 0, + "role": "Input" + }, + { + "consumer": 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": [] + }, + "producer": 1, + "role": "Input" + }, + { + "consumer": 3, + "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": [] + }, + "producer": 2, + "role": "Input" + }, + { + "consumer": 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": [] + }, + "producer": 3, + "role": "Input" + }, + { + "consumer": 5, + "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" + }, + { + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 6, + "role": "Input" + }, + { + "consumer": 8, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 7, + "role": "Input" + }, + { + "consumer": 9, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 8, + "role": "Input" + }, + { + "consumer": 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": 9, + "role": "Input" + } + ], + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "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": [] + }, + "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" + }, + "result_kind": "state" + }, + { + "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": [] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "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 + ] + ] + }, + "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 + ] + } + }, + "result_kind": "state" + }, + { + "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 + ] + ] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + }, + "result_kind": "instant_vector" + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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 + ] + ] + }, + "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + }, + "result_kind": "state" + }, + { + "coverage": null, + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + }, + "result_kind": "instant_vector" + } + ], + "roots": [ + { + "Operator": 5 + }, + { + "Operator": 10 + } + ] + }, + "id": "L23", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap" + }, + { + "dag": { + "edges": [ + { + "consumer": 1, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 0, + "role": "Input" + }, + { + "consumer": 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": [] + }, + "producer": 1, + "role": "Input" + }, + { + "consumer": 3, + "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": [] + }, + "producer": 2, + "role": "Input" + }, + { + "consumer": 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": [] + }, + "producer": 3, + "role": "Input" + }, + { + "consumer": 5, + "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" + }, + { + "consumer": 7, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 6, + "role": "Input" + }, + { + "consumer": 8, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 7, + "role": "Input" + }, + { + "consumer": 9, + "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": [] + }, + "producer": 8, + "role": "Input" + }, + { + "consumer": 10, + "grouping": "NotApplicable", + "intermediate_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "producer": 9, + "role": "Input" + }, + { + "consumer": 11, + "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" + } + ], + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "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": [] + }, + "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" + }, + "result_kind": "state" + }, + { + "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": [] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "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 + ] + ] + }, + "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 + ] + } + }, + "result_kind": "state" + }, + { + "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 + ] + ] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + }, + "result_kind": "instant_vector" + }, + { + "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": [] + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "time_range", + "range": { + "nanos": 0, + "secs": 60 + }, + "range_kind": "range" + } + }, + "result_kind": "range_vector" + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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": [] + }, + "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" + }, + "result_kind": "state" + }, + { + "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": [] + }, + "payload": { + "kind": "finalize_exact_accumulator" + }, + "result_kind": "instant_vector" + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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 + ] + ] + }, + "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + }, + "result_kind": "state" + }, + { + "coverage": null, + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + }, + "result_kind": "instant_vector" + } + ], + "roots": [ + { + "Operator": 5 + }, + { + "Operator": 11 + } + ] + }, + "id": "L24", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap (Sum acc)" + } + ], + "capped": false, + "combinations": 24 + }, + "stage2_physical_asap": { + "candidates": [ + { + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "producer": 7, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "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": [] + }, + "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": 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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "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": [] + }, + "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": 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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "limit", + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + ], + "roots": [ + 3, + 8 + ] + }, + "from_logical": "L1", + "id": "P1", + "label": "Q1 exact · Q2 exact" + }, + { + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "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": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "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": [] + }, + "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": [] + }, + "producer": 8, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "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": [] + }, + "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": 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": [] + }, + "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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "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": [] + }, + "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": 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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "limit", + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + ], + "roots": [ + 3, + 9 + ] + }, + "from_logical": "L2", + "id": "P2", + "label": "Q1 exact · Q2 exact (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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [ + { + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "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": [] + }, + "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": 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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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": { + "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + } + } + ], + "roots": [ + 3, + 8 + ] + }, + "from_logical": "L3", + "id": "P3", + "label": "Q1 exact · Q2 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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "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": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "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": [] + }, + "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": [ + { + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "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": [] + }, + "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": 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": [] + }, + "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": [] + }, + "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": 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": { + "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + } + } + ], + "roots": [ + 3, + 9 + ] + }, + "from_logical": "L4", + "id": "P4", + "label": "Q1 exact · Q2 CMS+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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": "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": [ + { + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "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": [] + }, + "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": 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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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": { + "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + } + } + ], + "roots": [ + 3, + 8 + ] + }, + "from_logical": "L5", + "id": "P5", + "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 + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "producer": 5, + "role": "Input", + "window": "NotApplicable" + }, + { + "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": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "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": [] + }, + "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": [ + { + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "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": [] + }, + "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": 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": [] + }, + "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": [] + }, + "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": 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": { + "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + } + } + ], + "roots": [ + 3, + 9 + ] + }, + "from_logical": "L6", + "id": "P6", + "label": "Q1 exact · 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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "producer": 8, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "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": [] + }, + "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": 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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "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": [] + }, + "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": 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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "limit", + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + ], + "roots": [ + 4, + 9 + ] + }, + "from_logical": "L7", + "id": "P7", + "label": "Q1 exact (Rate acc) · Q2 exact" + }, + { + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "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": [] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "producer": 9, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "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": [] + }, + "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": 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": [] + }, + "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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "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": [] + }, + "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": 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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "limit", + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + ], + "roots": [ + 4, + 10 + ] + }, + "from_logical": "L8", + "id": "P8", + "label": "Q1 exact (Rate acc) · Q2 exact (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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "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": [] + }, + "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": [] + }, + "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": [ + { + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "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": [] + }, + "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": 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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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": { + "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + } + } + ], + "roots": [ + 4, + 9 + ] + }, + "from_logical": "L9", + "id": "P9", + "label": "Q1 exact (Rate acc) · Q2 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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "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": [] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "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": [] + }, + "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": [] + }, + "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": [ + { + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "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": [] + }, + "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": 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": [] + }, + "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": [] + }, + "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": 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": { + "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + } + } + ], + "roots": [ + 4, + 10 + ] + }, + "from_logical": "L10", + "id": "P10", + "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": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "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": [] + }, + "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": [] + }, + "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": [ + { + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "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": [] + }, + "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": 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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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": { + "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + } + } + ], + "roots": [ + 4, + 9 + ] + }, + "from_logical": "L11", + "id": "P11", + "label": "Q1 exact (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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "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": [] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "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": [] + }, + "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": [] + }, + "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": [ + { + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "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": [] + }, + "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": 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": [] + }, + "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": [] + }, + "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": 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": { + "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + } + } + ], + "roots": [ + 4, + 10 + ] + }, + "from_logical": "L12", + "id": "P12", + "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": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "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": [] + }, + "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": [] + }, + "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": 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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "producer": 8, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "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": "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": 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": "finalize_exact_accumulator" + } + }, + { + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "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": [] + }, + "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": 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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "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": [] + }, + "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": 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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "limit", + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + ], + "roots": [ + 4, + 9 + ] + }, + "from_logical": "L13", + "id": "P13", + "label": "Q1 exact (Sum acc) · Q2 exact" + }, + { + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": 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": [] + }, + "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": [] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "producer": 9, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "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": "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": 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": "finalize_exact_accumulator" + } + }, + { + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "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": [] + }, + "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": 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": [] + }, + "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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "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": [] + }, + "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": 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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "limit", + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + ], + "roots": [ + 4, + 10 + ] + }, + "from_logical": "L14", + "id": "P14", + "label": "Q1 exact (Sum acc) · Q2 exact (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": [] + }, + "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": [] + }, + "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": [] + }, + "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": 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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [ + { + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "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": "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": 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": "finalize_exact_accumulator" + } + }, + { + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "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": [] + }, + "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": 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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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": { + "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + } + } + ], + "roots": [ + 4, + 9 + ] + }, + "from_logical": "L15", + "id": "P15", + "label": "Q1 exact (Sum acc) · Q2 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": [] + }, + "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": [] + }, + "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": [] + }, + "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": 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": [] + }, + "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": [] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "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": [] + }, + "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": [] + }, + "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": [ + { + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "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": "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": 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": "finalize_exact_accumulator" + } + }, + { + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "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": [] + }, + "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": 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": [] + }, + "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": [] + }, + "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": 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": { + "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + } + } + ], + "roots": [ + 4, + 10 + ] + }, + "from_logical": "L16", + "id": "P16", + "label": "Q1 exact (Sum acc) · Q2 CMS+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": [] + }, + "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": [] + }, + "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": [] + }, + "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": 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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [ + { + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "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": "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": 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": "finalize_exact_accumulator" + } + }, + { + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "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": [] + }, + "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": 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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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": { + "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 9, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + } + } + ], + "roots": [ + 4, + 9 + ] + }, + "from_logical": "L17", + "id": "P17", + "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": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "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": [] + }, + "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": [] + }, + "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": 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": [] + }, + "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": [] + }, + "producer": 6, + "role": "Input", + "window": "NotApplicable" + }, + { + "consumer": 8, + "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": [] + }, + "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": [] + }, + "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": [ + { + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "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": "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": 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": "finalize_exact_accumulator" + } + }, + { + "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": [] + }, + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + { + "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": [] + }, + "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": 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": [] + }, + "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": [] + }, + "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": 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": { + "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + } + } + ], + "roots": [ + 4, + 10 + ] + }, + "from_logical": "L18", + "id": "P18", + "label": "Q1 exact (Sum 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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "producer": 9, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": 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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "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": [] + }, + "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": 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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "limit", + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + ], + "roots": [ + 5, + 10 + ] + }, + "from_logical": "L19", + "id": "P19", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact" + }, + { + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "producer": 10, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": 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": [] + }, + "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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "finalize_exact_accumulator" + } + }, + { + "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": [] + }, + "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": 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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "kind": "limit", + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } + } + } + ], + "roots": [ + 5, + 11 + ] + }, + "from_logical": "L20", + "id": "P20", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact (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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [ + { + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": 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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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": { + "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + } + } + ], + "roots": [ + 5, + 10 + ] + }, + "from_logical": "L21", + "id": "P21", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": "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": 10, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": 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": [] + }, + "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": [] + }, + "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": 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": "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + } + } + ], + "roots": [ + 5, + 11 + ] + }, + "from_logical": "L22", + "id": "P22", + "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": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [ + { + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": 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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "relational", + "operator": { + "filters": [], + "having": null, + "kind": "aggregate", + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + { + "coverage": { + "regions": [ + { + "population": {}, + "time_ms": null + } + ], + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + }, + "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": { + "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 10, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + } + } + ], + "roots": [ + 5, + 10 + ] + }, + "from_logical": "L23", + "id": "P23", + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [ + { + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": [] + }, + "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": 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": [] + }, + "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": [] + }, + "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": 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": { + "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": "unknown_or_signed" + } + }, + "kind": "summary_agg", + "reduction": { + "Reduce": [ + 2 + ] + } + } + }, + { + "coverage": null, + "guarantee": null, + "id": 11, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "kind": "summary_estimate", + "query": { + "TopK": { + "k": 10 + } + } + } + } + ], + "roots": [ + 5, + 11 + ] + }, + "from_logical": "L24", + "id": "P24", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap (Sum acc)" + } + ] + }, + "stage3_selection": { + "costs": { + "P1": { + "per_node": { + "0": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "1": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "2": { + "cost": 8.0, + "detail": "hash aggregate 4000000 rows into 1000000 groups" + }, + "3": { + "cost": 2.0, + "detail": "hash aggregate 1000000 rows into 100 groups" + }, + "4": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "5": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "6": { + "cost": 8.0, + "detail": "hash aggregate 4000000 rows into 1000000 groups" + }, + "7": { + "cost": 14.0, + "detail": "sort 1000000 rows in 100 partitions" + }, + "8": { + "cost": 0.001, + "detail": "limit to 1000 rows" + } + }, + "source": "analytical-cost-v1 (illustrative statistics)", + "total": 86.40100000000001, + "unit": "cpu_ms_per_workload_evaluation" + }, + "P11": { + "per_node": { + "0": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "1": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "2": { + "cost": 4.0, + "detail": "build exact Rate accumulator into 1000000 states: 4000000 rows x depth 1" + }, + "3": { + "cost": 1.0, + "detail": "finalize 1000000 accumulators" + }, + "4": { + "cost": 2.0, + "detail": "hash aggregate 1000000 rows into 100 groups" + }, + "5": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "6": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "7": { + "cost": 8.0, + "detail": "hash aggregate 4000000 rows into 1000000 groups" + }, + "8": { + "cost": 126.0, + "detail": "build CountSketchWithHeap into 100 states: 1000000 rows x depth 126" + }, + "9": { + "cost": 0.001, + "detail": "estimate 100 groups x 10" + } + }, + "source": "analytical-cost-v1 (illustrative statistics)", + "total": 195.401, + "unit": "cpu_ms_per_workload_evaluation" + }, + "P12": { + "per_node": { + "0": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "1": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "10": { + "cost": 0.001, + "detail": "estimate 100 groups x 10" + }, + "2": { + "cost": 4.0, + "detail": "build exact Rate accumulator into 1000000 states: 4000000 rows x depth 1" + }, + "3": { + "cost": 1.0, + "detail": "finalize 1000000 accumulators" + }, + "4": { + "cost": 2.0, + "detail": "hash aggregate 1000000 rows into 100 groups" + }, + "5": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "6": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "7": { + "cost": 4.0, + "detail": "build exact Sum accumulator into 1000000 states: 4000000 rows x depth 1" + }, + "8": { + "cost": 1.0, + "detail": "finalize 1000000 accumulators" + }, + "9": { + "cost": 126.0, + "detail": "build CountSketchWithHeap into 100 states: 1000000 rows x depth 126" + } + }, + "source": "analytical-cost-v1 (illustrative statistics)", + "total": 192.401, + "unit": "cpu_ms_per_workload_evaluation" + }, + "P13": { + "per_node": { + "0": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "1": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "2": { + "cost": 8.0, + "detail": "hash aggregate 4000000 rows into 1000000 groups" + }, + "3": { + "cost": 1.0, + "detail": "build exact Sum accumulator into 100 states: 1000000 rows x depth 1" + }, + "4": { + "cost": 0.00009999999999999999, + "detail": "finalize 100 accumulators" + }, + "5": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "6": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "7": { + "cost": 8.0, + "detail": "hash aggregate 4000000 rows into 1000000 groups" + }, + "8": { + "cost": 14.0, + "detail": "sort 1000000 rows in 100 partitions" + }, + "9": { + "cost": 0.001, + "detail": "limit to 1000 rows" + } + }, + "source": "analytical-cost-v1 (illustrative statistics)", + "total": 85.40110000000001, + "unit": "cpu_ms_per_workload_evaluation" + }, + "P14": { + "per_node": { + "0": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "1": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "10": { + "cost": 0.001, + "detail": "limit to 1000 rows" + }, + "2": { + "cost": 8.0, + "detail": "hash aggregate 4000000 rows into 1000000 groups" + }, + "3": { + "cost": 1.0, + "detail": "build exact Sum accumulator into 100 states: 1000000 rows x depth 1" + }, + "4": { + "cost": 0.00009999999999999999, + "detail": "finalize 100 accumulators" + }, + "5": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "6": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "7": { + "cost": 4.0, + "detail": "build exact Sum accumulator into 1000000 states: 4000000 rows x depth 1" + }, + "8": { + "cost": 1.0, + "detail": "finalize 1000000 accumulators" + }, + "9": { + "cost": 14.0, + "detail": "sort 1000000 rows in 100 partitions" + } + }, + "source": "analytical-cost-v1 (illustrative statistics)", + "total": 82.40110000000001, + "unit": "cpu_ms_per_workload_evaluation" + }, + "P17": { + "per_node": { + "0": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "1": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "2": { + "cost": 8.0, + "detail": "hash aggregate 4000000 rows into 1000000 groups" + }, + "3": { + "cost": 1.0, + "detail": "build exact Sum accumulator into 100 states: 1000000 rows x depth 1" + }, + "4": { + "cost": 0.00009999999999999999, + "detail": "finalize 100 accumulators" + }, + "5": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "6": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "7": { + "cost": 8.0, + "detail": "hash aggregate 4000000 rows into 1000000 groups" + }, + "8": { + "cost": 126.0, + "detail": "build CountSketchWithHeap into 100 states: 1000000 rows x depth 126" + }, + "9": { + "cost": 0.001, + "detail": "estimate 100 groups x 10" + } + }, + "source": "analytical-cost-v1 (illustrative statistics)", + "total": 197.4011, + "unit": "cpu_ms_per_workload_evaluation" + }, + "P18": { + "per_node": { + "0": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "1": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "10": { + "cost": 0.001, + "detail": "estimate 100 groups x 10" + }, + "2": { + "cost": 8.0, + "detail": "hash aggregate 4000000 rows into 1000000 groups" + }, + "3": { + "cost": 1.0, + "detail": "build exact Sum accumulator into 100 states: 1000000 rows x depth 1" + }, + "4": { + "cost": 0.00009999999999999999, + "detail": "finalize 100 accumulators" + }, + "5": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "6": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "7": { + "cost": 4.0, + "detail": "build exact Sum accumulator into 1000000 states: 4000000 rows x depth 1" + }, + "8": { + "cost": 1.0, + "detail": "finalize 1000000 accumulators" + }, + "9": { + "cost": 126.0, + "detail": "build CountSketchWithHeap into 100 states: 1000000 rows x depth 126" + } + }, + "source": "analytical-cost-v1 (illustrative statistics)", + "total": 194.4011, + "unit": "cpu_ms_per_workload_evaluation" + }, + "P19": { + "per_node": { + "0": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "1": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "10": { + "cost": 0.001, + "detail": "limit to 1000 rows" + }, + "2": { + "cost": 4.0, + "detail": "build exact Rate accumulator into 1000000 states: 4000000 rows x depth 1" + }, + "3": { + "cost": 1.0, + "detail": "finalize 1000000 accumulators" + }, + "4": { + "cost": 1.0, + "detail": "build exact Sum accumulator into 100 states: 1000000 rows x depth 1" + }, + "5": { + "cost": 0.00009999999999999999, + "detail": "finalize 100 accumulators" + }, + "6": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "7": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "8": { + "cost": 8.0, + "detail": "hash aggregate 4000000 rows into 1000000 groups" + }, + "9": { + "cost": 14.0, + "detail": "sort 1000000 rows in 100 partitions" + } + }, + "source": "analytical-cost-v1 (illustrative statistics)", + "total": 82.40110000000001, + "unit": "cpu_ms_per_workload_evaluation" + }, + "P2": { + "per_node": { + "0": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "1": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "2": { + "cost": 8.0, + "detail": "hash aggregate 4000000 rows into 1000000 groups" + }, + "3": { + "cost": 2.0, + "detail": "hash aggregate 1000000 rows into 100 groups" + }, + "4": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "5": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "6": { + "cost": 4.0, + "detail": "build exact Sum accumulator into 1000000 states: 4000000 rows x depth 1" + }, + "7": { + "cost": 1.0, + "detail": "finalize 1000000 accumulators" + }, + "8": { + "cost": 14.0, + "detail": "sort 1000000 rows in 100 partitions" + }, + "9": { + "cost": 0.001, + "detail": "limit to 1000 rows" + } + }, + "source": "analytical-cost-v1 (illustrative statistics)", + "total": 83.40100000000001, + "unit": "cpu_ms_per_workload_evaluation" + }, + "P20": { + "per_node": { + "0": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "1": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "10": { + "cost": 14.0, + "detail": "sort 1000000 rows in 100 partitions" + }, + "11": { + "cost": 0.001, + "detail": "limit to 1000 rows" + }, + "2": { + "cost": 4.0, + "detail": "build exact Rate accumulator into 1000000 states: 4000000 rows x depth 1" + }, + "3": { + "cost": 1.0, + "detail": "finalize 1000000 accumulators" + }, + "4": { + "cost": 1.0, + "detail": "build exact Sum accumulator into 100 states: 1000000 rows x depth 1" + }, + "5": { + "cost": 0.00009999999999999999, + "detail": "finalize 100 accumulators" + }, + "6": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "7": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "8": { + "cost": 4.0, + "detail": "build exact Sum accumulator into 1000000 states: 4000000 rows x depth 1" + }, + "9": { + "cost": 1.0, + "detail": "finalize 1000000 accumulators" + } + }, + "source": "analytical-cost-v1 (illustrative statistics)", + "total": 79.40110000000001, + "unit": "cpu_ms_per_workload_evaluation" + }, + "P23": { + "per_node": { + "0": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "1": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "10": { + "cost": 0.001, + "detail": "estimate 100 groups x 10" + }, + "2": { + "cost": 4.0, + "detail": "build exact Rate accumulator into 1000000 states: 4000000 rows x depth 1" + }, + "3": { + "cost": 1.0, + "detail": "finalize 1000000 accumulators" + }, + "4": { + "cost": 1.0, + "detail": "build exact Sum accumulator into 100 states: 1000000 rows x depth 1" + }, + "5": { + "cost": 0.00009999999999999999, + "detail": "finalize 100 accumulators" + }, + "6": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "7": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "8": { + "cost": 8.0, + "detail": "hash aggregate 4000000 rows into 1000000 groups" + }, + "9": { + "cost": 126.0, + "detail": "build CountSketchWithHeap into 100 states: 1000000 rows x depth 126" + } + }, + "source": "analytical-cost-v1 (illustrative statistics)", + "total": 194.4011, + "unit": "cpu_ms_per_workload_evaluation" + }, + "P24": { + "per_node": { + "0": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "1": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "10": { + "cost": 126.0, + "detail": "build CountSketchWithHeap into 100 states: 1000000 rows x depth 126" + }, + "11": { + "cost": 0.001, + "detail": "estimate 100 groups x 10" + }, + "2": { + "cost": 4.0, + "detail": "build exact Rate accumulator into 1000000 states: 4000000 rows x depth 1" + }, + "3": { + "cost": 1.0, + "detail": "finalize 1000000 accumulators" + }, + "4": { + "cost": 1.0, + "detail": "build exact Sum accumulator into 100 states: 1000000 rows x depth 1" + }, + "5": { + "cost": 0.00009999999999999999, + "detail": "finalize 100 accumulators" + }, + "6": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "7": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "8": { + "cost": 4.0, + "detail": "build exact Sum accumulator into 1000000 states: 4000000 rows x depth 1" + }, + "9": { + "cost": 1.0, + "detail": "finalize 1000000 accumulators" + } + }, + "source": "analytical-cost-v1 (illustrative statistics)", + "total": 191.4011, + "unit": "cpu_ms_per_workload_evaluation" + }, + "P5": { + "per_node": { + "0": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "1": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "2": { + "cost": 8.0, + "detail": "hash aggregate 4000000 rows into 1000000 groups" + }, + "3": { + "cost": 2.0, + "detail": "hash aggregate 1000000 rows into 100 groups" + }, + "4": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "5": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "6": { + "cost": 8.0, + "detail": "hash aggregate 4000000 rows into 1000000 groups" + }, + "7": { + "cost": 126.0, + "detail": "build CountSketchWithHeap into 100 states: 1000000 rows x depth 126" + }, + "8": { + "cost": 0.001, + "detail": "estimate 100 groups x 10" + } + }, + "source": "analytical-cost-v1 (illustrative statistics)", + "total": 198.401, + "unit": "cpu_ms_per_workload_evaluation" + }, + "P6": { + "per_node": { + "0": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "1": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "2": { + "cost": 8.0, + "detail": "hash aggregate 4000000 rows into 1000000 groups" + }, + "3": { + "cost": 2.0, + "detail": "hash aggregate 1000000 rows into 100 groups" + }, + "4": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "5": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "6": { + "cost": 4.0, + "detail": "build exact Sum accumulator into 1000000 states: 4000000 rows x depth 1" + }, + "7": { + "cost": 1.0, + "detail": "finalize 1000000 accumulators" + }, + "8": { + "cost": 126.0, + "detail": "build CountSketchWithHeap into 100 states: 1000000 rows x depth 126" + }, + "9": { + "cost": 0.001, + "detail": "estimate 100 groups x 10" + } + }, + "source": "analytical-cost-v1 (illustrative statistics)", + "total": 195.401, + "unit": "cpu_ms_per_workload_evaluation" + }, + "P7": { + "per_node": { + "0": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "1": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "2": { + "cost": 4.0, + "detail": "build exact Rate accumulator into 1000000 states: 4000000 rows x depth 1" + }, + "3": { + "cost": 1.0, + "detail": "finalize 1000000 accumulators" + }, + "4": { + "cost": 2.0, + "detail": "hash aggregate 1000000 rows into 100 groups" + }, + "5": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "6": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "7": { + "cost": 8.0, + "detail": "hash aggregate 4000000 rows into 1000000 groups" + }, + "8": { + "cost": 14.0, + "detail": "sort 1000000 rows in 100 partitions" + }, + "9": { + "cost": 0.001, + "detail": "limit to 1000 rows" + } + }, + "source": "analytical-cost-v1 (illustrative statistics)", + "total": 83.40100000000001, + "unit": "cpu_ms_per_workload_evaluation" + }, + "P8": { + "per_node": { + "0": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "1": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "10": { + "cost": 0.001, + "detail": "limit to 1000 rows" + }, + "2": { + "cost": 4.0, + "detail": "build exact Rate accumulator into 1000000 states: 4000000 rows x depth 1" + }, + "3": { + "cost": 1.0, + "detail": "finalize 1000000 accumulators" + }, + "4": { + "cost": 2.0, + "detail": "hash aggregate 1000000 rows into 100 groups" + }, + "5": { + "cost": 23.2, + "detail": "scan 4000000 samples" + }, + "6": { + "cost": 4.0, + "detail": "time range 60s: pass 4000000 rows" + }, + "7": { + "cost": 4.0, + "detail": "build exact Sum accumulator into 1000000 states: 4000000 rows x depth 1" + }, + "8": { + "cost": 1.0, + "detail": "finalize 1000000 accumulators" + }, + "9": { + "cost": 14.0, + "detail": "sort 1000000 rows in 100 partitions" + } + }, + "source": "analytical-cost-v1 (illustrative statistics)", + "total": 80.40100000000001, + "unit": "cpu_ms_per_workload_evaluation" + } + }, + "rejected": [ + { + "id": "P3", + "reason": "q2: CmsWithHeap needs non-negative update weights, and these are not proven non-negative", + "valid": false + }, + { + "id": "P4", + "reason": "q2: CmsWithHeap needs non-negative update weights, and these are not proven non-negative", + "valid": false + }, + { + "id": "P9", + "reason": "q2: CmsWithHeap needs non-negative update weights, and these are not proven non-negative", + "valid": false + }, + { + "id": "P10", + "reason": "q2: CmsWithHeap needs non-negative update weights, and these are not proven non-negative", + "valid": false + }, + { + "id": "P15", + "reason": "q2: CmsWithHeap needs non-negative update weights, and these are not proven non-negative", + "valid": false + }, + { + "id": "P16", + "reason": "q2: CmsWithHeap needs non-negative update weights, and these are not proven non-negative", + "valid": false + }, + { + "id": "P21", + "reason": "q2: CmsWithHeap needs non-negative update weights, and these are not proven non-negative", + "valid": false + }, + { + "id": "P22", + "reason": "q2: CmsWithHeap needs non-negative update weights, and these are not proven non-negative", + "valid": false + }, + { + "id": "P1", + "reason": "costlier: 86.401 vs 79.401 cpu_ms_per_workload_evaluation", + "valid": true + }, + { + "id": "P2", + "reason": "costlier: 83.401 vs 79.401 cpu_ms_per_workload_evaluation", + "valid": true + }, + { + "id": "P5", + "reason": "costlier: 198.401 vs 79.401 cpu_ms_per_workload_evaluation", + "valid": true + }, + { + "id": "P6", + "reason": "costlier: 195.401 vs 79.401 cpu_ms_per_workload_evaluation", + "valid": true + }, + { + "id": "P7", + "reason": "costlier: 83.401 vs 79.401 cpu_ms_per_workload_evaluation", + "valid": true + }, + { + "id": "P8", + "reason": "costlier: 80.401 vs 79.401 cpu_ms_per_workload_evaluation", + "valid": true + }, + { + "id": "P11", + "reason": "costlier: 195.401 vs 79.401 cpu_ms_per_workload_evaluation", + "valid": true + }, + { + "id": "P12", + "reason": "costlier: 192.401 vs 79.401 cpu_ms_per_workload_evaluation", + "valid": true + }, + { + "id": "P13", + "reason": "costlier: 85.401 vs 79.401 cpu_ms_per_workload_evaluation", + "valid": true + }, + { + "id": "P14", + "reason": "costlier: 82.401 vs 79.401 cpu_ms_per_workload_evaluation", + "valid": true + }, + { + "id": "P17", + "reason": "costlier: 197.401 vs 79.401 cpu_ms_per_workload_evaluation", + "valid": true + }, + { + "id": "P18", + "reason": "costlier: 194.401 vs 79.401 cpu_ms_per_workload_evaluation", + "valid": true + }, + { + "id": "P19", + "reason": "costlier: 82.401 vs 79.401 cpu_ms_per_workload_evaluation", + "valid": true + }, + { + "id": "P23", + "reason": "costlier: 194.401 vs 79.401 cpu_ms_per_workload_evaluation", + "valid": true + }, + { + "id": "P24", + "reason": "costlier: 191.401 vs 79.401 cpu_ms_per_workload_evaluation", + "valid": true + } + ], + "selected": "P20" }, "workload": { "queries": [ From d613b0f175a3a126773b6d90652d84862b2636ba Mon Sep 17 00:00:00 2001 From: zzylol <50204836+zzylol@users.noreply.github.com> Date: Thu, 8 Oct 2026 14:04:07 +0000 Subject: [PATCH 3/3] refactor(planner): read Operator payloads in Stage 2/3 after the export removal Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01W7qG9aFyPij5uWsyAJCxDW --- .../src/physical_candidates.rs | 22 +- .../asap-aware-mapping/src/plan_selection.rs | 34 +- crates/devtools/src/bin/stage_pipeline.rs | 2 +- crates/devtools/tests/stage_pipeline.rs | 2 +- .../examples/planner-layering-example1.json | 36456 ++++++---------- 5 files changed, 13338 insertions(+), 23178 deletions(-) diff --git a/crates/asap-aware-mapping/src/physical_candidates.rs b/crates/asap-aware-mapping/src/physical_candidates.rs index 094adda1..494127d6 100644 --- a/crates/asap-aware-mapping/src/physical_candidates.rs +++ b/crates/asap-aware-mapping/src/physical_candidates.rs @@ -11,7 +11,9 @@ use std::collections::HashMap; use std::rc::Rc; -use asap_types::ir::export::{compile_physical_asap_workload_with_node_ids, PhysicalASAPDAG}; +use asap_types::ir::physical_export::{ + compile_physical_asap_workload_with_node_ids, PhysicalASAPDAG, +}; use asap_types::ir::{ apply_materialization_timings, ASAPOp, MaterializationAssignment, NonASAPOp, Operator, OperatorNode, ScalarExpr, SchemaDerivationError, SortKey, TimingMemo, @@ -144,7 +146,7 @@ fn rebuilt(node: &Rc, memo: &Memo) -> Result, Sta .iter() .any(|child| !Rc::ptr_eq(child, &memo[&Rc::as_ptr(child)])); Ok(if changed { - Rc::new(node.map_children(|child| memo[&Rc::as_ptr(child)].clone())?) + Rc::new(node.with_new_children(|child| memo[&Rc::as_ptr(child)].clone())?) } else { node.clone() }) @@ -154,8 +156,8 @@ fn rebuilt(node: &Rc, memo: &Memo) -> Result, Sta mod tests { use super::*; use crate::test_support::lower_promql; - use asap_types::ir::export::PhysicalASAPOperatorPayload as Payload; - use asap_types::ir::export::{NonASAPOpKind, PhysicalASAPNodeId}; + use asap_types::ir::physical_export::PhysicalASAPNodeId; + use asap_types::ir::physical_export::PhysicalASAPOperatorPayload as Payload; use asap_types::ir::QueryRoot; use asap_types::post_asap::ExecutionTiming; use asap_types::types::AccuracyTarget; @@ -171,7 +173,7 @@ mod tests { let NonASAPOp::Aggregate { child: shared, .. } = topk.expect_non_asap() else { panic!("topk aggregate") }; - let sum = Rc::new(sum.map_children(|_| shared.clone()).unwrap()); + let sum = Rc::new(sum.with_new_children(|_| shared.clone()).unwrap()); let candidate = stage2_physical("L1", &[topk, sum]).unwrap(); let NonASAPOp::Limit { @@ -209,12 +211,8 @@ mod tests { .unwrap() .payload { - Payload::Relational { - operator: NonASAPOpKind::Sort { .. }, - } => "sort", - Payload::Relational { - operator: NonASAPOpKind::Limit { .. }, - } => "limit", + Payload::NonASAP(NonASAPOp::Sort { .. }) => "sort", + Payload::NonASAP(NonASAPOp::Limit { .. }) => "limit", _ => "other", }; let sort_id = dag @@ -269,7 +267,7 @@ mod tests { .dag .nodes .iter() - .any(|n| matches!(n.payload, Payload::SummaryAgg { .. }))); + .any(|n| matches!(n.payload, Payload::ASAP(ASAPOp::SummaryAgg { .. })))); assert!(candidate .dag .nodes diff --git a/crates/asap-aware-mapping/src/plan_selection.rs b/crates/asap-aware-mapping/src/plan_selection.rs index fd0ce9a8..bf680e2f 100644 --- a/crates/asap-aware-mapping/src/plan_selection.rs +++ b/crates/asap-aware-mapping/src/plan_selection.rs @@ -12,10 +12,11 @@ //! count; summary build and estimation are priced as rows × sketch depth and //! groups × k. These numbers are illustrative, not calibrated. Latency //! bounds and deployment capabilities are not checked yet. +use asap_types::ir::NonASAPOp; use std::collections::{BTreeMap, HashMap}; -use asap_types::ir::export::{ - NonASAPOpKind, PhysicalASAPDAG, PhysicalASAPNodeId, PhysicalASAPOperatorPayload as Payload, +use asap_types::ir::physical_export::{ + PhysicalASAPDAG, PhysicalASAPNodeId, PhysicalASAPOperatorPayload as Payload, }; use asap_types::ir::{ASAPOp, Operator, OperatorNode}; use asap_types::post_asap::{ @@ -280,17 +281,17 @@ fn price( .min(input.rows.max(1)) }; let (out, estimate, detail) = match &node.payload { - Payload::Relational { operator } => match operator { - NonASAPOpKind::Scan { .. } => { + Payload::NonASAP(operator) => match operator { + NonASAPOp::Scan { .. } => { // A scan reads what its time range keeps. let lookback = dag .edges .iter() .filter(|e| e.producer == node.id) .filter_map(|e| match &nodes[&e.consumer].payload { - Payload::Relational { - operator: NonASAPOpKind::TimeRange { range, .. }, - } => Some(range.as_millis() as u64), + Payload::NonASAP(NonASAPOp::TimeRange { range, .. }) => { + Some(range.as_millis() as u64) + } _ => None, }) .max() @@ -309,7 +310,7 @@ fn price( ); (out, estimate, format!("scan {} samples", out.rows)) } - NonASAPOpKind::Aggregate { + NonASAPOp::Aggregate { reduction, measures, .. @@ -341,7 +342,9 @@ fn price( ), ) } - NonASAPOpKind::Sort { keys, partition_by } => { + NonASAPOp::Sort { + keys, partition_by, .. + } => { let partitions = if partition_by.keys().is_empty() { 1 } else { @@ -363,10 +366,11 @@ fn price( format!("sort {} rows in {partitions} partitions", input.rows), ) } - NonASAPOpKind::Limit { + NonASAPOp::Limit { n, offset, partition_by, + .. } => { let partitions = if partition_by.keys().is_empty() { 1 @@ -390,15 +394,15 @@ fn price( }, ); let name = match other { - NonASAPOpKind::TimeRange { range, .. } => format!("time range {range:?}"), + NonASAPOp::TimeRange { range, .. } => format!("time range {range:?}"), _ => "operator".into(), }; (input, estimate, format!("{name}: pass {} rows", input.rows)) } }, - Payload::SummaryAgg { + Payload::ASAP(ASAPOp::SummaryAgg { family, reduction, .. - } => { + }) => { let group_count = groups(reduction); let (depth, state_bytes) = summary_shape(family); let out = EdgeStatistics { @@ -416,7 +420,7 @@ fn price( ), ) } - Payload::SummaryEstimate { query } => { + Payload::ASAP(ASAPOp::SummaryEstimate { query, .. }) => { let per_group = match query { SketchStatistic::TopK { k } => *k as u64, _ => 1, @@ -428,7 +432,7 @@ fn price( format!("estimate {} groups x {per_group}", input.rows), ) } - Payload::FinalizeExactAccumulator => ( + Payload::ASAP(ASAPOp::FinalizeExactAccumulator { .. }) => ( edge(input.rows), Ok(ResourceEstimate::new(input.rows as f64, 0, 0)), format!("finalize {} accumulators", input.rows), diff --git a/crates/devtools/src/bin/stage_pipeline.rs b/crates/devtools/src/bin/stage_pipeline.rs index 79dfdf11..6f6d9d10 100644 --- a/crates/devtools/src/bin/stage_pipeline.rs +++ b/crates/devtools/src/bin/stage_pipeline.rs @@ -181,7 +181,7 @@ fn stage3_json(selection: &Selection) -> Value { .iter() .map(|(node, c)| { ( - node.0.to_string(), + node.to_string(), json!({ "cost": c.cost, "detail": c.detail }), ) }) diff --git a/crates/devtools/tests/stage_pipeline.rs b/crates/devtools/tests/stage_pipeline.rs index 26fc4eff..cd2593ba 100644 --- a/crates/devtools/tests/stage_pipeline.rs +++ b/crates/devtools/tests/stage_pipeline.rs @@ -4,8 +4,8 @@ use std::path::PathBuf; use std::process::Command; use asap_types::ir::flat::FlatDag; -use asap_types::ir::QueryRoot; use asap_types::ir::physical_export::{PhysicalASAPDAG, PhysicalASAPDAGDocument}; +use asap_types::ir::QueryRoot; use serde_json::Value; const COMMITTED: &str = "../../tools/dag-viewer/examples/planner-layering-example1.json"; diff --git a/tools/dag-viewer/examples/planner-layering-example1.json b/tools/dag-viewer/examples/planner-layering-example1.json index dfd2cf1e..ae9ba1d7 100644 --- a/tools/dag-viewer/examples/planner-layering-example1.json +++ b/tools/dag-viewer/examples/planner-layering-example1.json @@ -2,101 +2,62 @@ "format": "asap-stage-pipeline/v1", "stage0_logical": { "dag": { - "edges": [ - { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 0, - "role": "Input" - }, + "nodes": [ { - "consumer": 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" + "guarantee": null, + "operator": { + "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": [] }, - "name": "$promql_series_identity", - "nullable": false, - "table": null + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } } - ], - "time_index": 0, - "unique_keys": [] + } }, - "producer": 1, - "role": "Input" - }, - { - "consumer": 3, - "grouping": "NotApplicable", - "intermediate_schema": { + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -135,58 +96,24 @@ "time_index": 0, "unique_keys": [] }, - "producer": 2, - "role": "Input" + "timing": null }, { - "consumer": 5, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } } - ], - "time_index": 0, - "unique_keys": [] + } }, - "producer": 4, - "role": "Input" - }, - { - "consumer": 6, - "grouping": "NotApplicable", - "intermediate_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -225,157 +152,30 @@ "time_index": 0, "unique_keys": [] }, - "producer": 5, - "role": "Input" + "timing": null }, { - "consumer": 7, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 6, - "role": "Input" - } - ], - "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": [] - }, - "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 - }, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null + "kind": "rate" } ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "output_names": [ + "" + ], + "reduction": "PerEntity" } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 1, - "output_schema": { + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -414,86 +214,35 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" + "timing": null }, { - "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 + "operator": { + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } } - ], - "time_index": 0, - "unique_keys": [] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 3, - "output_schema": { + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -520,35 +269,63 @@ ] ] }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 4, - "output_schema": { + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -587,64 +364,24 @@ "time_index": 0, "unique_keys": [] }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "timing": null + }, + { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 4, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 5, - "output_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -683,24 +420,31 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 6, - "output_schema": { + "operator": { + "NonASAP": { + "Aggregate": { + "child": 5, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -739,31 +483,39 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 7, - "output_schema": { + "operator": { + "NonASAP": { + "Aggregate": { + "child": 6, + "filters": [], + "having": null, + "measures": [ + { + "accuracy": { + "EpsilonDelta": { + "delta": 0.001, + "epsilon": 0.01 + } + }, + "k": 10, + "kind": "top_k" + } + ], + "output_names": [], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -790,33 +542,7 @@ ] ] }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "accuracy": { - "EpsilonDelta": { - "delta": 0.001, - "epsilon": 0.01 - } - }, - "k": 10, - "kind": "top_k" - } - ], - "output_names": [], - "reduction": { - "Reduce": [ - 2 - ] - } - } - }, - "result_kind": "instant_vector" + "timing": null } ], "roots": [ @@ -833,11 +559,62 @@ "candidates": [ { "dag": { - "edges": [ + "nodes": [ { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -876,13 +653,24 @@ "time_index": 0, "unique_keys": [] }, - "producer": 0, - "role": "Input" + "timing": null }, { - "consumer": 2, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -921,13 +709,30 @@ "time_index": 0, "unique_keys": [] }, - "producer": 1, - "role": "Input" + "timing": null }, { - "consumer": 3, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -966,31 +771,37 @@ "time_index": 0, "unique_keys": [] }, - "producer": 2, - "role": "Input" + "timing": null }, { - "consumer": 5, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -1001,343 +812,7 @@ }, { "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 4, - "role": "Input" - }, - { - "consumer": 6, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 5, - "role": "Input" - }, - { - "consumer": 7, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 6, - "role": "Input" - } - ], - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 3, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "Plain": "float64" }, "name": "sum", "nullable": false, @@ -1351,12010 +826,63 @@ ] ] }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 7, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "topk_10", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "accuracy": { - "EpsilonDelta": { - "delta": 0.001, - "epsilon": 0.01 - } - }, - "k": 10, - "kind": "top_k" - } - ], - "output_names": [], - "reduction": { - "Reduce": [ - 2 - ] - } - } - }, - "result_kind": "instant_vector" - } - ], - "roots": [ - { - "Operator": 3 - }, - { - "Operator": 7 - } - ] - }, - "id": "L1", - "label": "Q1 exact · Q2 exact" - }, - { - "dag": { - "edges": [ - { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 0, - "role": "Input" - }, - { - "consumer": 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": [] - }, - "producer": 1, - "role": "Input" - }, - { - "consumer": 3, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 2, - "role": "Input" - }, - { - "consumer": 5, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 4, - "role": "Input" - }, - { - "consumer": 6, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 5, - "role": "Input" - }, - { - "consumer": 7, - "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": [] - }, - "producer": 6, - "role": "Input" - }, - { - "consumer": 8, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 7, - "role": "Input" - } - ], - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" - }, - { - "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 - ] - ] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "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": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "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" - }, - "result_kind": "state" - }, - { - "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": [] - }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 8, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "topk_10", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "accuracy": { - "EpsilonDelta": { - "delta": 0.001, - "epsilon": 0.01 - } - }, - "k": 10, - "kind": "top_k" - } - ], - "output_names": [], - "reduction": { - "Reduce": [ - 2 - ] - } - } - }, - "result_kind": "instant_vector" - } - ], - "roots": [ - { - "Operator": 3 - }, - { - "Operator": 8 - } - ] - }, - "id": "L2", - "label": "Q1 exact · Q2 exact (Sum acc)" - }, - { - "dag": { - "edges": [ - { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 0, - "role": "Input" - }, - { - "consumer": 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": [] - }, - "producer": 1, - "role": "Input" - }, - { - "consumer": 3, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 2, - "role": "Input" - }, - { - "consumer": 5, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 4, - "role": "Input" - }, - { - "consumer": 6, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 5, - "role": "Input" - }, - { - "consumer": 7, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 6, - "role": "Input" - }, - { - "consumer": 8, - "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" - } - ], - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" - }, - { - "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 - ] - ] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, - "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 - ] - ] - }, - "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": "unknown_or_signed" - } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] - } - }, - "result_kind": "state" - }, - { - "coverage": null, - "guarantee": null, - "id": 8, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "topk", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 - } - } - }, - "result_kind": "instant_vector" - } - ], - "roots": [ - { - "Operator": 3 - }, - { - "Operator": 8 - } - ] - }, - "id": "L3", - "label": "Q1 exact · Q2 CMS+heap" - }, - { - "dag": { - "edges": [ - { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 0, - "role": "Input" - }, - { - "consumer": 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": [] - }, - "producer": 1, - "role": "Input" - }, - { - "consumer": 3, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 2, - "role": "Input" - }, - { - "consumer": 5, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 4, - "role": "Input" - }, - { - "consumer": 6, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 5, - "role": "Input" - }, - { - "consumer": 7, - "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": [] - }, - "producer": 6, - "role": "Input" - }, - { - "consumer": 8, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 7, - "role": "Input" - }, - { - "consumer": 9, - "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" - } - ], - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" - }, - { - "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 - ] - ] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "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": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "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" - }, - "result_kind": "state" - }, - { - "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": [] - }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, - "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 - ] - ] - }, - "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": "unknown_or_signed" - } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] - } - }, - "result_kind": "state" - }, - { - "coverage": null, - "guarantee": null, - "id": 9, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "topk", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 - } - } - }, - "result_kind": "instant_vector" - } - ], - "roots": [ - { - "Operator": 3 - }, - { - "Operator": 9 - } - ] - }, - "id": "L4", - "label": "Q1 exact · Q2 CMS+heap (Sum acc)" - }, - { - "dag": { - "edges": [ - { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 0, - "role": "Input" - }, - { - "consumer": 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": [] - }, - "producer": 1, - "role": "Input" - }, - { - "consumer": 3, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 2, - "role": "Input" - }, - { - "consumer": 5, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 4, - "role": "Input" - }, - { - "consumer": 6, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 5, - "role": "Input" - }, - { - "consumer": 7, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 6, - "role": "Input" - }, - { - "consumer": 8, - "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" - } - ], - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" - }, - { - "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 - ] - ] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, - "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 - ] - ] - }, - "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": "unknown_or_signed" - } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] - } - }, - "result_kind": "state" - }, - { - "coverage": null, - "guarantee": null, - "id": 8, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "topk", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 - } - } - }, - "result_kind": "instant_vector" - } - ], - "roots": [ - { - "Operator": 3 - }, - { - "Operator": 8 - } - ] - }, - "id": "L5", - "label": "Q1 exact · Q2 CountSketch+heap" - }, - { - "dag": { - "edges": [ - { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 0, - "role": "Input" - }, - { - "consumer": 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": [] - }, - "producer": 1, - "role": "Input" - }, - { - "consumer": 3, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 2, - "role": "Input" - }, - { - "consumer": 5, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 4, - "role": "Input" - }, - { - "consumer": 6, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 5, - "role": "Input" - }, - { - "consumer": 7, - "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": [] - }, - "producer": 6, - "role": "Input" - }, - { - "consumer": 8, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 7, - "role": "Input" - }, - { - "consumer": 9, - "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" - } - ], - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" - }, - { - "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 - ] - ] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "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": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "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" - }, - "result_kind": "state" - }, - { - "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": [] - }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, - "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 - ] - ] - }, - "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": "unknown_or_signed" - } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] - } - }, - "result_kind": "state" - }, - { - "coverage": null, - "guarantee": null, - "id": 9, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "topk", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 - } - } - }, - "result_kind": "instant_vector" - } - ], - "roots": [ - { - "Operator": 3 - }, - { - "Operator": 9 - } - ] - }, - "id": "L6", - "label": "Q1 exact · Q2 CountSketch+heap (Sum acc)" - }, - { - "dag": { - "edges": [ - { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 0, - "role": "Input" - }, - { - "consumer": 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": [] - }, - "producer": 1, - "role": "Input" - }, - { - "consumer": 3, - "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": [] - }, - "producer": 2, - "role": "Input" - }, - { - "consumer": 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": [] - }, - "producer": 3, - "role": "Input" - }, - { - "consumer": 6, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 5, - "role": "Input" - }, - { - "consumer": 7, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 6, - "role": "Input" - }, - { - "consumer": 8, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 7, - "role": "Input" - } - ], - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "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": [] - }, - "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" - }, - "result_kind": "state" - }, - { - "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": [] - }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" - }, - { - "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 - ] - ] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 8, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "topk_10", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "accuracy": { - "EpsilonDelta": { - "delta": 0.001, - "epsilon": 0.01 - } - }, - "k": 10, - "kind": "top_k" - } - ], - "output_names": [], - "reduction": { - "Reduce": [ - 2 - ] - } - } - }, - "result_kind": "instant_vector" - } - ], - "roots": [ - { - "Operator": 4 - }, - { - "Operator": 8 - } - ] - }, - "id": "L7", - "label": "Q1 exact (Rate acc) · Q2 exact" - }, - { - "dag": { - "edges": [ - { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 0, - "role": "Input" - }, - { - "consumer": 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": [] - }, - "producer": 1, - "role": "Input" - }, - { - "consumer": 3, - "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": [] - }, - "producer": 2, - "role": "Input" - }, - { - "consumer": 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": [] - }, - "producer": 3, - "role": "Input" - }, - { - "consumer": 6, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 5, - "role": "Input" - }, - { - "consumer": 7, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 6, - "role": "Input" - }, - { - "consumer": 8, - "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": [] - }, - "producer": 7, - "role": "Input" - }, - { - "consumer": 9, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 8, - "role": "Input" - } - ], - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "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": [] - }, - "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" - }, - "result_kind": "state" - }, - { - "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": [] - }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" - }, - { - "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 - ] - ] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "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": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "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" - }, - "result_kind": "state" - }, - { - "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": [] - }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 9, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "topk_10", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "accuracy": { - "EpsilonDelta": { - "delta": 0.001, - "epsilon": 0.01 - } - }, - "k": 10, - "kind": "top_k" - } - ], - "output_names": [], - "reduction": { - "Reduce": [ - 2 - ] - } - } - }, - "result_kind": "instant_vector" - } - ], - "roots": [ - { - "Operator": 4 - }, - { - "Operator": 9 - } - ] - }, - "id": "L8", - "label": "Q1 exact (Rate acc) · Q2 exact (Sum acc)" - }, - { - "dag": { - "edges": [ - { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 0, - "role": "Input" - }, - { - "consumer": 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": [] - }, - "producer": 1, - "role": "Input" - }, - { - "consumer": 3, - "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": [] - }, - "producer": 2, - "role": "Input" - }, - { - "consumer": 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": [] - }, - "producer": 3, - "role": "Input" - }, - { - "consumer": 6, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 5, - "role": "Input" - }, - { - "consumer": 7, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 6, - "role": "Input" - }, - { - "consumer": 8, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 7, - "role": "Input" - }, - { - "consumer": 9, - "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" - } - ], - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "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": [] - }, - "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" - }, - "result_kind": "state" - }, - { - "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": [] - }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" - }, - { - "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 - ] - ] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, - "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 - ] - ] - }, - "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": "unknown_or_signed" - } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] - } - }, - "result_kind": "state" - }, - { - "coverage": null, - "guarantee": null, - "id": 9, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "topk", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 - } - } - }, - "result_kind": "instant_vector" - } - ], - "roots": [ - { - "Operator": 4 - }, - { - "Operator": 9 - } - ] - }, - "id": "L9", - "label": "Q1 exact (Rate acc) · Q2 CMS+heap" - }, - { - "dag": { - "edges": [ - { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 0, - "role": "Input" - }, - { - "consumer": 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": [] - }, - "producer": 1, - "role": "Input" - }, - { - "consumer": 3, - "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": [] - }, - "producer": 2, - "role": "Input" - }, - { - "consumer": 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": [] - }, - "producer": 3, - "role": "Input" - }, - { - "consumer": 6, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 5, - "role": "Input" - }, - { - "consumer": 7, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 6, - "role": "Input" - }, - { - "consumer": 8, - "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": [] - }, - "producer": 7, - "role": "Input" - }, - { - "consumer": 9, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 8, - "role": "Input" - }, - { - "consumer": 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": 9, - "role": "Input" - } - ], - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "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": [] - }, - "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" - }, - "result_kind": "state" - }, - { - "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": [] - }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" - }, - { - "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 - ] - ] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "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": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "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" - }, - "result_kind": "state" - }, - { - "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": [] - }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, - "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 - ] - ] - }, - "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": "unknown_or_signed" - } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] - } - }, - "result_kind": "state" - }, - { - "coverage": null, - "guarantee": null, - "id": 10, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "topk", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 - } - } - }, - "result_kind": "instant_vector" - } - ], - "roots": [ - { - "Operator": 4 - }, - { - "Operator": 10 - } - ] - }, - "id": "L10", - "label": "Q1 exact (Rate acc) · Q2 CMS+heap (Sum acc)" - }, - { - "dag": { - "edges": [ - { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 0, - "role": "Input" - }, - { - "consumer": 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": [] - }, - "producer": 1, - "role": "Input" - }, - { - "consumer": 3, - "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": [] - }, - "producer": 2, - "role": "Input" - }, - { - "consumer": 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": [] - }, - "producer": 3, - "role": "Input" - }, - { - "consumer": 6, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 5, - "role": "Input" - }, - { - "consumer": 7, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 6, - "role": "Input" - }, - { - "consumer": 8, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 7, - "role": "Input" - }, - { - "consumer": 9, - "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" - } - ], - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "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": [] - }, - "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" - }, - "result_kind": "state" - }, - { - "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": [] - }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" - }, - { - "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 - ] - ] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, - "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 - ] - ] - }, - "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": "unknown_or_signed" - } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] - } - }, - "result_kind": "state" - }, - { - "coverage": null, - "guarantee": null, - "id": 9, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "topk", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 - } - } - }, - "result_kind": "instant_vector" - } - ], - "roots": [ - { - "Operator": 4 - }, - { - "Operator": 9 - } - ] - }, - "id": "L11", - "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap" - }, - { - "dag": { - "edges": [ - { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 0, - "role": "Input" - }, - { - "consumer": 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": [] - }, - "producer": 1, - "role": "Input" - }, - { - "consumer": 3, - "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": [] - }, - "producer": 2, - "role": "Input" - }, - { - "consumer": 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": [] - }, - "producer": 3, - "role": "Input" - }, - { - "consumer": 6, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 5, - "role": "Input" - }, - { - "consumer": 7, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 6, - "role": "Input" - }, - { - "consumer": 8, - "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": [] - }, - "producer": 7, - "role": "Input" - }, - { - "consumer": 9, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 8, - "role": "Input" - }, - { - "consumer": 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": 9, - "role": "Input" - } - ], - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "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": [] - }, - "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" - }, - "result_kind": "state" - }, - { - "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": [] - }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" - }, - { - "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 - ] - ] - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": { - "Reduce": [ - 2 - ] - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - }, - "result_kind": "instant_vector" - }, - { - "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": [] - }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "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": { - "ExactAggregate": [ - "Sum", - "Sum" - ] - }, - "name": "state", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "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" - }, - "result_kind": "state" - }, - { - "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": [] - }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" - }, - { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, - "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 - ] - ] - }, - "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": "unknown_or_signed" - } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] - } - }, - "result_kind": "state" - }, - { - "coverage": null, - "guarantee": null, - "id": 10, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "topk", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 - } - } - }, - "result_kind": "instant_vector" - } - ], - "roots": [ - { - "Operator": 4 - }, - { - "Operator": 10 - } - ] - }, - "id": "L12", - "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap (Sum acc)" - }, - { - "dag": { - "edges": [ - { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 0, - "role": "Input" - }, - { - "consumer": 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": [] - }, - "producer": 1, - "role": "Input" - }, - { - "consumer": 3, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null - } - ], - "time_index": 0, - "unique_keys": [] - }, - "producer": 2, - "role": "Input" - }, - { - "consumer": 4, - "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" + "timing": null }, { - "consumer": 6, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -13393,13 +921,24 @@ "time_index": 0, "unique_keys": [] }, - "producer": 5, - "role": "Input" + "timing": null }, { - "consumer": 7, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 4, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -13438,13 +977,31 @@ "time_index": 0, "unique_keys": [] }, - "producer": 6, - "role": "Input" + "timing": null }, { - "consumer": 8, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 5, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -13483,16 +1040,138 @@ "time_index": 0, "unique_keys": [] }, - "producer": 7, - "role": "Input" + "timing": null + }, + { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 6, + "filters": [], + "having": null, + "measures": [ + { + "accuracy": { + "EpsilonDelta": { + "delta": 0.001, + "epsilon": 0.01 + } + }, + "k": 10, + "kind": "top_k" + } + ], + "output_names": [], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "instant_vector", + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk_10", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "timing": null } ], + "roots": [ + { + "Operator": 3 + }, + { + "Operator": 7 + } + ] + }, + "id": "L1", + "label": "Q1 exact · Q2 exact" + }, + { + "dag": { "nodes": [ { - "coverage": null, "guarantee": null, - "id": 0, - "output_schema": { + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -13531,64 +1210,24 @@ "time_index": 0, "unique_keys": [] }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "timing": null + }, + { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 1, - "output_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -13627,24 +1266,30 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 2, - "output_schema": { + "operator": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -13683,42 +1328,35 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } } } }, - "guarantee": null, - "id": 3, - "output_schema": { + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -13731,12 +1369,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "sum", "nullable": false, "table": null } @@ -13748,40 +1383,81 @@ ] ] }, - "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 - ] - } - }, - "result_kind": "state" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 4, - "output_schema": { + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -13792,30 +1468,34 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "payload": { - "kind": "finalize_exact_accumulator" + "time_index": 0, + "unique_keys": [] }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 5, - "output_schema": { + "operator": { + "NonASAP": { + "TimeRange": { + "child": 4, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -13854,64 +1534,37 @@ "time_index": 0, "unique_keys": [] }, - "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 + "timing": null + }, + { + "guarantee": null, + "operator": { + "ASAP": { + "SummaryAgg": { + "child": 5, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null + "weight_domain": { + "kind": "unknown_or_signed" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + }, + "reduction": "PerEntity" } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 6, - "output_schema": { + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -13924,9 +1577,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -13950,24 +1606,19 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 7, - "output_schema": { + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 6 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -14006,31 +1657,39 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 8, - "output_schema": { + "operator": { + "NonASAP": { + "Aggregate": { + "child": 7, + "filters": [], + "having": null, + "measures": [ + { + "accuracy": { + "EpsilonDelta": { + "delta": 0.001, + "epsilon": 0.01 + } + }, + "k": 10, + "kind": "top_k" + } + ], + "output_names": [], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -14057,54 +1716,79 @@ ] ] }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "accuracy": { - "EpsilonDelta": { - "delta": 0.001, - "epsilon": 0.01 - } - }, - "k": 10, - "kind": "top_k" - } - ], - "output_names": [], - "reduction": { - "Reduce": [ - 2 - ] - } - } - }, - "result_kind": "instant_vector" + "timing": null } ], "roots": [ { - "Operator": 4 + "Operator": 3 }, { "Operator": 8 } ] }, - "id": "L13", - "label": "Q1 exact (Sum acc) · Q2 exact" + "id": "L2", + "label": "Q1 exact · Q2 exact (Sum acc)" }, { "dag": { - "edges": [ + "nodes": [ { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -14143,13 +1827,24 @@ "time_index": 0, "unique_keys": [] }, - "producer": 0, - "role": "Input" + "timing": null }, { - "consumer": 2, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -14188,13 +1883,30 @@ "time_index": 0, "unique_keys": [] }, - "producer": 1, - "role": "Input" + "timing": null }, { - "consumer": 3, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -14233,13 +1945,35 @@ "time_index": 0, "unique_keys": [] }, - "producer": 2, - "role": "Input" + "timing": null }, { - "consumer": 4, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -14252,12 +1986,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "sum", "nullable": false, "table": null } @@ -14269,13 +2000,63 @@ ] ] }, - "producer": 3, - "role": "Input" + "timing": null }, { - "consumer": 6, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -14314,13 +2095,24 @@ "time_index": 0, "unique_keys": [] }, - "producer": 5, - "role": "Input" + "timing": null }, { - "consumer": 7, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 4, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -14359,13 +2151,31 @@ "time_index": 0, "unique_keys": [] }, - "producer": 6, - "role": "Input" + "timing": null }, { - "consumer": 8, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 5, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -14378,12 +2188,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -14399,39 +2206,122 @@ "dtype": { "Plain": "utf8" }, - "name": "$promql_series_identity", + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "timing": null + }, + { + "guarantee": null, + "operator": { + "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": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "state", + "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": 0, - "unique_keys": [] + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] }, - "producer": 7, - "role": "Input" + "timing": null }, { - "consumer": 9, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 7 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -14444,24 +2334,91 @@ "dtype": { "Plain": "utf8" }, - "name": "$promql_series_identity", + "name": "topk", "nullable": false, "table": null } ], - "time_index": 0, - "unique_keys": [] + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] }, - "producer": 8, - "role": "Input" + "timing": null } ], + "roots": [ + { + "Operator": 3 + }, + { + "Operator": 8 + } + ] + }, + "id": "L3", + "label": "Q1 exact · Q2 CMS+heap" + }, + { + "dag": { "nodes": [ { - "coverage": null, "guarantee": null, - "id": 0, - "output_schema": { + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -14500,64 +2457,24 @@ "time_index": 0, "unique_keys": [] }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "timing": null + }, + { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 1, - "output_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -14596,24 +2513,30 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 2, - "output_schema": { + "operator": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -14652,103 +2575,35 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, - "id": 3, - "output_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" + "operator": { + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "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 - ] } }, - "result_kind": "state" - }, - { - "coverage": null, - "guarantee": null, - "id": 4, - "output_schema": { + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -14775,16 +2630,63 @@ ] ] }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 5, - "output_schema": { + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -14823,64 +2725,24 @@ "time_index": 0, "unique_keys": [] }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "timing": null + }, + { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 4, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 6, - "output_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -14919,36 +2781,37 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "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": { + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -14990,34 +2853,19 @@ "time_index": 0, "unique_keys": [] }, - "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" - }, - "result_kind": "state" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 8, - "output_schema": { + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 6 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -15056,16 +2904,55 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 9, - "output_schema": { + "operator": { + "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": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -15078,9 +2965,22 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "topk_10", + "name": "state", "nullable": false, "table": null } @@ -15092,54 +2992,123 @@ ] ] }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "accuracy": { - "EpsilonDelta": { - "delta": 0.001, - "epsilon": 0.01 - } - }, - "k": 10, - "kind": "top_k" - } - ], - "output_names": [], - "reduction": { - "Reduce": [ - 2 - ] + "timing": null + }, + { + "guarantee": null, + "operator": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 8 } } }, - "result_kind": "instant_vector" + "result_kind": "instant_vector", + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "timing": null } ], "roots": [ { - "Operator": 4 + "Operator": 3 }, { "Operator": 9 } ] }, - "id": "L14", - "label": "Q1 exact (Sum acc) · Q2 exact (Sum acc)" + "id": "L4", + "label": "Q1 exact · Q2 CMS+heap (Sum acc)" }, { "dag": { - "edges": [ + "nodes": [ { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -15178,13 +3147,24 @@ "time_index": 0, "unique_keys": [] }, - "producer": 0, - "role": "Input" + "timing": null }, { - "consumer": 2, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -15223,13 +3203,30 @@ "time_index": 0, "unique_keys": [] }, - "producer": 1, - "role": "Input" + "timing": null }, { - "consumer": 3, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -15268,13 +3265,35 @@ "time_index": 0, "unique_keys": [] }, - "producer": 2, - "role": "Input" + "timing": null }, { - "consumer": 4, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -15287,12 +3306,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "sum", "nullable": false, "table": null } @@ -15304,13 +3320,63 @@ ] ] }, - "producer": 3, - "role": "Input" + "timing": null }, { - "consumer": 6, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -15349,13 +3415,24 @@ "time_index": 0, "unique_keys": [] }, - "producer": 5, - "role": "Input" + "timing": null }, { - "consumer": 7, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 4, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -15394,13 +3471,31 @@ "time_index": 0, "unique_keys": [] }, - "producer": 6, - "role": "Input" + "timing": null }, { - "consumer": 8, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 5, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -15415,10 +3510,81 @@ "dtype": { "Plain": "float64" }, - "name": "value", - "nullable": false, - "table": null - }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "timing": null + }, + { + "guarantee": null, + "operator": { + "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": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "state", + "schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -15429,23 +3595,51 @@ }, { "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, - "unique_keys": [] + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] }, - "producer": 7, - "role": "Input" + "timing": null }, { - "consumer": 9, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 7 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -15458,22 +3652,9 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "topk", "nullable": false, "table": null } @@ -15485,16 +3666,79 @@ ] ] }, - "producer": 8, - "role": "Input" + "timing": null } ], + "roots": [ + { + "Operator": 3 + }, + { + "Operator": 8 + } + ] + }, + "id": "L5", + "label": "Q1 exact · Q2 CountSketch+heap" + }, + { + "dag": { "nodes": [ { - "coverage": null, "guarantee": null, - "id": 0, - "output_schema": { + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -15533,64 +3777,24 @@ "time_index": 0, "unique_keys": [] }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "timing": null + }, + { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 1, - "output_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -15629,24 +3833,30 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 2, - "output_schema": { + "operator": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -15685,42 +3895,35 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 2, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } } } }, - "guarantee": null, - "id": 3, - "output_schema": { + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -15733,12 +3936,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "sum", "nullable": false, "table": null } @@ -15750,40 +3950,81 @@ ] ] }, - "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 - ] - } - }, - "result_kind": "state" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 4, - "output_schema": { + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -15794,30 +4035,34 @@ }, { "dtype": { - "Plain": "float64" + "Plain": "utf8" }, - "name": "sum", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "payload": { - "kind": "finalize_exact_accumulator" + "time_index": 0, + "unique_keys": [] }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 5, - "output_schema": { + "operator": { + "NonASAP": { + "TimeRange": { + "child": 4, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -15856,64 +4101,37 @@ "time_index": 0, "unique_keys": [] }, - "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 + "timing": null + }, + { + "guarantee": null, + "operator": { + "ASAP": { + "SummaryAgg": { + "child": 5, + "family": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": null, + "weight": { + "Column": "SampleValue" }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null + "weight_domain": { + "kind": "unknown_or_signed" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + }, + "reduction": "PerEntity" } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 6, - "output_schema": { + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -15926,9 +4144,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -15952,24 +4173,19 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 7, - "output_schema": { + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 6 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -16008,43 +4224,55 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "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": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } } } }, - "guarantee": null, - "id": 8, - "output_schema": { + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -16059,13 +4287,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CmsWithHeap", + "algorithm": "CountSketchWithHeap", "category": "TopK", "params": { - "CmsWithHeap": { - "depth": 7, + "CountSketchWithHeap": { + "depth": 125, "heap_size": 100, - "width": 272 + "width": 30000 } } }, @@ -16084,52 +4312,24 @@ ] ] }, - "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } + "timing": null + }, + { + "guarantee": null, + "operator": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "summary_input": 8 } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } }, - "result_kind": "state" - }, - { - "coverage": null, - "guarantee": null, - "id": 9, - "output_schema": { + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -16156,36 +4356,79 @@ ] ] }, - "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 - } - } - }, - "result_kind": "instant_vector" + "timing": null } ], "roots": [ { - "Operator": 4 + "Operator": 3 }, { "Operator": 9 } ] }, - "id": "L15", - "label": "Q1 exact (Sum acc) · Q2 CMS+heap" + "id": "L6", + "label": "Q1 exact · Q2 CountSketch+heap (Sum acc)" }, { "dag": { - "edges": [ + "nodes": [ { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -16224,13 +4467,24 @@ "time_index": 0, "unique_keys": [] }, - "producer": 0, - "role": "Input" + "timing": null }, { - "consumer": 2, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -16269,13 +4523,37 @@ "time_index": 0, "unique_keys": [] }, - "producer": 1, - "role": "Input" + "timing": null }, { - "consumer": 3, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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" + } + } + }, + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -16288,9 +4566,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -16314,49 +4595,19 @@ "time_index": 0, "unique_keys": [] }, - "producer": 2, - "role": "Input" + "timing": null }, { - "consumer": 4, - "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 + "guarantee": null, + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + } }, - "producer": 3, - "role": "Input" - }, - { - "consumer": 6, - "grouping": "NotApplicable", - "intermediate_schema": { + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -16395,13 +4646,118 @@ "time_index": 0, "unique_keys": [] }, - "producer": 5, - "role": "Input" + "timing": null }, { - "consumer": 7, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "instant_vector", + "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 + ] + ] + }, + "timing": null + }, + { + "guarantee": null, + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -16440,13 +4796,24 @@ "time_index": 0, "unique_keys": [] }, - "producer": 6, - "role": "Input" + "timing": null }, { - "consumer": 8, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -16459,12 +4826,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -16488,13 +4852,31 @@ "time_index": 0, "unique_keys": [] }, - "producer": 7, - "role": "Input" + "timing": null }, { - "consumer": 9, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 6, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -16533,13 +4915,39 @@ "time_index": 0, "unique_keys": [] }, - "producer": 8, - "role": "Input" + "timing": null }, { - "consumer": 10, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 7, + "filters": [], + "having": null, + "measures": [ + { + "accuracy": { + "EpsilonDelta": { + "delta": 0.001, + "epsilon": 0.01 + } + }, + "k": 10, + "kind": "top_k" + } + ], + "output_names": [], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -16552,22 +4960,9 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "topk_10", "nullable": false, "table": null } @@ -16579,16 +4974,79 @@ ] ] }, - "producer": 9, - "role": "Input" + "timing": null } ], + "roots": [ + { + "Operator": 4 + }, + { + "Operator": 8 + } + ] + }, + "id": "L7", + "label": "Q1 exact (Rate acc) · Q2 exact" + }, + { + "dag": { "nodes": [ { - "coverage": null, "guarantee": null, - "id": 0, - "output_schema": { + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -16627,64 +5085,24 @@ "time_index": 0, "unique_keys": [] }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "timing": null + }, + { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 1, - "output_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -16723,24 +5141,37 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 2, - "output_schema": { + "operator": { + "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" + } + } + }, + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -16753,9 +5184,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -16779,44 +5213,37 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 } } }, - "guarantee": null, - "id": 3, - "output_schema": { + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -16827,55 +5254,45 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "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 - ] - } + "time_index": 0, + "unique_keys": [] }, - "result_kind": "state" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 4, - "output_schema": { + "operator": { + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -16902,16 +5319,63 @@ ] ] }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 5, - "output_schema": { + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -16950,64 +5414,24 @@ "time_index": 0, "unique_keys": [] }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "timing": null + }, + { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 6, - "output_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -17046,36 +5470,37 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "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": 7, - "output_schema": { + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -17117,34 +5542,19 @@ "time_index": 0, "unique_keys": [] }, - "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" - }, - "result_kind": "state" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 8, - "output_schema": { + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 7 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -17183,28 +5593,39 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 8, + "filters": [], + "having": null, + "measures": [ + { + "accuracy": { + "EpsilonDelta": { + "delta": 0.001, + "epsilon": 0.01 + } + }, + "k": 10, + "kind": "top_k" + } + ], + "output_names": [], + "reduction": { + "Reduce": [ + 2 + ] + } } } }, - "guarantee": null, - "id": 9, - "output_schema": { + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -17217,22 +5638,9 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "topk_10", "nullable": false, "table": null } @@ -17244,54 +5652,97 @@ ] ] }, - "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 + "timing": null + } + ], + "roots": [ + { + "Operator": 4 + }, + { + "Operator": 9 + } + ] + }, + "id": "L8", + "label": "Q1 exact (Rate acc) · Q2 exact (Sum acc)" + }, + { + "dag": { + "nodes": [ + { + "guarantee": null, + "operator": { + "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": [] }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } }, - "result_kind": "state" - }, - { - "coverage": null, - "guarantee": null, - "id": 10, - "output_schema": { + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -17304,48 +5755,32 @@ "dtype": { "Plain": "utf8" }, - "name": "topk", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] + "time_index": 0, + "unique_keys": [] }, - "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "timing": null + }, + { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } } } }, - "result_kind": "instant_vector" - } - ], - "roots": [ - { - "Operator": 4 - }, - { - "Operator": 10 - } - ] - }, - "id": "L16", - "label": "Q1 exact (Sum acc) · Q2 CMS+heap (Sum acc)" - }, - { - "dag": { - "edges": [ - { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -17384,13 +5819,37 @@ "time_index": 0, "unique_keys": [] }, - "producer": 0, - "role": "Input" + "timing": null }, { - "consumer": 2, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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" + } + } + }, + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -17403,9 +5862,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -17429,13 +5891,19 @@ "time_index": 0, "unique_keys": [] }, - "producer": 1, - "role": "Input" + "timing": null }, { - "consumer": 3, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -17474,13 +5942,35 @@ "time_index": 0, "unique_keys": [] }, - "producer": 2, - "role": "Input" + "timing": null }, { - "consumer": 4, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -17493,12 +5983,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "sum", "nullable": false, "table": null } @@ -17510,13 +5997,63 @@ ] ] }, - "producer": 3, - "role": "Input" + "timing": null }, { - "consumer": 6, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -17555,13 +6092,24 @@ "time_index": 0, "unique_keys": [] }, - "producer": 5, - "role": "Input" + "timing": null }, { - "consumer": 7, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -17600,13 +6148,31 @@ "time_index": 0, "unique_keys": [] }, - "producer": 6, - "role": "Input" + "timing": null }, { - "consumer": 8, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 6, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -17645,13 +6211,55 @@ "time_index": 0, "unique_keys": [] }, - "producer": 7, - "role": "Input" + "timing": null }, { - "consumer": 9, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -17666,13 +6274,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CountSketchWithHeap", + "algorithm": "CmsWithHeap", "category": "TopK", "params": { - "CountSketchWithHeap": { - "depth": 125, + "CmsWithHeap": { + "depth": 7, "heap_size": 100, - "width": 30000 + "width": 272 } } }, @@ -17691,16 +6299,123 @@ ] ] }, - "producer": 8, - "role": "Input" + "timing": null + }, + { + "guarantee": null, + "operator": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 8 + } + } + }, + "result_kind": "instant_vector", + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "timing": null } ], + "roots": [ + { + "Operator": 4 + }, + { + "Operator": 9 + } + ] + }, + "id": "L9", + "label": "Q1 exact (Rate acc) · Q2 CMS+heap" + }, + { + "dag": { "nodes": [ { - "coverage": null, "guarantee": null, - "id": 0, - "output_schema": { + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -17739,64 +6454,24 @@ "time_index": 0, "unique_keys": [] }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "timing": null + }, + { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 1, - "output_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -17835,24 +6510,37 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 2, - "output_schema": { + "operator": { + "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" + } + } + }, + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -17865,9 +6553,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -17891,44 +6582,37 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 } } }, - "guarantee": null, - "id": 3, - "output_schema": { + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -17939,55 +6623,45 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "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 - ] - } + "time_index": 0, + "unique_keys": [] }, - "result_kind": "state" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 4, - "output_schema": { + "operator": { + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -18014,16 +6688,63 @@ ] ] }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 5, - "output_schema": { + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -18062,64 +6783,24 @@ "time_index": 0, "unique_keys": [] }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "timing": null + }, + { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 6, - "output_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -18158,24 +6839,91 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "timing": null + }, + { + "guarantee": null, + "operator": { + "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" + } } }, - "result_kind": "range_vector" + "result_kind": "state", + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 7, - "output_schema": { + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 7 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -18214,43 +6962,55 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "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": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } } } }, - "guarantee": null, - "id": 8, - "output_schema": { + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -18265,13 +7025,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CountSketchWithHeap", + "algorithm": "CmsWithHeap", "category": "TopK", "params": { - "CountSketchWithHeap": { - "depth": 125, + "CmsWithHeap": { + "depth": 7, "heap_size": 100, - "width": 30000 + "width": 272 } } }, @@ -18290,52 +7050,24 @@ ] ] }, - "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } + "timing": null + }, + { + "guarantee": null, + "operator": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "summary_input": 9 } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } }, - "result_kind": "state" - }, - { - "coverage": null, - "guarantee": null, - "id": 9, - "output_schema": { + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -18362,15 +7094,7 @@ ] ] }, - "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 - } - } - }, - "result_kind": "instant_vector" + "timing": null } ], "roots": [ @@ -18378,20 +7102,71 @@ "Operator": 4 }, { - "Operator": 9 + "Operator": 10 } ] }, - "id": "L17", - "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap" + "id": "L10", + "label": "Q1 exact (Rate acc) · Q2 CMS+heap (Sum acc)" }, { "dag": { - "edges": [ + "nodes": [ { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -18430,13 +7205,93 @@ "time_index": 0, "unique_keys": [] }, - "producer": 0, - "role": "Input" + "timing": null }, { - "consumer": 2, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "timing": null + }, + { + "guarantee": null, + "operator": { + "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" + } + } + }, + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -18449,9 +7304,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -18475,13 +7333,19 @@ "time_index": 0, "unique_keys": [] }, - "producer": 1, - "role": "Input" + "timing": null }, { - "consumer": 3, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -18520,13 +7384,35 @@ "time_index": 0, "unique_keys": [] }, - "producer": 2, - "role": "Input" + "timing": null }, { - "consumer": 4, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -18539,12 +7425,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "sum", "nullable": false, "table": null } @@ -18556,13 +7439,63 @@ ] ] }, - "producer": 3, - "role": "Input" + "timing": null }, { - "consumer": 6, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -18601,13 +7534,24 @@ "time_index": 0, "unique_keys": [] }, - "producer": 5, - "role": "Input" + "timing": null }, { - "consumer": 7, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -18646,13 +7590,31 @@ "time_index": 0, "unique_keys": [] }, - "producer": 6, - "role": "Input" + "timing": null }, { - "consumer": 8, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 6, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -18665,12 +7627,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -18694,31 +7653,57 @@ "time_index": 0, "unique_keys": [] }, - "producer": 7, - "role": "Input" + "timing": null }, { - "consumer": 9, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" + "guarantee": null, + "operator": { + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "Sketch": [ + { + "algorithm": "CountSketchWithHeap", + "category": "TopK", + "params": { + "CountSketchWithHeap": { + "depth": 125, + "heap_size": 100, + "width": 30000 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } }, - "name": "value", - "nullable": false, - "table": null - }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "state", + "schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -18729,23 +7714,51 @@ }, { "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, - "unique_keys": [] + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] }, - "producer": 8, - "role": "Input" + "timing": null }, { - "consumer": 10, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 8 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -18758,22 +7771,9 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "topk", "nullable": false, "table": null } @@ -18785,16 +7785,79 @@ ] ] }, - "producer": 9, - "role": "Input" + "timing": null } ], + "roots": [ + { + "Operator": 4 + }, + { + "Operator": 9 + } + ] + }, + "id": "L11", + "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap" + }, + { + "dag": { "nodes": [ { - "coverage": null, "guarantee": null, - "id": 0, - "output_schema": { + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -18833,64 +7896,24 @@ "time_index": 0, "unique_keys": [] }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "timing": null + }, + { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 1, - "output_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -18929,24 +7952,37 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 2, - "output_schema": { + "operator": { + "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" + } + } + }, + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -18959,9 +7995,12 @@ }, { "dtype": { - "Plain": "float64" + "ExactAggregate": [ + "Rate", + "Rate" + ] }, - "name": "value", + "name": "state", "nullable": false, "table": null }, @@ -18985,44 +8024,37 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "kind": "rate" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 } } }, - "guarantee": null, - "id": 3, - "output_schema": { + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "float64" + }, + "name": "value", + "nullable": false, + "table": null + }, { "dtype": { "Plain": "utf8" @@ -19033,55 +8065,45 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "utf8" }, - "name": "state", + "name": "$promql_series_identity", "nullable": false, "table": null } ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "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 - ] - } + "time_index": 0, + "unique_keys": [] }, - "result_kind": "state" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 4, - "output_schema": { + "operator": { + "NonASAP": { + "Aggregate": { + "child": 3, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -19108,16 +8130,63 @@ ] ] }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 5, - "output_schema": { + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -19156,64 +8225,24 @@ "time_index": 0, "unique_keys": [] }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "timing": null + }, + { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 6, - "output_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -19252,36 +8281,37 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "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": 7, - "output_schema": { + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -19323,34 +8353,19 @@ "time_index": 0, "unique_keys": [] }, - "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" - }, - "result_kind": "state" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 8, - "output_schema": { + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 7 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -19389,28 +8404,55 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "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": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } } } }, - "guarantee": null, - "id": 9, - "output_schema": { + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -19450,52 +8492,24 @@ ] ] }, - "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } + "timing": null + }, + { + "guarantee": null, + "operator": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "summary_input": 9 } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } }, - "result_kind": "state" - }, - { - "coverage": null, - "guarantee": null, - "id": 10, - "output_schema": { + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -19522,15 +8536,7 @@ ] ] }, - "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 - } - } - }, - "result_kind": "instant_vector" + "timing": null } ], "roots": [ @@ -19542,16 +8548,67 @@ } ] }, - "id": "L18", - "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap (Sum acc)" + "id": "L12", + "label": "Q1 exact (Rate acc) · Q2 CountSketch+heap (Sum acc)" }, { "dag": { - "edges": [ + "nodes": [ { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -19590,13 +8647,24 @@ "time_index": 0, "unique_keys": [] }, - "producer": 0, - "role": "Input" + "timing": null }, { - "consumer": 2, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -19635,13 +8703,30 @@ "time_index": 0, "unique_keys": [] }, - "producer": 1, - "role": "Input" + "timing": null }, { - "consumer": 3, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -19654,12 +8739,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -19683,31 +8765,43 @@ "time_index": 0, "unique_keys": [] }, - "producer": 2, - "role": "Input" + "timing": null }, { - "consumer": 4, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" + "guarantee": null, + "operator": { + "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 + ] + } + } + } + }, + "result_kind": "state", + "schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -19718,23 +8812,36 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, - "unique_keys": [] + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] }, - "producer": 3, - "role": "Input" + "timing": null }, { - "consumer": 5, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -19747,12 +8854,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "sum", "nullable": false, "table": null } @@ -19764,13 +8868,63 @@ ] ] }, - "producer": 4, - "role": "Input" + "timing": null }, { - "consumer": 7, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -19809,13 +8963,24 @@ "time_index": 0, "unique_keys": [] }, - "producer": 6, - "role": "Input" + "timing": null }, { - "consumer": 8, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -19854,13 +9019,31 @@ "time_index": 0, "unique_keys": [] }, - "producer": 7, - "role": "Input" + "timing": null }, { - "consumer": 9, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 6, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -19899,34 +9082,41 @@ "time_index": 0, "unique_keys": [] }, - "producer": 8, - "role": "Input" - } - ], - "nodes": [ + "timing": null + }, { - "coverage": null, "guarantee": null, - "id": 0, - "output_schema": { + "operator": { + "NonASAP": { + "Aggregate": { + "child": 7, + "filters": [], + "having": null, + "measures": [ + { + "accuracy": { + "EpsilonDelta": { + "delta": 0.001, + "epsilon": 0.01 + } + }, + "k": 10, + "kind": "top_k" + } + ], + "output_names": [], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -19939,72 +9129,91 @@ "dtype": { "Plain": "utf8" }, - "name": "$promql_series_identity", + "name": "topk_10", "nullable": false, "table": null } ], - "time_index": 0, - "unique_keys": [] + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "timing": null + } + ], + "roots": [ + { + "Operator": 4 + }, + { + "Operator": 8 + } + ] + }, + "id": "L13", + "label": "Q1 exact (Sum acc) · Q2 exact" + }, + { + "dag": { + "nodes": [ + { + "guarantee": null, + "operator": { + "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 1, - "output_schema": { + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -20043,36 +9252,24 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } } } }, - "guarantee": null, - "id": 2, - "output_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -20085,12 +9282,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -20114,34 +9308,30 @@ "time_index": 0, "unique_keys": [] }, - "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" - }, - "result_kind": "state" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 3, - "output_schema": { + "operator": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -20180,28 +9370,41 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "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": { + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -20231,38 +9434,19 @@ ] ] }, - "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 - ] - } - }, - "result_kind": "state" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 5, - "output_schema": { + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -20289,16 +9473,63 @@ ] ] }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 6, - "output_schema": { + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -20337,64 +9568,24 @@ "time_index": 0, "unique_keys": [] }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "timing": null + }, + { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 7, - "output_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -20433,24 +9624,91 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "timing": null + }, + { + "guarantee": null, + "operator": { + "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" + } } }, - "result_kind": "range_vector" + "result_kind": "state", + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 8, - "output_schema": { + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 7 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -20489,31 +9747,39 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 9, - "output_schema": { + "operator": { + "NonASAP": { + "Aggregate": { + "child": 8, + "filters": [], + "having": null, + "measures": [ + { + "accuracy": { + "EpsilonDelta": { + "delta": 0.001, + "epsilon": 0.01 + } + }, + "k": 10, + "kind": "top_k" + } + ], + "output_names": [], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -20540,54 +9806,79 @@ ] ] }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "accuracy": { - "EpsilonDelta": { - "delta": 0.001, - "epsilon": 0.01 - } - }, - "k": 10, - "kind": "top_k" - } - ], - "output_names": [], - "reduction": { - "Reduce": [ - 2 - ] - } - } - }, - "result_kind": "instant_vector" + "timing": null } ], "roots": [ { - "Operator": 5 + "Operator": 4 }, { "Operator": 9 } ] }, - "id": "L19", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact" + "id": "L14", + "label": "Q1 exact (Sum acc) · Q2 exact (Sum acc)" }, { "dag": { - "edges": [ + "nodes": [ { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -20626,13 +9917,24 @@ "time_index": 0, "unique_keys": [] }, - "producer": 0, - "role": "Input" + "timing": null }, { - "consumer": 2, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -20671,13 +9973,30 @@ "time_index": 0, "unique_keys": [] }, - "producer": 1, - "role": "Input" + "timing": null }, { - "consumer": 3, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -20690,12 +10009,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -20719,31 +10035,43 @@ "time_index": 0, "unique_keys": [] }, - "producer": 2, - "role": "Input" + "timing": null }, { - "consumer": 4, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" + "guarantee": null, + "operator": { + "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 + ] + } + } + } + }, + "result_kind": "state", + "schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -20754,23 +10082,36 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, - "unique_keys": [] + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] }, - "producer": 3, - "role": "Input" + "timing": null }, { - "consumer": 5, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -20783,12 +10124,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "sum", "nullable": false, "table": null } @@ -20800,13 +10138,63 @@ ] ] }, - "producer": 4, - "role": "Input" + "timing": null }, { - "consumer": 7, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -20845,13 +10233,24 @@ "time_index": 0, "unique_keys": [] }, - "producer": 6, - "role": "Input" + "timing": null }, { - "consumer": 8, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -20890,13 +10289,31 @@ "time_index": 0, "unique_keys": [] }, - "producer": 7, - "role": "Input" + "timing": null }, { - "consumer": 9, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 6, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -20909,12 +10326,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -20938,31 +10352,57 @@ "time_index": 0, "unique_keys": [] }, - "producer": 8, - "role": "Input" + "timing": null }, { - "consumer": 10, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" + "guarantee": null, + "operator": { + "ASAP": { + "SummaryAgg": { + "child": 7, + "family": { + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "filter": null, + "grouping": "PerSubpopulationInstance", + "input": { + "item": { + "Column": { + "Named": "$promql_series_identity" + } + }, + "weight": { + "Column": "SampleValue" + }, + "weight_domain": { + "kind": "unknown_or_signed" + } }, - "name": "value", - "nullable": false, - "table": null - }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "state", + "schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -20973,44 +10413,53 @@ }, { "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, - "unique_keys": [] + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] }, - "producer": 9, - "role": "Input" - } - ], - "nodes": [ + "timing": null + }, { - "coverage": null, "guarantee": null, - "id": 0, - "output_schema": { + "operator": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 8 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -21023,72 +10472,91 @@ "dtype": { "Plain": "utf8" }, - "name": "$promql_series_identity", + "name": "topk", "nullable": false, "table": null } ], - "time_index": 0, - "unique_keys": [] + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "timing": null + } + ], + "roots": [ + { + "Operator": 4 + }, + { + "Operator": 9 + } + ] + }, + "id": "L15", + "label": "Q1 exact (Sum acc) · Q2 CMS+heap" + }, + { + "dag": { + "nodes": [ + { + "guarantee": null, + "operator": { + "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 1, - "output_schema": { + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -21127,36 +10595,24 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } } } }, - "guarantee": null, - "id": 2, - "output_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -21169,12 +10625,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -21198,34 +10651,30 @@ "time_index": 0, "unique_keys": [] }, - "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" - }, - "result_kind": "state" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 3, - "output_schema": { + "operator": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -21264,28 +10713,41 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "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": { + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -21315,38 +10777,19 @@ ] ] }, - "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 - ] - } - }, - "result_kind": "state" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 5, - "output_schema": { + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -21373,16 +10816,63 @@ ] ] }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 6, - "output_schema": { + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -21421,64 +10911,24 @@ "time_index": 0, "unique_keys": [] }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "timing": null + }, + { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 7, - "output_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -21517,36 +10967,37 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "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": { + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -21588,34 +11039,19 @@ "time_index": 0, "unique_keys": [] }, - "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" - }, - "result_kind": "state" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 9, - "output_schema": { + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 7 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -21654,16 +11090,55 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 10, - "output_schema": { + "operator": { + "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": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -21676,9 +11151,22 @@ }, { "dtype": { - "Plain": "utf8" + "Sketch": [ + { + "algorithm": "CmsWithHeap", + "category": "TopK", + "params": { + "CmsWithHeap": { + "depth": 7, + "heap_size": 100, + "width": 272 + } + } + }, + "PerSubpopulationInstance" + ] }, - "name": "topk_10", + "name": "state", "nullable": false, "table": null } @@ -21690,54 +11178,123 @@ ] ] }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "accuracy": { - "EpsilonDelta": { - "delta": 0.001, - "epsilon": 0.01 - } - }, - "k": 10, - "kind": "top_k" - } - ], - "output_names": [], - "reduction": { - "Reduce": [ - 2 - ] + "timing": null + }, + { + "guarantee": null, + "operator": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 9 } } }, - "result_kind": "instant_vector" + "result_kind": "instant_vector", + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "timing": null } ], "roots": [ { - "Operator": 5 + "Operator": 4 }, { "Operator": 10 } ] }, - "id": "L20", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact (Sum acc)" + "id": "L16", + "label": "Q1 exact (Sum acc) · Q2 CMS+heap (Sum acc)" }, { "dag": { - "edges": [ + "nodes": [ { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -21776,13 +11333,24 @@ "time_index": 0, "unique_keys": [] }, - "producer": 0, - "role": "Input" + "timing": null }, { - "consumer": 2, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -21821,13 +11389,30 @@ "time_index": 0, "unique_keys": [] }, - "producer": 1, - "role": "Input" + "timing": null }, { - "consumer": 3, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -21840,12 +11425,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -21869,31 +11451,43 @@ "time_index": 0, "unique_keys": [] }, - "producer": 2, - "role": "Input" + "timing": null }, { - "consumer": 4, - "grouping": "NotApplicable", - "intermediate_schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" + "guarantee": null, + "operator": { + "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 + ] + } + } + } + }, + "result_kind": "state", + "schema": { + "closed": true, + "fields": [ { "dtype": { "Plain": "utf8" @@ -21904,23 +11498,36 @@ }, { "dtype": { - "Plain": "utf8" + "ExactAggregate": [ + "Sum", + "Sum" + ] }, - "name": "$promql_series_identity", + "name": "state", "nullable": false, "table": null } ], - "time_index": 0, - "unique_keys": [] + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] }, - "producer": 3, - "role": "Input" + "timing": null }, { - "consumer": 5, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -21933,12 +11540,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "sum", "nullable": false, "table": null } @@ -21950,13 +11554,63 @@ ] ] }, - "producer": 4, - "role": "Input" + "timing": null }, { - "consumer": 7, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -21995,13 +11649,24 @@ "time_index": 0, "unique_keys": [] }, - "producer": 6, - "role": "Input" + "timing": null }, { - "consumer": 8, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -22040,13 +11705,31 @@ "time_index": 0, "unique_keys": [] }, - "producer": 7, - "role": "Input" + "timing": null }, { - "consumer": 9, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 6, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -22085,13 +11768,55 @@ "time_index": 0, "unique_keys": [] }, - "producer": 8, - "role": "Input" + "timing": null }, { - "consumer": 10, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -22106,13 +11831,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CmsWithHeap", + "algorithm": "CountSketchWithHeap", "category": "TopK", "params": { - "CmsWithHeap": { - "depth": 7, + "CountSketchWithHeap": { + "depth": 125, "heap_size": 100, - "width": 272 + "width": 30000 } } }, @@ -22131,34 +11856,26 @@ ] ] }, - "producer": 9, - "role": "Input" - } - ], - "nodes": [ + "timing": null + }, { - "coverage": null, "guarantee": null, - "id": 0, - "output_schema": { + "operator": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 8 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -22171,72 +11888,91 @@ "dtype": { "Plain": "utf8" }, - "name": "$promql_series_identity", + "name": "topk", "nullable": false, "table": null } ], - "time_index": 0, - "unique_keys": [] + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" + "timing": null + } + ], + "roots": [ + { + "Operator": 4 + }, + { + "Operator": 9 + } + ] + }, + "id": "L17", + "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap" + }, + { + "dag": { + "nodes": [ + { + "guarantee": null, + "operator": { + "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 1, - "output_schema": { + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -22275,36 +12011,24 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } } } }, - "guarantee": null, - "id": 2, - "output_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -22317,12 +12041,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Rate", - "Rate" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -22346,34 +12067,30 @@ "time_index": 0, "unique_keys": [] }, - "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" - }, - "result_kind": "state" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 3, - "output_schema": { + "operator": { + "NonASAP": { + "Aggregate": { + "child": 1, + "filters": [], + "having": null, + "measures": [ + { + "kind": "rate" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -22412,28 +12129,41 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "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": { + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -22463,38 +12193,19 @@ ] ] }, - "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 - ] - } - }, - "result_kind": "state" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 5, - "output_schema": { + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -22521,16 +12232,63 @@ ] ] }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 6, - "output_schema": { + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -22569,64 +12327,24 @@ "time_index": 0, "unique_keys": [] }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "timing": null + }, + { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 7, - "output_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -22665,24 +12383,91 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "timing": null + }, + { + "guarantee": null, + "operator": { + "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" + } } }, - "result_kind": "range_vector" + "result_kind": "state", + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 8, - "output_schema": { + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 7 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -22721,43 +12506,55 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "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": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } } } }, - "guarantee": null, - "id": 9, - "output_schema": { + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -22772,13 +12569,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CmsWithHeap", + "algorithm": "CountSketchWithHeap", "category": "TopK", "params": { - "CmsWithHeap": { - "depth": 7, + "CountSketchWithHeap": { + "depth": 125, "heap_size": 100, - "width": 272 + "width": 30000 } } }, @@ -22797,52 +12594,24 @@ ] ] }, - "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } + "timing": null + }, + { + "guarantee": null, + "operator": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "summary_input": 9 } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } }, - "result_kind": "state" - }, - { - "coverage": null, - "guarantee": null, - "id": 10, - "output_schema": { + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -22869,36 +12638,79 @@ ] ] }, - "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 - } - } - }, - "result_kind": "instant_vector" + "timing": null } ], "roots": [ { - "Operator": 5 + "Operator": 4 }, { "Operator": 10 } ] }, - "id": "L21", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap" + "id": "L18", + "label": "Q1 exact (Sum acc) · Q2 CountSketch+heap (Sum acc)" }, { "dag": { - "edges": [ + "nodes": [ { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -22937,13 +12749,24 @@ "time_index": 0, "unique_keys": [] }, - "producer": 0, - "role": "Input" + "timing": null }, { - "consumer": 2, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -22982,13 +12805,37 @@ "time_index": 0, "unique_keys": [] }, - "producer": 1, - "role": "Input" + "timing": null }, { - "consumer": 3, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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" + } + } + }, + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -23030,13 +12877,19 @@ "time_index": 0, "unique_keys": [] }, - "producer": 2, - "role": "Input" + "timing": null }, { - "consumer": 4, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -23075,13 +12928,41 @@ "time_index": 0, "unique_keys": [] }, - "producer": 3, - "role": "Input" + "timing": null }, { - "consumer": 5, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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 + ] + } + } + } + }, + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -23111,31 +12992,21 @@ ] ] }, - "producer": 4, - "role": "Input" + "timing": null }, { - "consumer": 7, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -23146,23 +13017,77 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, - "unique_keys": [] + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] }, - "producer": 6, - "role": "Input" + "timing": null }, { - "consumer": 8, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -23201,13 +13126,24 @@ "time_index": 0, "unique_keys": [] }, - "producer": 7, - "role": "Input" + "timing": null }, { - "consumer": 9, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -23220,12 +13156,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -23249,13 +13182,31 @@ "time_index": 0, "unique_keys": [] }, - "producer": 8, - "role": "Input" + "timing": null }, { - "consumer": 10, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 7, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -23294,13 +13245,39 @@ "time_index": 0, "unique_keys": [] }, - "producer": 9, - "role": "Input" + "timing": null }, { - "consumer": 11, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 8, + "filters": [], + "having": null, + "measures": [ + { + "accuracy": { + "EpsilonDelta": { + "delta": 0.001, + "epsilon": 0.01 + } + }, + "k": 10, + "kind": "top_k" + } + ], + "output_names": [], + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -23313,22 +13290,9 @@ }, { "dtype": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } - } - }, - "PerSubpopulationInstance" - ] + "Plain": "utf8" }, - "name": "state", + "name": "topk_10", "nullable": false, "table": null } @@ -23340,16 +13304,79 @@ ] ] }, - "producer": 10, - "role": "Input" + "timing": null } ], + "roots": [ + { + "Operator": 5 + }, + { + "Operator": 9 + } + ] + }, + "id": "L19", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact" + }, + { + "dag": { "nodes": [ { - "coverage": null, "guarantee": null, - "id": 0, - "output_schema": { + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -23388,64 +13415,24 @@ "time_index": 0, "unique_keys": [] }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "timing": null + }, + { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 1, - "output_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -23484,36 +13471,37 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "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, - "output_schema": { + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -23555,34 +13543,19 @@ "time_index": 0, "unique_keys": [] }, - "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" - }, - "result_kind": "state" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 3, - "output_schema": { + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -23621,28 +13594,41 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "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": 4, - "output_schema": { + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -23670,40 +13656,21 @@ [ 0 ] - ] - }, - "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 - ] - } + ] }, - "result_kind": "state" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 5, - "output_schema": { + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -23730,16 +13697,63 @@ ] ] }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 6, - "output_schema": { + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -23778,64 +13792,24 @@ "time_index": 0, "unique_keys": [] }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "timing": null + }, + { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 7, - "output_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -23874,36 +13848,37 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "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": 8, - "output_schema": { + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -23945,34 +13920,19 @@ "time_index": 0, "unique_keys": [] }, - "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" - }, - "result_kind": "state" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 9, - "output_schema": { + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 8 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -24011,113 +13971,39 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "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 - } + "operator": { + "NonASAP": { + "Aggregate": { + "child": 9, + "filters": [], + "having": null, + "measures": [ + { + "accuracy": { + "EpsilonDelta": { + "delta": 0.001, + "epsilon": 0.01 } }, - "PerSubpopulationInstance" - ] - }, - "name": "state", - "nullable": false, - "table": null - } - ], - "time_index": null, - "unique_keys": [ - [ - 0 - ] - ] - }, - "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 - } + "k": 10, + "kind": "top_k" } - }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + ], + "output_names": [], + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } }, - "result_kind": "state" - }, - { - "coverage": null, - "guarantee": null, - "id": 11, - "output_schema": { + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -24132,7 +14018,7 @@ "dtype": { "Plain": "utf8" }, - "name": "topk", + "name": "topk_10", "nullable": false, "table": null } @@ -24144,15 +14030,7 @@ ] ] }, - "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 - } - } - }, - "result_kind": "instant_vector" + "timing": null } ], "roots": [ @@ -24160,20 +14038,71 @@ "Operator": 5 }, { - "Operator": 11 + "Operator": 10 } ] }, - "id": "L22", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap (Sum acc)" + "id": "L20", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 exact (Sum acc)" }, { "dag": { - "edges": [ + "nodes": [ { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -24212,13 +14141,24 @@ "time_index": 0, "unique_keys": [] }, - "producer": 0, - "role": "Input" + "timing": null }, { - "consumer": 2, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -24257,13 +14197,37 @@ "time_index": 0, "unique_keys": [] }, - "producer": 1, - "role": "Input" + "timing": null }, { - "consumer": 3, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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" + } + } + }, + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -24305,13 +14269,19 @@ "time_index": 0, "unique_keys": [] }, - "producer": 2, - "role": "Input" + "timing": null }, { - "consumer": 4, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -24350,13 +14320,41 @@ "time_index": 0, "unique_keys": [] }, - "producer": 3, - "role": "Input" + "timing": null }, { - "consumer": 5, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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 + ] + } + } + } + }, + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -24386,13 +14384,102 @@ ] ] }, - "producer": 4, - "role": "Input" + "timing": null }, { - "consumer": 7, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } + }, + "result_kind": "instant_vector", + "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 + ] + ] + }, + "timing": null + }, + { + "guarantee": null, + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -24431,13 +14518,24 @@ "time_index": 0, "unique_keys": [] }, - "producer": 6, - "role": "Input" + "timing": null }, { - "consumer": 8, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -24476,13 +14574,31 @@ "time_index": 0, "unique_keys": [] }, - "producer": 7, - "role": "Input" + "timing": null }, { - "consumer": 9, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 7, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -24521,13 +14637,55 @@ "time_index": 0, "unique_keys": [] }, - "producer": 8, - "role": "Input" + "timing": null }, { - "consumer": 10, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -24542,13 +14700,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CountSketchWithHeap", + "algorithm": "CmsWithHeap", "category": "TopK", "params": { - "CountSketchWithHeap": { - "depth": 125, + "CmsWithHeap": { + "depth": 7, "heap_size": 100, - "width": 30000 + "width": 272 } } }, @@ -24567,16 +14725,123 @@ ] ] }, - "producer": 9, - "role": "Input" + "timing": null + }, + { + "guarantee": null, + "operator": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 9 + } + } + }, + "result_kind": "instant_vector", + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "timing": null } ], + "roots": [ + { + "Operator": 5 + }, + { + "Operator": 10 + } + ] + }, + "id": "L21", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap" + }, + { + "dag": { "nodes": [ { - "coverage": null, "guarantee": null, - "id": 0, - "output_schema": { + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -24615,64 +14880,24 @@ "time_index": 0, "unique_keys": [] }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "timing": null + }, + { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 1, - "output_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -24711,36 +14936,37 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "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, - "output_schema": { + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -24782,34 +15008,19 @@ "time_index": 0, "unique_keys": [] }, - "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" - }, - "result_kind": "state" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 3, - "output_schema": { + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -24848,28 +15059,41 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "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": 4, - "output_schema": { + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -24899,38 +15123,19 @@ ] ] }, - "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 - ] - } - }, - "result_kind": "state" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 5, - "output_schema": { + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -24957,16 +15162,63 @@ ] ] }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 6, - "output_schema": { + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -25005,64 +15257,24 @@ "time_index": 0, "unique_keys": [] }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "timing": null + }, + { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 7, - "output_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -25101,24 +15313,91 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "timing": null + }, + { + "guarantee": null, + "operator": { + "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" + } } }, - "result_kind": "range_vector" + "result_kind": "state", + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, + { + "dtype": { + "ExactAggregate": [ + "Sum", + "Sum" + ] + }, + "name": "state", + "nullable": false, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 8, - "output_schema": { + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 8 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -25157,43 +15436,55 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" - } - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "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": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } } } }, - "guarantee": null, - "id": 9, - "output_schema": { + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -25208,13 +15499,13 @@ "dtype": { "Sketch": [ { - "algorithm": "CountSketchWithHeap", + "algorithm": "CmsWithHeap", "category": "TopK", "params": { - "CountSketchWithHeap": { - "depth": 125, + "CmsWithHeap": { + "depth": 7, "heap_size": 100, - "width": 30000 + "width": 272 } } }, @@ -25233,52 +15524,24 @@ ] ] }, - "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } + "timing": null + }, + { + "guarantee": null, + "operator": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "summary_input": 10 } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } }, - "result_kind": "state" - }, - { - "coverage": null, - "guarantee": null, - "id": 10, - "output_schema": { + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -25305,15 +15568,7 @@ ] ] }, - "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 - } - } - }, - "result_kind": "instant_vector" + "timing": null } ], "roots": [ @@ -25321,20 +15576,71 @@ "Operator": 5 }, { - "Operator": 10 + "Operator": 11 } ] }, - "id": "L23", - "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap" + "id": "L22", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CMS+heap (Sum acc)" }, { "dag": { - "edges": [ + "nodes": [ { - "consumer": 1, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -25373,13 +15679,24 @@ "time_index": 0, "unique_keys": [] }, - "producer": 0, - "role": "Input" + "timing": null }, { - "consumer": 2, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -25418,13 +15735,37 @@ "time_index": 0, "unique_keys": [] }, - "producer": 1, - "role": "Input" + "timing": null }, { - "consumer": 3, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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" + } + } + }, + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -25466,13 +15807,19 @@ "time_index": 0, "unique_keys": [] }, - "producer": 2, - "role": "Input" + "timing": null }, { - "consumer": 4, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -25511,13 +15858,41 @@ "time_index": 0, "unique_keys": [] }, - "producer": 3, - "role": "Input" + "timing": null }, { - "consumer": 5, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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 + ] + } + } + } + }, + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -25547,31 +15922,21 @@ ] ] }, - "producer": 4, - "role": "Input" + "timing": null }, { - "consumer": 7, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ - { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, { "dtype": { "Plain": "utf8" @@ -25582,23 +15947,77 @@ }, { "dtype": { - "Plain": "utf8" + "Plain": "float64" }, - "name": "$promql_series_identity", + "name": "sum", "nullable": false, "table": null } ], - "time_index": 0, - "unique_keys": [] + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] }, - "producer": 6, - "role": "Input" + "timing": null }, { - "consumer": 8, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -25637,13 +16056,24 @@ "time_index": 0, "unique_keys": [] }, - "producer": 7, - "role": "Input" + "timing": null }, { - "consumer": 9, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } + } + }, + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -25656,12 +16086,9 @@ }, { "dtype": { - "ExactAggregate": [ - "Sum", - "Sum" - ] + "Plain": "float64" }, - "name": "state", + "name": "value", "nullable": false, "table": null }, @@ -25685,13 +16112,31 @@ "time_index": 0, "unique_keys": [] }, - "producer": 8, - "role": "Input" + "timing": null }, { - "consumer": 10, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "NonASAP": { + "Aggregate": { + "child": 7, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -25730,13 +16175,55 @@ "time_index": 0, "unique_keys": [] }, - "producer": 9, - "role": "Input" + "timing": null }, { - "consumer": 11, - "grouping": "NotApplicable", - "intermediate_schema": { + "guarantee": null, + "operator": { + "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": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } + } + } + }, + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -25776,16 +16263,123 @@ ] ] }, - "producer": 10, - "role": "Input" + "timing": null + }, + { + "guarantee": null, + "operator": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 9 + } + } + }, + "result_kind": "instant_vector", + "schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "utf8" + }, + "name": "job", + "nullable": true, + "table": null + }, + { + "dtype": { + "Plain": "utf8" + }, + "name": "topk", + "nullable": false, + "table": null + } + ], + "time_index": null, + "unique_keys": [ + [ + 0 + ] + ] + }, + "timing": null } ], + "roots": [ + { + "Operator": 5 + }, + { + "Operator": 10 + } + ] + }, + "id": "L23", + "label": "Q1 exact (Sum acc, Rate acc) · Q2 CountSketch+heap" + }, + { + "dag": { "nodes": [ { - "coverage": null, "guarantee": null, - "id": 0, - "output_schema": { + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -25824,64 +16418,24 @@ "time_index": 0, "unique_keys": [] }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "timing": null + }, + { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 0, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 1, - "output_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -25920,36 +16474,37 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "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, - "output_schema": { + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -25991,34 +16546,19 @@ "time_index": 0, "unique_keys": [] }, - "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" - }, - "result_kind": "state" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 3, - "output_schema": { + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -26057,28 +16597,41 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "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": 4, - "output_schema": { + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -26108,38 +16661,19 @@ ] ] }, - "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 - ] - } - }, - "result_kind": "state" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 5, - "output_schema": { + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -26166,16 +16700,63 @@ ] ] }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 6, - "output_schema": { + "operator": { + "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -26214,64 +16795,24 @@ "time_index": 0, "unique_keys": [] }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "timing": null + }, + { + "guarantee": null, + "operator": { + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } } } }, - "result_kind": "instant_vector" - }, - { - "coverage": null, - "guarantee": null, - "id": 7, - "output_schema": { + "result_kind": "range_vector", + "schema": { "closed": true, "fields": [ { @@ -26310,36 +16851,37 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" - } - }, - "result_kind": "range_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "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": 8, - "output_schema": { + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -26381,34 +16923,19 @@ "time_index": 0, "unique_keys": [] }, - "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" - }, - "result_kind": "state" + "timing": null }, { - "coverage": null, "guarantee": null, - "id": 9, - "output_schema": { + "operator": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 8 + } + } + }, + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -26447,28 +16974,55 @@ "time_index": 0, "unique_keys": [] }, - "payload": { - "kind": "finalize_exact_accumulator" - }, - "result_kind": "instant_vector" + "timing": null }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" + "guarantee": null, + "operator": { + "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": "unknown_or_signed" + } + }, + "reduction": { + "Reduce": [ + 2 + ] + } } } }, - "guarantee": null, - "id": 10, - "output_schema": { + "result_kind": "state", + "schema": { "closed": true, "fields": [ { @@ -26508,52 +17062,24 @@ ] ] }, - "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 - } + "timing": null + }, + { + "guarantee": null, + "operator": { + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" - } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" + "summary_input": 10 } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } }, - "result_kind": "state" - }, - { - "coverage": null, - "guarantee": null, - "id": 11, - "output_schema": { + "result_kind": "instant_vector", + "schema": { "closed": true, "fields": [ { @@ -26580,15 +17106,7 @@ ] ] }, - "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 - } - } - }, - "result_kind": "instant_vector" + "timing": null } ], "roots": [ @@ -26965,7 +17483,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -27012,59 +17529,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -27111,19 +17627,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": { @@ -27170,25 +17686,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": { @@ -27223,30 +17739,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": { @@ -27293,59 +17809,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -27392,19 +17907,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 4, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -27451,26 +17966,26 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "NonASAP": { + "Aggregate": { + "child": 5, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } } } }, { - "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -27517,26 +18032,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": 6, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } } } }, { - "coverage": null, "guarantee": null, "id": 8, "output_schema": { @@ -27583,14 +18098,15 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "limit", - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "NonASAP": { + "Limit": { + "child": 7, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } } } } @@ -28013,7 +18529,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -28060,59 +18575,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -28159,19 +18673,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": { @@ -28218,25 +18732,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": { @@ -28271,30 +18785,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": { @@ -28341,59 +18855,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -28440,31 +18953,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 4, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 6, "output_schema": { @@ -28514,29 +19015,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": { @@ -28583,11 +19087,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 6 + } + } } }, { - "coverage": null, "guarantee": null, "id": 8, "output_schema": { @@ -28634,26 +19141,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": 7, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -28700,14 +19207,15 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "limit", - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "NonASAP": { + "Limit": { + "child": 8, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } } } } @@ -29078,7 +19586,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -29125,59 +19632,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -29224,19 +19730,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": { @@ -29283,25 +19789,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": { @@ -29336,30 +19842,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": { @@ -29406,59 +19912,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -29505,19 +20010,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 4, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -29564,38 +20069,26 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "NonASAP": { + "Aggregate": { + "child": 5, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 7, "output_schema": { @@ -29643,47 +20136,50 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 + "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": "unknown_or_signed" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 8, "output_schema": { @@ -29718,10 +20214,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 7 } } } @@ -30146,7 +20646,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -30193,59 +20692,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -30292,19 +20790,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": { @@ -30351,25 +20849,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": { @@ -30404,30 +20902,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": { @@ -30474,59 +20972,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -30573,31 +21070,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 4, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 6, "output_schema": { @@ -30647,29 +21132,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": { @@ -30716,23 +21204,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 6 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 8, "output_schema": { @@ -30780,47 +21259,50 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 + "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": "unknown_or_signed" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -30855,10 +21337,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 8 } } } @@ -31230,7 +21716,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -31277,59 +21762,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -31376,19 +21860,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": { @@ -31435,25 +21919,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": { @@ -31488,30 +21972,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": { @@ -31558,59 +22042,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -31657,19 +22140,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 4, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -31716,38 +22199,26 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "NonASAP": { + "Aggregate": { + "child": 5, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 7, "output_schema": { @@ -31795,47 +22266,50 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 + "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": "unknown_or_signed" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 8, "output_schema": { @@ -31870,10 +22344,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 7 } } } @@ -32298,7 +22776,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -32345,59 +22822,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -32444,19 +22920,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": { @@ -32503,25 +22979,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": { @@ -32556,30 +23032,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": { @@ -32626,59 +23102,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -32725,31 +23200,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 4, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 6, "output_schema": { @@ -32799,29 +23262,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": { @@ -32868,23 +23334,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 6 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 8, "output_schema": { @@ -32932,47 +23389,50 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 + "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": "unknown_or_signed" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -33007,10 +23467,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 8 } } } @@ -33434,7 +23898,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -33481,59 +23944,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -33580,31 +24042,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": { @@ -33654,29 +24104,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": { @@ -33723,11 +24176,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } } }, { - "coverage": null, "guarantee": null, "id": 4, "output_schema": { @@ -33762,30 +24218,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": { @@ -33832,59 +24288,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -33931,19 +24386,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -33990,26 +24445,26 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "NonASAP": { + "Aggregate": { + "child": 6, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } } } }, { - "coverage": null, "guarantee": null, "id": 8, "output_schema": { @@ -34056,26 +24511,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": 7, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -34122,14 +24577,15 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "limit", - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "NonASAP": { + "Limit": { + "child": 8, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } } } } @@ -34605,7 +25061,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -34652,59 +25107,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -34751,31 +25205,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": { @@ -34825,29 +25267,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": { @@ -34894,11 +25339,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } } }, { - "coverage": null, "guarantee": null, "id": 4, "output_schema": { @@ -34933,30 +25381,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": { @@ -35003,59 +25451,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -35102,31 +25549,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 7, "output_schema": { @@ -35176,29 +25611,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": { @@ -35245,11 +25683,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 7 + } + } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -35296,26 +25737,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": 8, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } } } }, { - "coverage": null, "guarantee": null, "id": 10, "output_schema": { @@ -35362,14 +25803,15 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "limit", - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "NonASAP": { + "Limit": { + "child": 9, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } } } } @@ -35793,7 +26235,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -35840,59 +26281,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -35939,31 +26379,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": { @@ -36013,29 +26441,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": { @@ -36082,11 +26513,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } } }, { - "coverage": null, "guarantee": null, "id": 4, "output_schema": { @@ -36121,30 +26555,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": { @@ -36191,59 +26625,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -36290,19 +26723,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -36349,38 +26782,26 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "NonASAP": { + "Aggregate": { + "child": 6, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 8, "output_schema": { @@ -36428,47 +26849,50 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 + "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": "unknown_or_signed" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -36503,10 +26927,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 8 } } } @@ -36984,7 +27412,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -37031,59 +27458,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -37130,31 +27556,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": { @@ -37204,29 +27618,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": { @@ -37273,11 +27690,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } } }, { - "coverage": null, "guarantee": null, "id": 4, "output_schema": { @@ -37312,30 +27732,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": { @@ -37382,59 +27802,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -37481,31 +27900,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 7, "output_schema": { @@ -37555,29 +27962,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": { @@ -37624,23 +28034,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 7 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 9, "output_schema": { @@ -37688,47 +28089,50 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 + "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": "unknown_or_signed" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 10, "output_schema": { @@ -37763,10 +28167,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 9 } } } @@ -38191,7 +28599,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -38238,59 +28645,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -38337,31 +28743,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": { @@ -38411,29 +28805,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": { @@ -38480,11 +28877,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } } }, { - "coverage": null, "guarantee": null, "id": 4, "output_schema": { @@ -38519,30 +28919,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": { @@ -38589,59 +28989,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -38688,19 +29087,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -38747,38 +29146,26 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "NonASAP": { + "Aggregate": { + "child": 6, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 8, "output_schema": { @@ -38826,47 +29213,50 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 + "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": "unknown_or_signed" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -38901,10 +29291,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 8 } } } @@ -39382,7 +29776,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -39429,59 +29822,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -39528,31 +29920,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": { @@ -39602,29 +29982,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": { @@ -39671,11 +30054,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 2 + } + } } }, { - "coverage": null, "guarantee": null, "id": 4, "output_schema": { @@ -39710,30 +30096,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": { @@ -39780,59 +30166,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -39879,31 +30264,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 7, "output_schema": { @@ -39949,96 +30322,90 @@ "unique_keys": [] }, "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": [] - }, - "output_state": { - "primitive": "Raw", + "primitive": "SummaryState", "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "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": [ + "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 + }, { - "population": {}, - "time_ms": 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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "ASAP": { + "FinalizeExactAccumulator": { + "child": 7 } } - }, + } + }, + { "guarantee": null, "id": 9, "output_schema": { @@ -40086,47 +30453,50 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 + "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": "unknown_or_signed" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 10, "output_schema": { @@ -40161,10 +30531,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 9 } } } @@ -40576,7 +30950,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -40623,59 +30996,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -40722,19 +31094,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": { @@ -40781,37 +31153,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": { @@ -40849,33 +31209,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": { @@ -40910,11 +31273,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -40961,184 +31327,183 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "scan", - "predicates": [], - "schema": { - "closed": true, - "fields": [ + "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": [] + }, + "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": [] + }, + "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": [] + }, + "output_state": { + "primitive": "Raw", + "timing": "query_time" + }, + "payload": { + "NonASAP": { + "Aggregate": { + "child": 6, + "filters": [], + "having": null, + "measures": [ { - "dtype": { - "Plain": "timestamp" - }, - "name": "ts", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "float64" - }, - "name": "value", - "nullable": false, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "job", - "nullable": true, - "table": null - }, - { - "dtype": { - "Plain": "utf8" - }, - "name": "$promql_series_identity", - "nullable": false, - "table": null + "col": null, + "kind": "sum" } ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - } - } - }, - { - "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": [] - }, - "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": 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 + "output_names": [ + "" + ], + "reduction": "PerEntity" } - ], - "time_index": 0, - "unique_keys": [] - }, - "output_state": { - "primitive": "Raw", - "timing": "query_time" - }, - "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" } } }, { - "coverage": null, "guarantee": null, "id": 8, "output_schema": { @@ -41185,26 +31550,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": 7, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -41251,14 +31616,15 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "limit", - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "NonASAP": { + "Limit": { + "child": 8, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } } } } @@ -41722,7 +32088,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -41769,59 +32134,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -41868,19 +32232,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": { @@ -41927,37 +32291,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": { @@ -41995,33 +32347,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": { @@ -42056,112 +32411,16 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" - } - }, - { - "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 } } } }, { - "coverage": null, "guarantee": null, - "id": 6, + "id": 5, "output_schema": { "closed": true, "fields": [ @@ -42206,31 +32465,117 @@ "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } } } }, { - "coverage": { - "regions": [ + "guarantee": null, + "id": 6, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, { - "population": {}, - "time_ms": null + "dtype": { + "Plain": "float64" + }, + "name": "value", + "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": [] + }, + "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": { @@ -42280,29 +32625,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": { @@ -42349,11 +32697,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 7 + } + } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -42400,26 +32751,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": 8, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } } } }, { - "coverage": null, "guarantee": null, "id": 10, "output_schema": { @@ -42466,14 +32817,15 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "limit", - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "NonASAP": { + "Limit": { + "child": 9, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } } } } @@ -42885,7 +33237,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -42932,59 +33283,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -43031,19 +33381,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": { @@ -43090,37 +33440,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": { @@ -43158,33 +33496,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": { @@ -43219,11 +33560,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -43270,59 +33614,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -43369,19 +33712,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -43428,38 +33771,26 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "NonASAP": { + "Aggregate": { + "child": 6, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 8, "output_schema": { @@ -43507,47 +33838,50 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 + "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": "unknown_or_signed" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -43582,10 +33916,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 8 } } } @@ -44051,7 +34389,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -44098,59 +34435,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -44197,19 +34533,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": { @@ -44256,37 +34592,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": { @@ -44324,33 +34648,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": { @@ -44385,11 +34712,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -44436,59 +34766,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -44535,31 +34864,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 7, "output_schema": { @@ -44609,29 +34926,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": { @@ -44678,23 +34998,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 7 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 9, "output_schema": { @@ -44742,47 +35053,50 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 + "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": "unknown_or_signed" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 10, "output_schema": { @@ -44817,10 +35131,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 9 } } } @@ -45233,7 +35551,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -45280,59 +35597,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -45379,19 +35695,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": { @@ -45438,37 +35754,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": { @@ -45506,33 +35810,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": { @@ -45567,11 +35874,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -45618,59 +35928,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -45717,19 +36026,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -45776,38 +36085,26 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "NonASAP": { + "Aggregate": { + "child": 6, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 8, "output_schema": { @@ -45855,47 +36152,50 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 + "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": "unknown_or_signed" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -45930,10 +36230,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 8 } } } @@ -46399,7 +36703,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -46446,59 +36749,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -46545,19 +36847,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": { @@ -46604,37 +36906,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": { @@ -46672,33 +36962,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": { @@ -46733,11 +37026,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 3 + } + } } }, { - "coverage": null, "guarantee": null, "id": 5, "output_schema": { @@ -46784,59 +37080,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -46883,31 +37178,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 5, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 7, "output_schema": { @@ -46957,29 +37240,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": { @@ -47026,23 +37312,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 7 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 9, "output_schema": { @@ -47090,47 +37367,50 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 + "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": "unknown_or_signed" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 10, "output_schema": { @@ -47165,10 +37445,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 9 } } } @@ -47633,7 +37917,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -47680,59 +37963,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -47779,31 +38061,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": { @@ -47853,29 +38123,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": { @@ -47922,23 +38195,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": { @@ -47976,33 +38240,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": { @@ -48037,11 +38304,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -48088,59 +38358,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -48187,19 +38456,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": null, "guarantee": null, "id": 8, "output_schema": { @@ -48246,26 +38515,26 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "NonASAP": { + "Aggregate": { + "child": 7, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } } } }, { - "coverage": null, "guarantee": null, "id": 9, "output_schema": { @@ -48312,26 +38581,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": 8, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } } } }, { - "coverage": null, "guarantee": null, "id": 10, "output_schema": { @@ -48378,14 +38647,15 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "limit", - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "NonASAP": { + "Limit": { + "child": 9, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } } } } @@ -48902,7 +39172,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -48949,59 +39218,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -49048,31 +39316,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": { @@ -49122,29 +39378,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": { @@ -49191,23 +39450,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": { @@ -49245,33 +39495,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": { @@ -49306,11 +39559,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -49357,59 +39613,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -49456,31 +39711,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 8, "output_schema": { @@ -49530,29 +39773,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": { @@ -49599,11 +39845,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 8 + } + } } }, { - "coverage": null, "guarantee": null, "id": 10, "output_schema": { @@ -49650,26 +39899,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": 9, + "keys": [ + { + "ascending": false, + "expr": { + "Column": 1 + }, + "nulls_first": false + } + ], + "partition_by": [ + 2 + ] + } } } }, { - "coverage": null, "guarantee": null, "id": 11, "output_schema": { @@ -49716,14 +39965,15 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "limit", - "n": 10, - "offset": 0, - "partition_by": [ - 2 - ] + "NonASAP": { + "Limit": { + "child": 10, + "n": 10, + "offset": 0, + "partition_by": [ + 2 + ] + } } } } @@ -50188,7 +40438,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -50235,59 +40484,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -50334,31 +40582,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": { @@ -50408,29 +40644,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": { @@ -50477,23 +40716,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": { @@ -50531,33 +40761,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": { @@ -50592,11 +40825,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -50643,59 +40879,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -50742,19 +40977,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": null, "guarantee": null, "id": 8, "output_schema": { @@ -50801,38 +41036,26 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" - } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + "NonASAP": { + "Aggregate": { + "child": 7, + "filters": [], + "having": null, + "measures": [ + { + "col": null, + "kind": "sum" + } + ], + "output_names": [ + "" + ], + "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 9, "output_schema": { @@ -50880,47 +41103,50 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 + "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": "unknown_or_signed" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 10, "output_schema": { @@ -50955,10 +41181,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 9 } } } @@ -51477,7 +41707,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -51524,59 +41753,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -51623,31 +41851,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": { @@ -51697,29 +41913,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": { @@ -51766,23 +41985,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": { @@ -51820,33 +42030,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": { @@ -51881,11 +42094,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -51932,59 +42148,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -52031,31 +42246,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 8, "output_schema": { @@ -52105,29 +42308,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": { @@ -52174,23 +42380,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 8 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 10, "output_schema": { @@ -52238,47 +42435,50 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CmsWithHeap", - "category": "TopK", - "params": { - "CmsWithHeap": { - "depth": 7, - "heap_size": 100, - "width": 272 + "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": "unknown_or_signed" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 11, "output_schema": { @@ -52313,10 +42513,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 10 } } } @@ -52782,7 +42986,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -52829,59 +43032,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -52928,31 +43130,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": { @@ -53002,29 +43192,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": { @@ -53071,23 +43264,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": { @@ -53125,33 +43309,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": { @@ -53186,112 +43373,16 @@ "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": [] - }, - "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": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 } } } }, { - "coverage": null, "guarantee": null, - "id": 7, + "id": 6, "output_schema": { "closed": true, "fields": [ @@ -53336,21 +43427,60 @@ "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": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" + } + } + } } } }, { - "coverage": null, "guarantee": null, - "id": 8, + "id": 7, "output_schema": { "closed": true, "fields": [ @@ -53395,38 +43525,85 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "filters": [], - "having": null, - "kind": "aggregate", - "measures": [ - { - "col": null, - "kind": "sum" + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 } - ], - "output_names": [ - "" - ], - "reduction": "PerEntity" + } } } }, { - "coverage": { - "regions": [ + "guarantee": null, + "id": 8, + "output_schema": { + "closed": true, + "fields": [ + { + "dtype": { + "Plain": "timestamp" + }, + "name": "ts", + "nullable": false, + "table": null + }, { - "population": {}, - "time_ms": null + "dtype": { + "Plain": "float64" + }, + "name": "value", + "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": [] + }, + "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": { @@ -53474,47 +43651,50 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 + "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": "unknown_or_signed" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 10, "output_schema": { @@ -53549,10 +43729,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 9 } } } @@ -54071,7 +44255,6 @@ ], "nodes": [ { - "coverage": null, "guarantee": null, "id": 0, "output_schema": { @@ -54118,59 +44301,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 1, "output_schema": { @@ -54217,31 +44399,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": { @@ -54291,29 +44461,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": { @@ -54360,23 +44533,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": { @@ -54414,33 +44578,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": { @@ -54475,11 +44642,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 4 + } + } } }, { - "coverage": null, "guarantee": null, "id": 6, "output_schema": { @@ -54526,59 +44696,58 @@ "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 + { + "dtype": { + "Plain": "utf8" + }, + "name": "$promql_series_identity", + "nullable": false, + "table": null + } + ], + "time_index": 0, + "unique_keys": [] + }, + "source": { + "TimeSeries": { + "metric": "http_requests_total" } - ], - "time_index": 0, - "unique_keys": [] - }, - "source": { - "TimeSeries": { - "metric": "http_requests_total" } } } } }, { - "coverage": null, "guarantee": null, "id": 7, "output_schema": { @@ -54625,31 +44794,19 @@ "timing": "query_time" }, "payload": { - "kind": "relational", - "operator": { - "kind": "time_range", - "range": { - "nanos": 0, - "secs": 60 - }, - "range_kind": "range" + "NonASAP": { + "TimeRange": { + "child": 6, + "kind": "range", + "range": { + "nanos": 0, + "secs": 60 + } + } } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 8, "output_schema": { @@ -54699,29 +44856,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": { @@ -54768,23 +44928,14 @@ "timing": "query_time" }, "payload": { - "kind": "finalize_exact_accumulator" + "ASAP": { + "FinalizeExactAccumulator": { + "child": 8 + } + } } }, { - "coverage": { - "regions": [ - { - "population": {}, - "time_ms": null - } - ], - "source": { - "TimeSeries": { - "metric": "http_requests_total" - } - } - }, "guarantee": null, "id": 10, "output_schema": { @@ -54832,47 +44983,50 @@ "timing": "query_time" }, "payload": { - "family": { - "Sketch": [ - { - "algorithm": "CountSketchWithHeap", - "category": "TopK", - "params": { - "CountSketchWithHeap": { - "depth": 125, - "heap_size": 100, - "width": 30000 + "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": "unknown_or_signed" } }, - "PerSubpopulationInstance" - ] - }, - "filter": null, - "grouping": "PerSubpopulationInstance", - "input": { - "item": { - "Column": { - "Named": "$promql_series_identity" + "reduction": { + "Reduce": [ + 2 + ] } - }, - "weight": { - "Column": "SampleValue" - }, - "weight_domain": { - "kind": "unknown_or_signed" } - }, - "kind": "summary_agg", - "reduction": { - "Reduce": [ - 2 - ] } } }, { - "coverage": null, "guarantee": null, "id": 11, "output_schema": { @@ -54907,10 +45061,14 @@ "timing": "query_time" }, "payload": { - "kind": "summary_estimate", - "query": { - "TopK": { - "k": 10 + "ASAP": { + "SummaryEstimate": { + "query": { + "TopK": { + "k": 10 + } + }, + "summary_input": 10 } } }