diff --git a/system-bench/capabilities/victoriametrics.with-substitutes.json b/system-bench/capabilities/victoriametrics.with-substitutes.json index 09931c6e..9d976e19 100644 --- a/system-bench/capabilities/victoriametrics.with-substitutes.json +++ b/system-bench/capabilities/victoriametrics.with-substitutes.json @@ -1,42 +1,5 @@ { - "supported_summaries": [ - { - "summary_type": "Hll", - "readouts": [ - "Distinct" - ] - }, - { - "summary_type": "Kmv", - "readouts": [ - "Distinct" - ] - }, - { - "summary_type": "Kll", - "readouts": [ - "Quantile" - ] - }, - { - "summary_type": "DDSketch", - "readouts": [ - "Quantile" - ] - }, - { - "summary_type": "CmsWithHeap", - "readouts": [ - "TopK" - ] - }, - { - "summary_type": "CountSketchWithHeap", - "readouts": [ - "TopK" - ] - } - ], + "supported_summaries": [], "raw_data_retained": true, "query_time_results_retained": false, "counter_semantics": { @@ -45,20 +8,21 @@ }, "state_not_mergeable_across_windows": [ { - "exact": "IRate" - }, - { - "sketch": "Hll" + "exact": "Rate" }, { - "sketch": "Kmv" - }, + "exact": "Increase" + } + ], + "excluded_candidates": [ { - "sketch": "CmsWithHeap" + "summary_family": { + "exact": "IRate" + } }, { - "sketch": "CountSketchWithHeap" + "operator": "Aggregate", + "aggregate_measure": "i_rate" } - ], - "excluded_candidates": [] + ] } diff --git a/system-bench/src/engines_external/clickhouse.rs b/system-bench/src/engines_external/clickhouse.rs index d77f214a..253f1a3e 100644 --- a/system-bench/src/engines_external/clickhouse.rs +++ b/system-bench/src/engines_external/clickhouse.rs @@ -167,7 +167,7 @@ pub fn translate(plan: &PlanFile) -> Result &'static str { } } -/// Query-time nodes two or more readers share. -fn sharing_lost(plan: &PlanFile) -> Vec { - plan.nodes - .iter() - .filter(|node| node.timing == Timing::QueryTime) - .filter_map(|node| { - let readers = plan.readers_of(node.id); - (readers.len() >= 2).then_some(SharingLost { - node: node.id, - readers, - }) - }) - .collect() -} - /// A query relation: SQL whose result has the label columns, then `value`. struct Relation { sql: String, diff --git a/system-bench/src/engines_external/mod.rs b/system-bench/src/engines_external/mod.rs index d0dada66..674a6c51 100644 --- a/system-bench/src/engines_external/mod.rs +++ b/system-bench/src/engines_external/mod.rs @@ -2,7 +2,9 @@ //! //! [`plan_file`] reads an ASAPPlanner plan file (`InstallablePlan`, wire //! version 15). [`clickhouse`] translates it into ClickHouse tables, -//! materialized views and one SQL query per query root. A translator is the +//! materialized views and one SQL query per query root; +//! [`victoriametrics`] into VictoriaMetrics stream aggregation and one +//! MetricsQL query per query root. A translator is the //! capability check: a node it has no rule for is refused with //! [`TranslationError::UnsupportedShape`], and a rule that changes the //! planner's guarantee is recorded as a [`Substitution`]. @@ -12,6 +14,9 @@ pub mod clickhouse; pub mod plan_file; +pub mod victoriametrics; + +use plan_file::{PlanFile, Timing}; /// A node's position in the plan file's DAG. pub type NodeId = usize; @@ -47,3 +52,21 @@ pub struct SharingLost { pub node: NodeId, pub readers: Vec, } + +impl SharingLost { + /// The query-time nodes of `plan` that two or more readers share, e.g. + /// node 1 (a raw-sample range) read by three quantile nodes. + pub fn of_plan(plan: &PlanFile) -> Vec { + plan.nodes + .iter() + .filter(|node| node.timing == Timing::QueryTime) + .filter_map(|node| { + let readers = plan.readers_of(node.id); + (readers.len() >= 2).then_some(SharingLost { + node: node.id, + readers, + }) + }) + .collect() + } +} diff --git a/system-bench/src/engines_external/victoriametrics.rs b/system-bench/src/engines_external/victoriametrics.rs new file mode 100644 index 00000000..caa53321 --- /dev/null +++ b/system-bench/src/engines_external/victoriametrics.rs @@ -0,0 +1,1352 @@ +//! Translates a plan file into VictoriaMetrics: a stream-aggregation config +//! (`-streamAggr.config`) for the stored window chains, and one MetricsQL +//! instant query per query root. +//! +//! The translator is the capability check, as for ClickHouse. A first pass, +//! in node id order, refuses every operator and field it has no rule for on +//! the node that carries it; then each root is translated from these node +//! patterns, and any other pattern is refused: +//! +//! * a stored chain of exact Sum / Count / Min / Max over an ingestion-time +//! Scan becomes one stream-aggregation output (`sum_samples`, +//! `count_samples`, `min`, `max`) with `enable_windows: true`, read by +//! `TimeRange` + `SummaryMerge` + `FinalizeExactAccumulator` as +//! `sum_over_time([W])` (Sum, Count), `min_over_time`, +//! `max_over_time`. A per-series chain has no `by` and no `without`, so +//! every input label is kept (one output series per input series); a +//! grouped chain has `by: []`; a chain grouped by no label is the +//! per-series form plus the outer aggregate in the query, because an empty +//! `by` would not merge series; +//! * a query-time `SummaryAgg` or `Aggregate` over a raw-sample range +//! becomes the rollup `_over_time([W])`, `rate`, `increase` +//! or `quantile_over_time`; an aggregate over another pattern becomes +//! `sum` / `count` / `min` / `max` / `avg` / `quantile` / `topk` +//! `by ()`; +//! * an instant `TimeRange` with a lookback is `last_over_time`; +//! * `Project` of columns and casts, and arithmetic `BinaryOp` between two +//! patterns with the same labels. +//! +//! Windows are right-closed, `(t − W, t]`, like the planner's, and so are +//! MetricsQL rollup windows. A stream window `(e − w, e]` is flushed at the +//! wall-clock tick `e` plus a lag; single-node VictoriaMetrics stores the +//! output at the flush time in whole seconds, so at a time in +//! `[e − 1 s, e + lag]`. A stored read at a window end `t` therefore reads +//! `[W] offset -h` with `h = (w − 1 s) / 2`: the output times in +//! `(t − W + h, t + h]`, which are exactly those of the windows ending in +//! `(t − W, t]` while the flush lag stays below `h` (the adapter checks it). +//! Example: `w` = 60 s, `W` = 300 s: `max_over_time(m:60s_max[300s] offset +//! -29500ms)`. A `sum_samples` output also writes 0 for an empty window +//! while its series is not yet stale, where the planner has no row, so a +//! Sum read keeps only the series that `count_samples` (which skips empty +//! windows) has in the range: `sum_over_time(s[W] offset -h) and +//! count_over_time(c[W] offset -h)`. +//! +//! Stream aggregation runs on wall-clock time and aligns its windows to +//! Go's zero time, which agrees with the Unix epoch only for widths that +//! divide a day: other widths are refused. See the capability README for +//! the run contract. + +use std::collections::BTreeMap; + +use serde_json::Value; + +use super::plan_file::{ + Lifetime, Measure, PlanFile, PlanNode, PlanOperator, Predicate, RangeKind, Reduction, Source, + SummaryFamily, Timing, +}; +use super::{NodeId, SharingLost, Substitution, TranslationError}; + +/// The plan's series identity column: a label of the plan, but on +/// VictoriaMetrics a series is identified by its whole label set. +const SERIES_IDENTITY: &str = "$promql_series_identity"; + +/// One day: stream-aggregation windows align to Go's zero time, which is a +/// whole number of days before the Unix epoch. +const DAY_MS: u64 = 86_400_000; + +/// What a plan becomes on VictoriaMetrics. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct VictoriaMetricsDeployment { + /// One stream aggregation per (selector, interval, grouping), each with + /// the outputs the plan's stored chains need, in order of first read. + pub stream_aggregations: Vec, + /// One query per query root, in root order. + pub queries: Vec, + pub substitutions: Vec, + pub sharing_lost: Vec, +} + +/// One entry of the stream-aggregation config, e.g. `latency{job="j3"}` every +/// 60 s, per series, with the output `max`. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct StreamAggregation { + /// The input metric, e.g. `latency`. + pub metric: String, + /// The `match` series selector, e.g. `latency{job="j3"}`. + pub selector: String, + pub interval_ms: u64, + /// `None`: per series (no `by`, no `without`: every input label is + /// kept). `Some(labels)`: `by: [labels]`, sorted, never empty. + pub by: Option>, + pub outputs: Vec, +} + +/// A stream-aggregation output this translator uses. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum StreamOutput { + SumSamples, + CountSamples, + Min, + Max, +} + +/// One query: a MetricsQL instant query evaluated at the evaluation time, +/// sent with `nocache=1` (see the capability README's run contract). +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct MetricsQlQuery { + pub expr: String, + /// The evaluation time must be a multiple of this, in ms: the window + /// widths of the stream outputs it reads, or 1 when it reads none. + pub time_step_ms: u64, + /// `Some(metric)` when each answer series is one input series of + /// `metric` (the plan keeps the series identity); `None` when the answer + /// is grouped by its labels. + pub per_series_of: Option, +} + +impl StreamOutput { + /// The output's name in the config and in the output metric, e.g. `max`. + pub fn name(self) -> &'static str { + match self { + StreamOutput::SumSamples => "sum_samples", + StreamOutput::CountSamples => "count_samples", + StreamOutput::Min => "min", + StreamOutput::Max => "max", + } + } + + fn of(kind: ExactKind) -> StreamOutput { + match kind { + ExactKind::Sum => StreamOutput::SumSamples, + ExactKind::Count => StreamOutput::CountSamples, + ExactKind::Min => StreamOutput::Min, + ExactKind::Max => StreamOutput::Max, + ExactKind::Rate | ExactKind::Increase => unreachable!("no stored counter output"), + } + } + + /// The exact kind one window of this output holds. + fn kind(self) -> ExactKind { + match self { + StreamOutput::SumSamples => ExactKind::Sum, + StreamOutput::CountSamples => ExactKind::Count, + StreamOutput::Min => ExactKind::Min, + StreamOutput::Max => ExactKind::Max, + } + } + + /// The rollup that merges this output's windows: the sum of sums or of + /// counts, the min of mins, the max of maxes. + fn merge_rollup(self) -> &'static str { + match self { + StreamOutput::SumSamples | StreamOutput::CountSamples => "sum_over_time", + StreamOutput::Min => "min_over_time", + StreamOutput::Max => "max_over_time", + } + } + + /// The outputs a chain of `kind` stores: a Sum also stores its counts, + /// which tell an empty window (no count) from a window that sums to 0. + fn stored_for(kind: ExactKind) -> Vec { + match kind { + ExactKind::Sum => vec![StreamOutput::SumSamples, StreamOutput::CountSamples], + kind => vec![StreamOutput::of(kind)], + } + } + + /// The aggregate that merges this output across series. + fn merge_aggregate(self) -> &'static str { + self.kind() + .merge_aggregate() + .expect("a stored output is of a plain kind") + } +} + +impl StreamAggregation { + /// The metric name of `output`, as VictoriaMetrics names it: + /// `:[_by_]_`, e.g. + /// `latency:60s_by_job_sum_samples`. + pub fn output_metric(&self, output: StreamOutput) -> String { + let by = match &self.by { + Some(labels) => format!("_by_{}", labels.join("_")), + None => String::new(), + }; + format!( + "{}:{}{by}_{}", + self.metric, + duration(self.interval_ms), + output.name() + ) + } + + /// The recording-rule expression of one window of `output`, e.g. + /// `sum by (job) (sum_over_time(latency[60s]))`. + fn window_expr(&self, output: StreamOutput) -> String { + let rollup = format!( + "{}({}[{}])", + output.kind().rollup(), + self.selector, + duration(self.interval_ms) + ); + match &self.by { + None => rollup, + Some(labels) => aggregate_by(output.merge_aggregate(), labels, &rollup), + } + } +} + +impl VictoriaMetricsDeployment { + /// The `-streamAggr.config` YAML: one list entry per stream aggregation; + /// `[]` when there is none. + pub fn stream_aggregation_config(&self) -> String { + if self.stream_aggregations.is_empty() { + return "[]\n".into(); + } + let mut yaml = String::new(); + for aggregation in &self.stream_aggregations { + yaml.push_str(&format!( + "- match: {}\n interval: {}\n", + yaml_quoted(&aggregation.selector), + duration(aggregation.interval_ms) + )); + if let Some(labels) = &aggregation.by { + let labels: Vec = labels.iter().map(|l| yaml_quoted(l)).collect(); + yaml.push_str(&format!(" by: [{}]\n", labels.join(", "))); + } + let outputs: Vec<&str> = aggregation.outputs.iter().map(|o| o.name()).collect(); + yaml.push_str(&format!( + " outputs: [{}]\n enable_windows: true\n ignore_first_intervals: 0\n \ + flush_on_shutdown: false\n", + outputs.join(", ") + )); + } + yaml + } + + /// The same outputs as vmalert recording rules: one group per interval, + /// evaluated at aligned times, each rule recording one output's window + /// under the output's name. This is the cross-check form: it needs no + /// real time. + pub fn recording_rules(&self) -> String { + let mut by_interval: BTreeMap> = BTreeMap::new(); + for aggregation in &self.stream_aggregations { + by_interval + .entry(aggregation.interval_ms) + .or_default() + .push(aggregation); + } + if by_interval.is_empty() { + return "groups: []\n".into(); + } + let mut yaml = String::from("groups:\n"); + for (interval_ms, aggregations) in by_interval { + let interval = duration(interval_ms); + yaml.push_str(&format!( + " - name: stream-aggregation-{interval}\n interval: {interval}\n \ + eval_alignment: true\n eval_delay: 0s\n rules:\n" + )); + for aggregation in aggregations { + for &output in &aggregation.outputs { + yaml.push_str(&format!( + " - record: {}\n expr: {}\n", + aggregation.output_metric(output), + yaml_quoted(&aggregation.window_expr(output)) + )); + } + } + } + yaml + } +} + +/// Translates `plan`; the first node with no rule is refused. +pub fn translate(plan: &PlanFile) -> Result { + for node in &plan.nodes { + refuse_unsupported_fields(node)?; + } + let mut translator = Translator { + plan, + stream_aggregations: Vec::new(), + substitutions: BTreeMap::new(), + }; + let mut queries = Vec::new(); + for &root in &plan.roots { + let relation = translator.relation(root)?; + if relation.unfinalized_kind.is_some() { + return Err(unsupported(root, "a summary state as a query result")); + } + queries.push(MetricsQlQuery { + expr: relation.expr, + time_step_ms: relation.step_ms, + per_series_of: relation.per_series_of, + }); + } + Ok(VictoriaMetricsDeployment { + stream_aggregations: translator.stream_aggregations, + queries, + substitutions: translator.substitutions.into_values().collect(), + sharing_lost: SharingLost::of_plan(plan), + }) +} + +fn unsupported(node: NodeId, reason: impl Into) -> TranslationError { + TranslationError::UnsupportedShape { + node, + reason: reason.into(), + } +} + +/// The first pass: an operator or field with no rule, on the node carrying it. +fn refuse_unsupported_fields(node: &PlanNode) -> Result<(), TranslationError> { + let refuse = |reason: &str| Err(unsupported(node.id, reason)); + if node.timing == Timing::QueryTime && node.lifetime == Lifetime::AcrossEvaluations { + return refuse("query-time result kept across evaluations"); + } + let refuse_without = |reduction: &Reduction| match reduction { + Reduction::Reduce { without: true, .. } => refuse("without"), + _ => Ok(()), + }; + match &node.operator { + PlanOperator::Other { kind } => refuse(&format!("operator {kind}")), + PlanOperator::Scan { source, predicates } => { + let Source::TimeSeries { metric } = source else { + return refuse("table source"); + }; + if !is_metric_name(metric) { + return refuse(&format!("metric name {metric}")); + } + for predicate in predicates { + let Predicate::LabelEquals { column, .. } = predicate else { + return refuse("predicate"); + }; + let Some(name) = node + .output_columns + .get(*column) + .filter(|name| node.label_columns.contains(name)) + else { + return refuse("predicate on a non-label column"); + }; + if name == SERIES_IDENTITY { + return refuse("predicate on the series identity"); + } + if !is_label_name(name) { + return refuse(&format!("label name {name}")); + } + } + Ok(()) + } + PlanOperator::SummaryTumblingWindowChain { + family, + reduction, + input, + filter, + .. + } + | PlanOperator::SummaryAgg { + family, + reduction, + input, + filter, + .. + } => { + if filter.is_some() { + return refuse("filter"); + } + if *input != serde_json::json!({"item": null, "weight": {"Column": "SampleValue"}}) { + return refuse("summary input"); + } + refuse_without(reduction)?; + match family { + SummaryFamily::Exact(kind) if ExactKind::of(kind).is_some() => Ok(()), + SummaryFamily::Exact(kind) => refuse(&format!("exact {kind}")), + SummaryFamily::Sketch(algorithm) => refuse(&format!("sketch {algorithm}")), + } + } + PlanOperator::Aggregate { + measure_filters, + having, + reduction, + .. + } => { + if measure_filters.iter().any(Option::is_some) { + return refuse("filter"); + } + if having.is_some() { + return refuse("having"); + } + refuse_without(reduction) + } + PlanOperator::BinaryOp { + operator, + return_bool, + .. + } => { + if *return_bool { + return refuse("bool comparison"); + } + if !operator.get("vector_match").is_none_or(Value::is_null) { + return refuse("vector matching"); + } + if operator.get("checked_relative_division") == Some(&Value::Bool(true)) { + return refuse("checked relative division"); + } + match arithmetic_operator(operator) { + Some(_) => Ok(()), + None => refuse(&format!("binary operator {}", operator["kind"])), + } + } + PlanOperator::SummaryEstimate { .. } => refuse("summary estimate"), + PlanOperator::TimeRange { .. } + | PlanOperator::SummaryMerge { .. } + | PlanOperator::FinalizeExactAccumulator { .. } + | PlanOperator::Project { .. } => Ok(()), + } +} + +/// The MetricsQL operator of an arithmetic `BinaryOperator`: +/// `{"kind": {"Arithmetic": "Div"}, ...}` is `/`. +fn arithmetic_operator(operator: &Value) -> Option<&'static str> { + match operator.get("kind")?.get("Arithmetic")?.as_str()? { + "Add" => Some("+"), + "Sub" => Some("-"), + "Mul" => Some("*"), + "Div" => Some("/"), + _ => None, + } +} + +/// The exact kinds this translator reads. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +enum ExactKind { + Sum, + Count, + Min, + Max, + Rate, + Increase, +} + +impl ExactKind { + fn of(kind: &str) -> Option { + Some(match kind { + "Sum" => ExactKind::Sum, + "Count" => ExactKind::Count, + "Min" => ExactKind::Min, + "Max" => ExactKind::Max, + "Rate" => ExactKind::Rate, + "Increase" => ExactKind::Increase, + _ => return None, + }) + } + + /// The kind of an exact `family` the first pass accepted. + fn of_checked(family: &SummaryFamily) -> ExactKind { + match family { + SummaryFamily::Exact(kind) => ExactKind::of(kind), + SummaryFamily::Sketch(_) => None, + } + .expect("the first pass refuses every other family") + } + + fn is_counter(self) -> bool { + matches!(self, ExactKind::Rate | ExactKind::Increase) + } + + /// The rollup over one series' raw samples in a range. + fn rollup(self) -> &'static str { + match self { + ExactKind::Sum => "sum_over_time", + ExactKind::Count => "count_over_time", + ExactKind::Min => "min_over_time", + ExactKind::Max => "max_over_time", + ExactKind::Rate => "rate", + ExactKind::Increase => "increase", + } + } + + /// The aggregate over raw values of a plain kind (`None` for a counter). + fn aggregate(self) -> Option<&'static str> { + match self { + ExactKind::Sum => Some("sum"), + ExactKind::Count => Some("count"), + ExactKind::Min => Some("min"), + ExactKind::Max => Some("max"), + ExactKind::Rate | ExactKind::Increase => None, + } + } + + /// The aggregate that merges partial values of a plain kind: a count of + /// counts is their sum. + fn merge_aggregate(self) -> Option<&'static str> { + match self { + ExactKind::Count => Some("sum"), + kind => kind.aggregate(), + } + } +} + +/// A query relation: a MetricsQL expression whose series carry `labels`. +struct Relation { + expr: String, + /// The plan's label columns of the result, e.g. `["job"]`, or every + /// label plus the series identity for a per-series result. + labels: Vec, + /// The step the evaluation time must be a multiple of (1 when the + /// relation reads no stream output). + step_ms: u64, + /// `Some(kind)` when the result is a query-time `SummaryAgg` state not + /// yet finalized: a partial `kind` value a `SummaryMerge` may regroup. + unfinalized_kind: Option, + /// `Some(metric)` when each result series is one input series of `metric`. + per_series_of: Option, +} + +/// Raw samples of a metric in a range, filtered by labels. +struct RawSamples { + metric: String, + /// `metric{label="value",...}`. + selector: String, + labels: Vec, + range_ms: u64, +} + +/// A stored window chain as one stream output. +struct StoredChain { + kind: ExactKind, + metric: String, + selector: String, + width_ms: u64, + grouping: ChainGrouping, + /// The chain's label columns (every label plus the identity per series). + labels: Vec, +} + +enum ChainGrouping { + PerSeries, + /// Non-empty, sorted. + By(Vec), + /// Grouped by no label: the per-series output plus the outer aggregate. + AllSeries, +} + +struct Translator<'a> { + plan: &'a PlanFile, + stream_aggregations: Vec, + /// By node, so a node several roots read is recorded once. + substitutions: BTreeMap, +} + +impl Translator<'_> { + fn node(&self, id: NodeId) -> &PlanNode { + &self.plan.nodes[id] + } + + /// The relation node `id` computes. + fn relation(&mut self, id: NodeId) -> Result { + let plan = self.plan; + match &plan.nodes[id].operator { + PlanOperator::FinalizeExactAccumulator { child } => self.finalized(id, *child), + PlanOperator::SummaryAgg { + child, + family, + reduction, + .. + } => self.summary_agg(id, *child, ExactKind::of_checked(family), reduction), + PlanOperator::SummaryMerge { children, group_by } => { + let [child] = children[..] else { + return Err(unsupported(id, "merge of several inputs")); + }; + if group_by.is_some() + && matches!(self.node(child).operator, PlanOperator::TimeRange { .. }) + { + return Err(unsupported(id, "regrouping merge of stored windows")); + } + let input = self.relation(child)?; + let Some(kind) = input.unfinalized_kind else { + return Err(unsupported(id, "merge of this operator")); + }; + match group_by { + None => Ok(input), + Some(columns) => self.regrouped(id, child, input, kind, columns), + } + } + PlanOperator::Aggregate { + child, + measures, + reduction, + .. + } => self.aggregate(id, *child, measures, reduction), + PlanOperator::TimeRange { + kind: RangeKind::Instant, + .. + } => self.latest_samples(id), + PlanOperator::Project { child, expressions } => self.projected(id, *child, expressions), + PlanOperator::BinaryOp { + lhs, rhs, operator, .. + } => self.binary(id, *lhs, *rhs, operator), + _ => Err(unsupported(id, "this operator as a query input")), + } + } + + /// The relation of `id`, which must not be an unfinalized state. + fn value_relation(&mut self, reader: NodeId, id: NodeId) -> Result { + let relation = self.relation(id)?; + if relation.unfinalized_kind.is_some() { + return Err(unsupported(reader, "a summary state as an input")); + } + Ok(relation) + } + + /// `range`, a `TimeRange` over a raw-data time-series Scan. + fn raw_samples(&self, range: NodeId) -> Result { + let PlanOperator::TimeRange { + child: scan, + range_ms, + .. + } = self.node(range).operator + else { + return Err(unsupported(range, "this operator over raw samples")); + }; + let scan_node = self.node(scan); + let PlanOperator::Scan { + source: Source::TimeSeries { metric }, + .. + } = &scan_node.operator + else { + return Err(unsupported(range, "time range over this operator")); + }; + // The raw series, kept by `-streamAggr.keepInput`, whether the plan + // scans them at query time or keeps them at ingestion time. + if !scan_node.is_raw_data_scan() { + return Err(unsupported(range, "time range over an ingestion-time scan")); + } + Ok(RawSamples { + metric: metric.clone(), + selector: self.selector(scan), + labels: self.node(range).label_columns.clone(), + range_ms, + }) + } + + /// Whether `id` is a range `TimeRange` (its input is raw samples). + fn is_range(&self, id: NodeId) -> bool { + matches!( + self.node(id).operator, + PlanOperator::TimeRange { + kind: RangeKind::Range, + .. + } + ) + } + + /// The series selector of Scan `scan`: its metric and label matchers, + /// e.g. `latency{job="j3"}`. + fn selector(&self, scan: NodeId) -> String { + let scan_node = self.node(scan); + let PlanOperator::Scan { + source: Source::TimeSeries { metric }, + predicates, + } = &scan_node.operator + else { + unreachable!("called on a time-series Scan"); + }; + if predicates.is_empty() { + return metric.clone(); + } + let mut matchers: Vec = predicates + .iter() + .map(|predicate| { + let Predicate::LabelEquals { column, value } = predicate else { + unreachable!("the first pass refuses every other predicate"); + }; + format!( + "{}={}", + scan_node.output_columns[*column], + string_literal(value) + ) + }) + .collect(); + matchers.sort(); + format!("{metric}{{{}}}", matchers.join(",")) + } + + /// The names of `columns` of node `of`'s output, each one of `labels` + /// and never the series identity. + fn group_labels( + &self, + reader: NodeId, + of: NodeId, + columns: &[usize], + labels: &[String], + ) -> Result, TranslationError> { + let names = &self.node(of).output_columns; + columns + .iter() + .map(|&column| { + let name = names + .get(column) + .filter(|name| labels.contains(name)) + .ok_or_else(|| unsupported(reader, "group column"))?; + if name == SERIES_IDENTITY { + return Err(unsupported(reader, "group by the series identity")); + } + if !is_label_name(name) { + return Err(unsupported(reader, format!("label name {name}"))); + } + Ok(name.clone()) + }) + .collect() + } + + /// `FinalizeExactAccumulator` over a stored chain's merged windows or over + /// a query-time state. + fn finalized(&mut self, id: NodeId, child: NodeId) -> Result { + if let PlanOperator::SummaryMerge { + children, + group_by: None, + } = &self.node(child).operator + { + if let [range] = children[..] { + if let PlanOperator::TimeRange { + child: chain, + range_ms, + kind: RangeKind::Range, + } = self.node(range).operator + { + if matches!( + self.node(chain).operator, + PlanOperator::SummaryTumblingWindowChain { .. } + ) { + return self.stored_read(range, chain, range_ms); + } + } + } + } + let mut relation = self.relation(child)?; + if relation.unfinalized_kind.take().is_none() { + return Err(unsupported(id, "finalize over this operator")); + } + Ok(relation) + } + + /// A query-time `SummaryAgg` of `kind` over `child`: raw samples when + /// `child` is a range `TimeRange`, otherwise another relation's values. + fn summary_agg( + &mut self, + id: NodeId, + child: NodeId, + kind: ExactKind, + reduction: &Reduction, + ) -> Result { + if self.node(id).timing != Timing::QueryTime { + return Err(unsupported(id, "summary built at ingestion")); + } + if self.is_range(child) { + let raw = self.raw_samples(child)?; + let rollup = format!( + "{}({}[{}])", + kind.rollup(), + raw.selector, + duration(raw.range_ms) + ); + if kind.is_counter() { + self.substitutions.insert( + id, + Substitution { + node: id, + rule: "victoriametrics.rate_increase.no_extrapolation".into(), + guarantee_difference: "no extrapolation to the range's ends: the \ + increase runs from the last sample before the \ + range to the last sample in it, and `rate` \ + divides it by the time between those two \ + samples; with no sample before the range, \ + `increase` counts from 0 and `rate` uses the \ + first sample in it (no answer from one sample); \ + an earlier sample and none in the range gives \ + 0; a drop smaller than prev/8 adds only \ + prev - v as a reset" + .into(), + }, + ); + } + return match reduction { + Reduction::PerEntity => Ok(Relation { + expr: rollup, + labels: raw.labels, + step_ms: 1, + unfinalized_kind: Some(kind), + per_series_of: Some(raw.metric), + }), + Reduction::Reduce { columns, .. } => { + let Some(merge) = kind.merge_aggregate() else { + return Err(unsupported(id, "grouped counter summary")); + }; + let labels = self.group_labels(id, child, columns, &raw.labels)?; + Ok(Relation { + expr: aggregate_by(merge, &labels, &rollup), + labels, + step_ms: 1, + unfinalized_kind: Some(kind), + per_series_of: None, + }) + } + }; + } + let Some(function) = kind.aggregate() else { + return Err(unsupported(id, "counter summary over computed values")); + }; + let Reduction::Reduce { columns, .. } = reduction else { + return Err(unsupported(id, "per-series summary over computed values")); + }; + let input = self.value_relation(id, child)?; + let labels = self.group_labels(id, child, columns, &input.labels)?; + Ok(Relation { + expr: aggregate_by(function, &labels, &input.expr), + labels, + step_ms: input.step_ms, + unfinalized_kind: Some(kind), + per_series_of: None, + }) + } + + /// A `SummaryMerge` that regroups the query-time states of `child` by + /// `columns` of `child`'s output. + fn regrouped( + &mut self, + id: NodeId, + child: NodeId, + input: Relation, + kind: ExactKind, + columns: &[usize], + ) -> Result { + let Some(merge) = kind.merge_aggregate() else { + return Err(unsupported(id, "regrouping merge of a counter state")); + }; + let labels = self.group_labels(id, child, columns, &input.labels)?; + Ok(Relation { + expr: aggregate_by(merge, &labels, &input.expr), + labels, + step_ms: input.step_ms, + unfinalized_kind: Some(kind), + per_series_of: None, + }) + } + + /// An instant `TimeRange` over a raw-data Scan: each series' latest + /// sample in `(t − lookback, t]`. + fn latest_samples(&self, range: NodeId) -> Result { + let raw = self.raw_samples(range)?; + if raw.range_ms == 0 { + return Err(unsupported(range, "instant selector without a lookback")); + } + Ok(Relation { + expr: format!( + "last_over_time({}[{}])", + raw.selector, + duration(raw.range_ms) + ), + labels: raw.labels, + step_ms: 1, + unfinalized_kind: None, + per_series_of: Some(raw.metric), + }) + } + + /// The merged windows of stored chain `chain` in `(t − range_ms, t]`, + /// read by `TimeRange` node `range`. `t` must be a window end. + fn stored_read( + &mut self, + range: NodeId, + chain: NodeId, + range_ms: u64, + ) -> Result { + let stored = self.stored_chain(chain)?; + if !range_ms.is_multiple_of(stored.width_ms) { + return Err(unsupported( + range, + "a range that is not a whole number of windows", + )); + } + let by = match &stored.grouping { + ChainGrouping::By(labels) => Some(labels.clone()), + ChainGrouping::PerSeries | ChainGrouping::AllSeries => None, + }; + let mut output_metrics = Vec::new(); + for output in StreamOutput::stored_for(stored.kind) { + output_metrics.push(self.add_stream_output(chain, &stored, output, by.clone())?); + } + // Each output's times are in `[e − 1 s, e + lag]` for a window ending + // at `e`; see the module docs. + let shift = duration((stored.width_ms - 1000) / 2); + let range = duration(range_ms); + let read = + |rollup: &str, metric: &str| format!("{rollup}({metric}[{range}] offset -{shift})"); + let rollup = match &output_metrics[..] { + [sums, counts] => format!( + "{} and {}", + read("sum_over_time", sums), + read("count_over_time", counts) + ), + [single] => read(StreamOutput::of(stored.kind).merge_rollup(), single), + _ => unreachable!("one or two outputs"), + }; + let merge = StreamOutput::of(stored.kind).merge_aggregate(); + let (expr, labels, per_series_of) = match stored.grouping { + ChainGrouping::PerSeries => (rollup, stored.labels, Some(stored.metric)), + ChainGrouping::By(labels) => (rollup, labels, None), + ChainGrouping::AllSeries => (format!("{merge}({rollup})"), Vec::new(), None), + }; + Ok(Relation { + expr, + labels, + step_ms: stored.width_ms, + unfinalized_kind: None, + per_series_of, + }) + } + + /// Adds `output` of `stored` to its stream aggregation (one per + /// selector, interval and grouping) and returns the output metric. An + /// output whose name another aggregation already writes is refused: + /// both would write one series, e.g. `by [a_b]` and `by [a, b]`. + fn add_stream_output( + &mut self, + chain: NodeId, + stored: &StoredChain, + output: StreamOutput, + by: Option>, + ) -> Result { + let candidate = StreamAggregation { + metric: stored.metric.clone(), + selector: stored.selector.clone(), + interval_ms: stored.width_ms, + by, + outputs: Vec::new(), + }; + let output_metric = candidate.output_metric(output); + let same_entry = |a: &StreamAggregation| { + a.metric == candidate.metric + && a.selector == candidate.selector + && a.interval_ms == candidate.interval_ms + && a.by == candidate.by + }; + if self.stream_aggregations.iter().any(|a| { + !same_entry(a) + && a.outputs + .iter() + .any(|&o| a.output_metric(o) == output_metric) + }) { + return Err(unsupported( + chain, + format!("two stored chains with the output {output_metric}"), + )); + } + let at = match self.stream_aggregations.iter().position(same_entry) { + Some(at) => at, + None => { + self.stream_aggregations.push(candidate); + self.stream_aggregations.len() - 1 + } + }; + let outputs = &mut self.stream_aggregations[at].outputs; + if !outputs.contains(&output) { + outputs.push(output); + } + Ok(output_metric) + } + + /// The stored chain at `chain`, if this translator supports it: + /// ingestion-time, kept across evaluations, over an ingestion-time + /// time-series Scan; exact Sum, Count, Min or Max; a width of whole + /// seconds, at least 2 s, that divides a day. + fn stored_chain(&self, chain: NodeId) -> Result { + let node = self.node(chain); + let PlanOperator::SummaryTumblingWindowChain { + child, + family, + reduction, + width_ms, + .. + } = &node.operator + else { + unreachable!("called on a window chain"); + }; + let kind = ExactKind::of_checked(family); + if kind.is_counter() { + return Err(unsupported(chain, "stored counter window chain")); + } + let width_ms = *width_ms; + if !width_ms.is_multiple_of(1000) { + return Err(unsupported( + chain, + format!("window width {width_ms} ms is not whole seconds"), + )); + } + if width_ms < 2000 { + return Err(unsupported( + chain, + format!("window width {width_ms} ms is below 2 s"), + )); + } + if !DAY_MS.is_multiple_of(width_ms) { + return Err(unsupported( + chain, + format!("window width {width_ms} ms does not divide 86,400 s"), + )); + } + if node.timing != Timing::IngestionTime || node.lifetime != Lifetime::AcrossEvaluations { + return Err(unsupported(chain, "window chain not stored at ingestion")); + } + let scan = self.node(*child); + let ( + PlanOperator::Scan { + source: Source::TimeSeries { metric }, + .. + }, + Timing::IngestionTime, + ) = (&scan.operator, scan.timing) + else { + return Err(unsupported(chain, "window chain over this operator")); + }; + let grouping = match reduction { + Reduction::PerEntity => ChainGrouping::PerSeries, + Reduction::Reduce { columns, .. } if columns.is_empty() => ChainGrouping::AllSeries, + Reduction::Reduce { columns, .. } => { + let mut labels = self.group_labels(chain, *child, columns, &scan.label_columns)?; + labels.sort(); + labels.dedup(); + ChainGrouping::By(labels) + } + }; + Ok(StoredChain { + kind, + metric: metric.clone(), + selector: self.selector(*child), + width_ms, + grouping, + labels: node.label_columns.clone(), + }) + } + + fn aggregate( + &mut self, + id: NodeId, + child: NodeId, + measures: &[Measure], + reduction: &Reduction, + ) -> Result { + let [measure] = measures else { + return Err(unsupported(id, "several measures")); + }; + if let Some(column) = measure.column { + if !self.node(child).is_value_column(column) { + return Err(unsupported(id, "measure over a label column")); + } + } + if self.is_range(child) { + let raw = self.raw_samples(child)?; + if *reduction != Reduction::PerEntity { + return Err(unsupported(id, "grouped aggregate over raw samples")); + } + let window = format!("{}[{}]", raw.selector, duration(raw.range_ms)); + let expr = match measure.kind.as_str() { + "sum" | "count" | "min" | "max" | "avg" if no_arguments(measure, &[]) => { + format!("{}_over_time({window})", measure.kind) + } + "quantile" if no_arguments(measure, &["q"]) => { + format!( + "quantile_over_time({}, {window})", + quantile_level(id, measure)? + ) + } + kind => return Err(unsupported(id, format!("measure {kind}"))), + }; + return Ok(Relation { + expr, + labels: raw.labels, + step_ms: 1, + unfinalized_kind: None, + per_series_of: Some(raw.metric), + }); + } + let Reduction::Reduce { columns, .. } = reduction else { + return Err(unsupported(id, "per-series aggregate over computed values")); + }; + let input = self.value_relation(id, child)?; + let group = self.group_labels(id, child, columns, &input.labels)?; + if measure.kind == "top_k" { + let k = whole_number_argument(id, measure, "k")?; + return Ok(Relation { + expr: aggregate_by("topk", &group, &format!("{k}, {}", input.expr)), + labels: input.labels, + step_ms: input.step_ms, + unfinalized_kind: None, + per_series_of: input.per_series_of, + }); + } + let expr = match measure.kind.as_str() { + "sum" | "count" | "min" | "max" | "avg" if no_arguments(measure, &[]) => { + aggregate_by(&measure.kind, &group, &input.expr) + } + "quantile" if no_arguments(measure, &["q"]) => aggregate_by( + "quantile", + &group, + &format!("{}, {}", quantile_level(id, measure)?, input.expr), + ), + kind => return Err(unsupported(id, format!("measure {kind}"))), + }; + Ok(Relation { + expr, + labels: group, + step_ms: input.step_ms, + unfinalized_kind: None, + per_series_of: None, + }) + } + + /// `Project`: each output column is a child label under its own name, or + /// the child's value, as is or cast to Float64 (every MetricsQL value is + /// one). + fn projected( + &mut self, + id: NodeId, + child: NodeId, + expressions: &[Value], + ) -> Result { + let input = self.value_relation(id, child)?; + let node = self.node(id); + let child_node = self.node(child); + let mut labels = Vec::new(); + let mut has_value = false; + for (output, expression) in node.output_columns.iter().zip(expressions) { + let column = match expression { + Value::Object(map) if map.contains_key("Column") => &map["Column"], + Value::Object(map) if map.contains_key("Cast") => { + let cast = &map["Cast"]; + if cast.get("to").and_then(Value::as_str) != Some("float64") + || cast.get("try_cast") != Some(&Value::Bool(false)) + { + return Err(unsupported(id, "projected expression")); + } + cast.get("expr") + .and_then(|e| e.get("Column")) + .ok_or_else(|| unsupported(id, "projected expression"))? + } + _ => return Err(unsupported(id, "projected expression")), + }; + let index = column + .as_u64() + .map(|c| c as usize) + .ok_or_else(|| unsupported(id, "projected column"))?; + let source = child_node + .output_columns + .get(index) + .ok_or_else(|| unsupported(id, "projected column"))?; + if node.label_columns.contains(output) { + if !input.labels.contains(source) { + return Err(unsupported(id, "projected label")); + } + if source != output { + return Err(unsupported(id, "projected label rename")); + } + labels.push(output.clone()); + } else { + if has_value || !child_node.is_value_column(index) { + return Err(unsupported(id, "projected value")); + } + has_value = true; + } + } + if !has_value { + return Err(unsupported(id, "projection without a value")); + } + // Dropping a label would leave several series per label set. + if labels.len() != input.labels.len() { + return Err(unsupported(id, "projection that drops a label")); + } + Ok(Relation { labels, ..input }) + } + + /// Arithmetic between the series of `lhs` and `rhs` that have the same + /// labels (one-to-one matching on all labels, `__name__` ignored). + fn binary( + &mut self, + id: NodeId, + lhs: NodeId, + rhs: NodeId, + operator: &Value, + ) -> Result { + let symbol = arithmetic_operator(operator).expect("checked in the first pass"); + let left = self.value_relation(id, lhs)?; + let right = self.value_relation(id, rhs)?; + let mut left_set = left.labels.clone(); + let mut right_set = right.labels.clone(); + left_set.sort(); + right_set.sort(); + if left_set != right_set { + return Err(unsupported(id, "binary operation on different label sets")); + } + // The plan's series identity names the metric, so per-series values + // of two metrics never match in the plan, where MetricsQL would + // match them on their other labels. + if left.per_series_of != right.per_series_of { + return Err(unsupported( + id, + "binary operation across metrics per series", + )); + } + if symbol == "/" { + let checked = operator.get("checked_finite_division") == Some(&Value::Bool(true)); + self.substitutions.insert( + id, + Substitution { + node: id, + rule: "victoriametrics.division.nan_dropped".into(), + guarantee_difference: if checked { + "VictoriaMetrics drops a series whose quotient is NaN (e.g. 0/0), where \ + PromQL keeps it; and a checked division (avg as sum / count) whose \ + operand or result is not finite is answered as VictoriaMetrics divides, \ + where the planner's executor answers the original query exactly" + } else { + "VictoriaMetrics drops a series whose quotient is NaN (e.g. 0/0), where \ + PromQL keeps it" + } + .into(), + }, + ); + } + Ok(Relation { + expr: format!("({}) {symbol} ({})", left.expr, right.expr), + labels: left.labels, + step_ms: least_common_multiple(left.step_ms, right.step_ms), + unfinalized_kind: None, + per_series_of: left.per_series_of, + }) + } +} + +/// `f by (a, b) (arguments)`, or `f(arguments)` with no label. +fn aggregate_by(function: &str, labels: &[String], arguments: &str) -> String { + if labels.is_empty() { + format!("{function}({arguments})") + } else { + format!("{function} by ({}) ({arguments})", labels.join(", ")) + } +} + +/// Whether `measure` has no argument other than `allowed`. +fn no_arguments(measure: &Measure, allowed: &[&str]) -> bool { + measure + .arguments + .keys() + .all(|key| allowed.contains(&key.as_str())) +} + +/// The `q` of a quantile measure, in [0, 1]. +fn quantile_level(id: NodeId, measure: &Measure) -> Result { + measure + .arguments + .get("q") + .and_then(Value::as_f64) + .filter(|q| (0.0..=1.0).contains(q)) + .ok_or_else(|| unsupported(id, "quantile level")) +} + +/// A whole-number argument of a measure, e.g. `k` of `top_k`. +fn whole_number_argument( + id: NodeId, + measure: &Measure, + name: &str, +) -> Result { + if !no_arguments(measure, &[name]) { + return Err(unsupported(id, format!("measure {}", measure.kind))); + } + measure + .arguments + .get(name) + .and_then(Value::as_u64) + .ok_or_else(|| unsupported(id, format!("{} {name}", measure.kind))) +} + +/// A duration as MetricsQL and the config write it: `300000` ms is `300s`, +/// `1500` ms is `1500ms`. +fn duration(ms: u64) -> String { + if ms.is_multiple_of(1000) { + format!("{}s", ms / 1000) + } else { + format!("{ms}ms") + } +} + +/// A MetricsQL string literal: `j"3` is `"j\"3"`. +fn string_literal(value: &str) -> String { + let mut out = String::from("\""); + for c in value.chars() { + match c { + '\\' => out.push_str("\\\\"), + '"' => out.push_str("\\\""), + '\n' => out.push_str("\\n"), + '\r' => out.push_str("\\r"), + '\t' => out.push_str("\\t"), + c => out.push(c), + } + } + out.push('"'); + out +} + +/// A YAML single-quoted scalar: a quote is doubled. +fn yaml_quoted(value: &str) -> String { + format!("'{}'", value.replace('\'', "''")) +} + +/// A label name MetricsQL can write unquoted: `[a-zA-Z_][a-zA-Z0-9_]*`. +fn is_label_name(name: &str) -> bool { + let mut chars = name.chars(); + chars + .next() + .is_some_and(|c| c.is_ascii_alphabetic() || c == '_') + && chars.all(|c| c.is_ascii_alphanumeric() || c == '_') +} + +/// A metric name MetricsQL can write unquoted: `[a-zA-Z_:][a-zA-Z0-9_:]*`. +fn is_metric_name(name: &str) -> bool { + let mut chars = name.chars(); + chars + .next() + .is_some_and(|c| c.is_ascii_alphabetic() || c == '_' || c == ':') + && chars.all(|c| c.is_ascii_alphanumeric() || c == '_' || c == ':') +} + +fn least_common_multiple(a: u64, b: u64) -> u64 { + let (mut x, mut y) = (a, b); + while y != 0 { + (x, y) = (y, x % y); + } + a / x * b +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn durations_and_literals() { + assert_eq!(duration(300_000), "300s"); + assert_eq!(duration(1_500), "1500ms"); + assert_eq!(string_literal("j\"3\\"), r#""j\"3\\""#); + assert_eq!(yaml_quoted("a'b"), "'a''b'"); + assert!(is_label_name("job_1") && !is_label_name("a-b") && !is_label_name("1a")); + assert!(is_metric_name("a:b") && !is_metric_name("a-b")); + } +} diff --git a/system-bench/tests/capability_files.rs b/system-bench/tests/capability_files.rs index 0c2007f7..16b10e9c 100644 --- a/system-bench/tests/capability_files.rs +++ b/system-bench/tests/capability_files.rs @@ -11,18 +11,7 @@ fn file(name: &str) -> Value { serde_json::from_str(&std::fs::read_to_string(path).expect("file")).expect("JSON") } -fn sketches_all() -> Value { - json!([ - {"summary_type": "Hll", "readouts": ["Distinct"]}, - {"summary_type": "Kmv", "readouts": ["Distinct"]}, - {"summary_type": "Kll", "readouts": ["Quantile"]}, - {"summary_type": "DDSketch", "readouts": ["Quantile"]}, - {"summary_type": "CmsWithHeap", "readouts": ["TopK"]}, - {"summary_type": "CountSketchWithHeap", "readouts": ["TopK"]} - ]) -} - -fn clickhouse_irate_exclusions() -> Value { +fn irate_exclusions() -> Value { json!([ {"summary_family": {"exact": "IRate"}}, {"operator": "Aggregate", "aggregate_measure": "i_rate"} @@ -40,7 +29,7 @@ fn capability_files_match_the_design() { "query_time_results_retained": false, "counter_semantics": {"reset_handling": true, "extrapolation": true}, "state_not_mergeable_across_windows": [{"exact": "Rate"}, {"exact": "Increase"}], - "excluded_candidates": clickhouse_irate_exclusions() + "excluded_candidates": irate_exclusions() }) ); assert_eq!( @@ -51,7 +40,7 @@ fn capability_files_match_the_design() { "query_time_results_retained": false, "counter_semantics": {"reset_handling": true, "extrapolation": true}, "state_not_mergeable_across_windows": [], - "excluded_candidates": clickhouse_irate_exclusions() + "excluded_candidates": irate_exclusions() }) ); assert_eq!( @@ -68,15 +57,14 @@ fn capability_files_match_the_design() { assert_eq!( file("victoriametrics.with-substitutes.json"), json!({ - "supported_summaries": sketches_all(), + // No sketch until the translator builds sketch states, and no + // stored counter chain until it has a rule for one. + "supported_summaries": [], "raw_data_retained": true, "query_time_results_retained": false, "counter_semantics": {"reset_handling": true, "extrapolation": true}, - "state_not_mergeable_across_windows": [ - {"exact": "IRate"}, {"sketch": "Hll"}, {"sketch": "Kmv"}, - {"sketch": "CmsWithHeap"}, {"sketch": "CountSketchWithHeap"} - ], - "excluded_candidates": [] + "state_not_mergeable_across_windows": [{"exact": "Rate"}, {"exact": "Increase"}], + "excluded_candidates": irate_exclusions() }) ); } diff --git a/system-bench/tests/fixtures/plans/REV b/system-bench/tests/fixtures/plans/REV index 21bb789a..eed4df2a 100644 --- a/system-bench/tests/fixtures/plans/REV +++ b/system-bench/tests/fixtures/plans/REV @@ -40,3 +40,13 @@ with `serde_json::to_string_pretty` (named) or `serde_json::to_string` (public). Regenerate with `asap_planner --plan-file` once it exists; never edit these files by hand. Edge cases are made in test code by changing one field of a loaded fixture. + +VictoriaMetrics public plans (`public/.victoriametrics..plan.json`, compact), +written the same way at the same rev, with `capabilities/victoriametrics..json`: the +eight showcase shapes (every variant that has a plan; the equivalent-only file has none for +the rate shapes), `sum_over_time__1h__1hz__60s` (equivalent-only), plus a greedy cover of every node shape +of the full sweep (all 206 public PromQL workloads with both VictoriaMetrics files: 332 plans). +Of the full sweep, every plan translates except the ones with a window chain narrower than 2 s +(the README states why); none of those is equivalent-only, and no equivalent-only plan has a +substitution. `mixed-08` and `mixed-09` keep such a chain, and `public_plans_translate` lists +their refusals. diff --git a/system-bench/tests/fixtures/plans/public/avg_quantile__1m_1hz_10s.victoriametrics.equivalent-only.plan.json b/system-bench/tests/fixtures/plans/public/avg_quantile__1m_1hz_10s.victoriametrics.equivalent-only.plan.json new file mode 100644 index 00000000..f6e798b4 --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/avg_quantile__1m_1hz_10s.victoriametrics.equivalent-only.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"latency"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"retention_ms":60000},{"id":1,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":60,"nanos":0},"kind":"range","child":0}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":2,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.9}],"output_names":[""],"filters":[],"having":null,"child":1}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":3,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"avg","col":null}],"output_names":[""],"filters":[],"having":null,"child":2}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"avg","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":2,"consumer":3,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[3],"scalar_roots":[]},"query_texts":["avg by (job) (quantile_over_time(0.9, latency[1m]))"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/avg_quantile__1m_1hz_10s.victoriametrics.with-substitutes.plan.json b/system-bench/tests/fixtures/plans/public/avg_quantile__1m_1hz_10s.victoriametrics.with-substitutes.plan.json new file mode 100644 index 00000000..f6e798b4 --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/avg_quantile__1m_1hz_10s.victoriametrics.with-substitutes.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"latency"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"retention_ms":60000},{"id":1,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":60,"nanos":0},"kind":"range","child":0}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":2,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.9}],"output_names":[""],"filters":[],"having":null,"child":1}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":3,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"avg","col":null}],"output_names":[""],"filters":[],"having":null,"child":2}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"avg","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":2,"consumer":3,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[3],"scalar_roots":[]},"query_texts":["avg by (job) (quantile_over_time(0.9, latency[1m]))"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/count__1m_1hz_10s.victoriametrics.equivalent-only.plan.json b/system-bench/tests/fixtures/plans/public/count__1m_1hz_10s.victoriametrics.equivalent-only.plan.json new file mode 100644 index 00000000..19c98e87 --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/count__1m_1hz_10s.victoriametrics.equivalent-only.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"latency"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"retention_ms":60000},{"id":1,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":60,"nanos":0},"kind":"range","child":0}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":2,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"count"}],"output_names":[""],"filters":[],"having":null,"child":1}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":3,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"sum","col":null}],"output_names":[""],"filters":[],"having":null,"child":2}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":2,"consumer":3,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[3],"scalar_roots":[]},"query_texts":["sum by (job) (count_over_time(latency[1m]))"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/count__1m_1hz_10s.victoriametrics.with-substitutes.plan.json b/system-bench/tests/fixtures/plans/public/count__1m_1hz_10s.victoriametrics.with-substitutes.plan.json new file mode 100644 index 00000000..19c98e87 --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/count__1m_1hz_10s.victoriametrics.with-substitutes.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"latency"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"retention_ms":60000},{"id":1,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":60,"nanos":0},"kind":"range","child":0}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":2,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"count"}],"output_names":[""],"filters":[],"having":null,"child":1}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":3,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"sum","col":null}],"output_names":[""],"filters":[],"having":null,"child":2}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":2,"consumer":3,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[3],"scalar_roots":[]},"query_texts":["sum by (job) (count_over_time(latency[1m]))"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/count_distinct__5m__10hz__60s.victoriametrics.with-substitutes.plan.json b/system-bench/tests/fixtures/plans/public/count_distinct__5m__10hz__60s.victoriametrics.with-substitutes.plan.json new file mode 100644 index 00000000..83a5c324 --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/count_distinct__5m__10hz__60s.victoriametrics.with-substitutes.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"latency"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"instance","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"ingestion_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"instance","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":1,"payload":{"ASAP":{"SummaryTumblingWindowChain":{"child":0,"summary_type":{"ExactAggregate":["Count","Count"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null,"tumbling_window_width_ms":60000}}},"output_state":{"timing":"ingestion_time","primitive":"SummaryState"},"lifetime":{"AcrossEvaluations":"Memory"},"output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Count","Count"]},"nullable":false},{"name":"instance","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"retention_ms":300000,"view_coverage":{"definition_id":"1e3ece2f51fd20ccf7803f74a09850fc","selection":[{"columns":[]}]}},{"id":2,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":300,"nanos":0},"kind":"range","child":1}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Count","Count"]},"nullable":false},{"name":"instance","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true}},{"id":3,"payload":{"ASAP":{"SummaryMerge":{"children":[2]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Count","Count"]},"nullable":false},{"name":"instance","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":4,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":3}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"instance","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":5,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"count"}],"output_names":[""],"filters":[],"having":null,"child":4}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"instance","dtype":{"Plain":"utf8"},"nullable":true},{"name":"count","dtype":{"Plain":"int64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":6,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[]},"measures":[{"kind":"count"}],"output_names":[""],"filters":[],"having":null,"child":5}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"count","dtype":{"Plain":"int64"},"nullable":false}],"time_index":null,"unique_keys":[],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"instance","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Count","Count"]},"nullable":false},{"name":"instance","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":2,"consumer":3,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Count","Count"]},"nullable":false},{"name":"instance","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":3,"consumer":4,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Count","Count"]},"nullable":false},{"name":"instance","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":4,"consumer":5,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"instance","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":5,"consumer":6,"role":"Input","intermediate_schema":{"fields":[{"name":"instance","dtype":{"Plain":"utf8"},"nullable":true},{"name":"count","dtype":{"Plain":"int64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[6],"scalar_roots":[]},"query_texts":["count(count by (instance) (count_over_time(latency[5m])))"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/count_distinct__5m__1hz__300s.victoriametrics.equivalent-only.plan.json b/system-bench/tests/fixtures/plans/public/count_distinct__5m__1hz__300s.victoriametrics.equivalent-only.plan.json new file mode 100644 index 00000000..50ea35ba --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/count_distinct__5m__1hz__300s.victoriametrics.equivalent-only.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"latency"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"instance","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"instance","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"retention_ms":300000},{"id":1,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":300,"nanos":0},"kind":"range","child":0}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"instance","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":2,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"count"}],"output_names":[""],"filters":[],"having":null,"child":1}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"instance","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":3,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"count"}],"output_names":[""],"filters":[],"having":null,"child":2}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"instance","dtype":{"Plain":"utf8"},"nullable":true},{"name":"count","dtype":{"Plain":"int64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":4,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[]},"measures":[{"kind":"count"}],"output_names":[""],"filters":[],"having":null,"child":3}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"count","dtype":{"Plain":"int64"},"nullable":false}],"time_index":null,"unique_keys":[],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"instance","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"instance","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":2,"consumer":3,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"instance","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":3,"consumer":4,"role":"Input","intermediate_schema":{"fields":[{"name":"instance","dtype":{"Plain":"utf8"},"nullable":true},{"name":"count","dtype":{"Plain":"int64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[4],"scalar_roots":[]},"query_texts":["count(count by (instance) (count_over_time(latency[5m])))"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/joint__1m_1hz_10s.victoriametrics.with-substitutes.plan.json b/system-bench/tests/fixtures/plans/public/joint__1m_1hz_10s.victoriametrics.with-substitutes.plan.json new file mode 100644 index 00000000..3330eab1 --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/joint__1m_1hz_10s.victoriametrics.with-substitutes.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"latency"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"retention_ms":60000},{"id":1,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":60,"nanos":0},"kind":"range","child":0}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":2,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"max","col":null}],"output_names":[""],"filters":[],"having":null,"child":1}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":3,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.5}],"output_names":[""],"filters":[],"having":null,"child":1}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":4,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.99}],"output_names":[""],"filters":[],"having":null,"child":1}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":5,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"latency"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"retention_ms":60000},{"id":6,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":60,"nanos":0},"kind":"range","child":5}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":7,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.9}],"output_names":[""],"filters":[],"having":null,"child":6}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":8,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"avg","col":null}],"output_names":[""],"filters":[],"having":null,"child":7}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"avg","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":9,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"requests_total"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"retention_ms":60000},{"id":10,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":60,"nanos":0},"kind":"range","child":9}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":11,"payload":{"ASAP":{"SummaryAgg":{"child":10,"summary_type":{"ExactAggregate":["Rate","Rate"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Rate","Rate"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":12,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":11}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":13,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"sum","col":null}],"output_names":[""],"filters":[],"having":null,"child":12}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":3,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":4,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":5,"consumer":6,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":6,"consumer":7,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":7,"consumer":8,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":9,"consumer":10,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":10,"consumer":11,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":11,"consumer":12,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Rate","Rate"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":12,"consumer":13,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[4,3,8,2,13],"scalar_roots":[]},"query_texts":["quantile_over_time(0.99, latency[1m])","quantile_over_time(0.5, latency[1m])","avg by (job) (quantile_over_time(0.9, latency[1m]))","max_over_time(latency[1m])","sum by (job) (rate(requests_total[1m]))"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/max__1m_1hz_10s.victoriametrics.equivalent-only.plan.json b/system-bench/tests/fixtures/plans/public/max__1m_1hz_10s.victoriametrics.equivalent-only.plan.json new file mode 100644 index 00000000..428ad443 --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/max__1m_1hz_10s.victoriametrics.equivalent-only.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"latency"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"retention_ms":60000},{"id":1,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":60,"nanos":0},"kind":"range","child":0}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":2,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"max","col":null}],"output_names":[""],"filters":[],"having":null,"child":1}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[2],"scalar_roots":[]},"query_texts":["max_over_time(latency[1m])"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/max__1m_1hz_10s.victoriametrics.with-substitutes.plan.json b/system-bench/tests/fixtures/plans/public/max__1m_1hz_10s.victoriametrics.with-substitutes.plan.json new file mode 100644 index 00000000..428ad443 --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/max__1m_1hz_10s.victoriametrics.with-substitutes.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"latency"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"retention_ms":60000},{"id":1,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":60,"nanos":0},"kind":"range","child":0}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":2,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"max","col":null}],"output_names":[""],"filters":[],"having":null,"child":1}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[2],"scalar_roots":[]},"query_texts":["max_over_time(latency[1m])"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/mixed-04.victoriametrics.with-substitutes.plan.json b/system-bench/tests/fixtures/plans/public/mixed-04.victoriametrics.with-substitutes.plan.json new file mode 100644 index 00000000..c80f7072 --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/mixed-04.victoriametrics.with-substitutes.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data_total"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"retention_ms":600000},{"id":1,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":600,"nanos":0},"kind":"range","child":0}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":2,"payload":{"ASAP":{"SummaryAgg":{"child":1,"summary_type":{"ExactAggregate":["Increase","Increase"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Increase","Increase"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":3,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":2}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":4,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2,3]},"measures":[{"kind":"top_k","k":4}],"output_names":[""],"filters":[],"having":null,"child":3}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"topk_4","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,3]],"closed":true}},{"id":5,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"retention_ms":100000},{"id":6,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":100,"nanos":0},"kind":"range","child":5}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":7,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.75}],"output_names":[""],"filters":[],"having":null,"child":6}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":8,"payload":{"ASAP":{"SummaryAgg":{"child":7,"summary_type":{"ExactAggregate":["Count","Count"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":{"Reduce":[2,3]},"filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Count","Count"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":9,"payload":{"ASAP":{"SummaryMerge":{"children":[8],"group_by":[0]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Count","Count"]},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":10,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":9}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"count","dtype":{"Plain":"int64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":11,"payload":{"NonASAP":{"Project":{"cols":[{"alias":null,"expr":{"Column":0}},{"alias":null,"expr":{"Cast":{"expr":{"Column":1},"to":"float64","try_cast":false}}}],"child":10}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"col_1","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":12,"payload":{"ASAP":{"SummaryAgg":{"child":7,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":{"Reduce":[2,3]},"filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":13,"payload":{"ASAP":{"SummaryMerge":{"children":[12],"group_by":[0]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":14,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":13}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":15,"payload":{"NonASAP":{"BinaryOp":{"operator":{"checked_relative_division":false,"checked_finite_division":true,"kind":{"Arithmetic":"Div"},"vector_match":null},"return_bool":false,"lhs":14,"rhs":11}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":16,"payload":{"NonASAP":{"Project":{"cols":[{"alias":"region","expr":{"Column":0}},{"alias":"avg","expr":{"Column":1}}],"child":15}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"avg","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":17,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2,3]},"measures":[{"kind":"avg","col":null}],"output_names":[""],"filters":[],"having":null,"child":7}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"avg","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":18,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"retention_ms":100000},{"id":19,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":100,"nanos":0},"kind":"range","child":18}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":20,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.95}],"output_names":[""],"filters":[],"having":null,"child":19}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":21,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"avg","col":null}],"output_names":[""],"filters":[],"having":null,"child":20}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"avg","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":22,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data_total"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"retention_ms":1200000},{"id":23,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":1200,"nanos":0},"kind":"range","child":22}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":24,"payload":{"ASAP":{"SummaryAgg":{"child":23,"summary_type":{"ExactAggregate":["Rate","Rate"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Rate","Rate"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":25,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":24}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":26,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"top_k","k":8}],"output_names":[""],"filters":[],"having":null,"child":25}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"topk_8","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":null,"unique_keys":[[0,2]],"closed":true}},{"id":27,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}}}},"output_state":{"timing":"ingestion_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}},{"id":28,"payload":{"ASAP":{"SummaryTumblingWindowChain":{"child":27,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null,"tumbling_window_width_ms":10000}}},"output_state":{"timing":"ingestion_time","primitive":"SummaryState"},"lifetime":{"AcrossEvaluations":"Memory"},"output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4,5]],"closed":true},"retention_ms":600000,"view_coverage":{"definition_id":"3e8cbc23d2b7af6c113192779dd75033","selection":[{"columns":[]}]}},{"id":29,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":600,"nanos":0},"kind":"range","child":28}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4,5]],"closed":true}},{"id":30,"payload":{"ASAP":{"SummaryMerge":{"children":[29]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}},{"id":31,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":30}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}},{"id":32,"payload":{"ASAP":{"SummaryAgg":{"child":31,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":{"Reduce":[2,3,4]},"filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true}},{"id":33,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":32}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true}},{"id":34,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[1,2]},"measures":[{"kind":"sum","col":3}],"output_names":["sum"],"filters":[],"having":null,"child":33}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":35,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}}}},"output_state":{"timing":"ingestion_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":36,"payload":{"ASAP":{"SummaryTumblingWindowChain":{"child":35,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null,"tumbling_window_width_ms":2000}}},"output_state":{"timing":"ingestion_time","primitive":"SummaryState"},"lifetime":{"AcrossEvaluations":"Memory"},"output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true},"retention_ms":60000,"view_coverage":{"definition_id":"737bd2639b32e82ad72d50f3142d811e","selection":[{"columns":[]}]}},{"id":37,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":60,"nanos":0},"kind":"range","child":36}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true}},{"id":38,"payload":{"ASAP":{"SummaryMerge":{"children":[37]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":39,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":38}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":40,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2,3]},"measures":[{"kind":"top_k","k":4}],"output_names":[""],"filters":[],"having":null,"child":39}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"topk_4","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,3]],"closed":true}},{"id":41,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"ingestion_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":42,"payload":{"ASAP":{"SummaryTumblingWindowChain":{"child":41,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null,"tumbling_window_width_ms":30000}}},"output_state":{"timing":"ingestion_time","primitive":"SummaryState"},"lifetime":{"AcrossEvaluations":"Memory"},"output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"retention_ms":1200000,"view_coverage":{"definition_id":"1611b2643b6eba55650a82406af0a489","selection":[{"columns":[]}]}},{"id":43,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":1200,"nanos":0},"kind":"range","child":42}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true}},{"id":44,"payload":{"ASAP":{"SummaryMerge":{"children":[43]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":45,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":44}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":46,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"top_k","k":4}],"output_names":[""],"filters":[],"having":null,"child":45}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"topk_4","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":null,"unique_keys":[[0,2]],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":2,"consumer":3,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Increase","Increase"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":3,"consumer":4,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":5,"consumer":6,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":6,"consumer":7,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":7,"consumer":8,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":8,"consumer":9,"role":"Input","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Count","Count"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":9,"consumer":10,"role":"Input","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Count","Count"]},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":10,"consumer":11,"role":"Input","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"count","dtype":{"Plain":"int64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":7,"consumer":12,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":12,"consumer":13,"role":"Input","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":13,"consumer":14,"role":"Input","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":14,"consumer":15,"role":"Left","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":11,"consumer":15,"role":"Right","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"col_1","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":15,"consumer":16,"role":"Input","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":7,"consumer":17,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":18,"consumer":19,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":19,"consumer":20,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":20,"consumer":21,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":22,"consumer":23,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":23,"consumer":24,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":24,"consumer":25,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Rate","Rate"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":25,"consumer":26,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":27,"consumer":28,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":28,"consumer":29,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4,5]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":29,"consumer":30,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4,5]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":30,"consumer":31,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":31,"consumer":32,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":32,"consumer":33,"role":"Input","intermediate_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":33,"consumer":34,"role":"Input","intermediate_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":35,"consumer":36,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":36,"consumer":37,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":37,"consumer":38,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":38,"consumer":39,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":39,"consumer":40,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":41,"consumer":42,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":42,"consumer":43,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":43,"consumer":44,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":44,"consumer":45,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":45,"consumer":46,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[33,34,16,17,21,40,46,4,26],"scalar_roots":[]},"query_texts":["sum by (region, service, job) (sum_over_time(data[10m]))","sum by (region, service) (sum_over_time(data[10m]))","avg by (region) (quantile_over_time(0.75, data[100s]))","avg by (region, service) (quantile_over_time(0.75, data[100s]))","avg by (region) (quantile_over_time(0.95, data[100s]))","topk by (region, service) (4, sum_over_time(data[1m]))","topk by (region) (4, sum_over_time(data[20m]))","topk by (region, service) (4, increase(data_total[10m]))","topk by (region) (8, rate(data_total[20m]))"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/mixed-06.victoriametrics.with-substitutes.plan.json b/system-bench/tests/fixtures/plans/public/mixed-06.victoriametrics.with-substitutes.plan.json new file mode 100644 index 00000000..e1e383b6 --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/mixed-06.victoriametrics.with-substitutes.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data_total"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"retention_ms":1200000},{"id":1,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":300,"nanos":0},"kind":"range","child":0}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":2,"payload":{"ASAP":{"SummaryAgg":{"child":1,"summary_type":{"ExactAggregate":["Increase","Increase"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Increase","Increase"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":3,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":2}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":4,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2,3]},"measures":[{"kind":"top_k","k":8}],"output_names":[""],"filters":[],"having":null,"child":3}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"topk_8","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,3]],"closed":true}},{"id":5,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"retention_ms":100000},{"id":6,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":100,"nanos":0},"kind":"range","child":5}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}},{"id":7,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.5}],"output_names":[""],"filters":[],"having":null,"child":6}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}},{"id":8,"payload":{"ASAP":{"SummaryAgg":{"child":7,"summary_type":{"ExactAggregate":["Count","Count"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":{"Reduce":[2,3,4]},"filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Count","Count"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true}},{"id":9,"payload":{"ASAP":{"SummaryMerge":{"children":[8],"group_by":[1,2]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Count","Count"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":10,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":9}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"count","dtype":{"Plain":"int64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":11,"payload":{"NonASAP":{"Project":{"cols":[{"alias":null,"expr":{"Column":0}},{"alias":null,"expr":{"Column":1}},{"alias":null,"expr":{"Cast":{"expr":{"Column":2},"to":"float64","try_cast":false}}}],"child":10}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"col_2","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":12,"payload":{"ASAP":{"SummaryAgg":{"child":7,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":{"Reduce":[2,3,4]},"filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true}},{"id":13,"payload":{"ASAP":{"SummaryMerge":{"children":[12],"group_by":[1,2]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":14,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":13}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":15,"payload":{"NonASAP":{"BinaryOp":{"operator":{"checked_relative_division":false,"checked_finite_division":true,"kind":{"Arithmetic":"Div"},"vector_match":null},"return_bool":false,"lhs":14,"rhs":11}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":16,"payload":{"NonASAP":{"Project":{"cols":[{"alias":"region","expr":{"Column":0}},{"alias":"service","expr":{"Column":1}},{"alias":"avg","expr":{"Column":2}}],"child":15}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"avg","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":17,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2,3,4]},"measures":[{"kind":"avg","col":null}],"output_names":[""],"filters":[],"having":null,"child":7}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"avg","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true}},{"id":18,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"retention_ms":100000},{"id":19,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":100,"nanos":0},"kind":"range","child":18}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":20,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.9}],"output_names":[""],"filters":[],"having":null,"child":19}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":21,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"avg","col":null}],"output_names":[""],"filters":[],"having":null,"child":20}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"avg","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":22,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data_total"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"retention_ms":1200000},{"id":23,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":1200,"nanos":0},"kind":"range","child":22}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":24,"payload":{"ASAP":{"SummaryAgg":{"child":23,"summary_type":{"ExactAggregate":["Rate","Rate"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Rate","Rate"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":25,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":24}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":26,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2,3]},"measures":[{"kind":"top_k","k":4}],"output_names":[""],"filters":[],"having":null,"child":25}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"topk_4","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,3]],"closed":true}},{"id":27,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}}}},"output_state":{"timing":"ingestion_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}},{"id":28,"payload":{"ASAP":{"SummaryTumblingWindowChain":{"child":27,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null,"tumbling_window_width_ms":5000}}},"output_state":{"timing":"ingestion_time","primitive":"SummaryState"},"lifetime":{"AcrossEvaluations":"Memory"},"output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4,5]],"closed":true},"retention_ms":300000,"view_coverage":{"definition_id":"3e8cbc23d2b7af6c113192779dd75033","selection":[{"columns":[]}]}},{"id":29,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":300,"nanos":0},"kind":"range","child":28}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4,5]],"closed":true}},{"id":30,"payload":{"ASAP":{"SummaryMerge":{"children":[29]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}},{"id":31,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":30}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}},{"id":32,"payload":{"ASAP":{"SummaryAgg":{"child":31,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":{"Reduce":[2,3,4]},"filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true}},{"id":33,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":32}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true}},{"id":34,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[1,2]},"measures":[{"kind":"sum","col":3}],"output_names":["sum"],"filters":[],"having":null,"child":33}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":35,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}}}},"output_state":{"timing":"ingestion_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":36,"payload":{"ASAP":{"SummaryTumblingWindowChain":{"child":35,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null,"tumbling_window_width_ms":2000}}},"output_state":{"timing":"ingestion_time","primitive":"SummaryState"},"lifetime":{"AcrossEvaluations":"Memory"},"output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true},"retention_ms":60000,"view_coverage":{"definition_id":"737bd2639b32e82ad72d50f3142d811e","selection":[{"columns":[]}]}},{"id":37,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":60,"nanos":0},"kind":"range","child":36}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true}},{"id":38,"payload":{"ASAP":{"SummaryMerge":{"children":[37]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":39,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":38}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":40,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2,3]},"measures":[{"kind":"top_k","k":4}],"output_names":[""],"filters":[],"having":null,"child":39}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"topk_4","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,3]],"closed":true}},{"id":41,"payload":{"ASAP":{"SummaryTumblingWindowChain":{"child":35,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null,"tumbling_window_width_ms":60000}}},"output_state":{"timing":"ingestion_time","primitive":"SummaryState"},"lifetime":{"AcrossEvaluations":"Memory"},"output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true},"retention_ms":1200000,"view_coverage":{"definition_id":"737bd2639b32e82ad72d50f3142d811e","selection":[{"columns":[]}]}},{"id":42,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":1200,"nanos":0},"kind":"range","child":41}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true}},{"id":43,"payload":{"ASAP":{"SummaryMerge":{"children":[42]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":44,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":43}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":45,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2,3]},"measures":[{"kind":"top_k","k":8}],"output_names":[""],"filters":[],"having":null,"child":44}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"topk_8","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,3]],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":2,"consumer":3,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Increase","Increase"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":3,"consumer":4,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":5,"consumer":6,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":6,"consumer":7,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":7,"consumer":8,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":8,"consumer":9,"role":"Input","intermediate_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Count","Count"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":9,"consumer":10,"role":"Input","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Count","Count"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":10,"consumer":11,"role":"Input","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"count","dtype":{"Plain":"int64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":7,"consumer":12,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":12,"consumer":13,"role":"Input","intermediate_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":13,"consumer":14,"role":"Input","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":14,"consumer":15,"role":"Left","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":11,"consumer":15,"role":"Right","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"col_2","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":15,"consumer":16,"role":"Input","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":7,"consumer":17,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":18,"consumer":19,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":19,"consumer":20,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":20,"consumer":21,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":22,"consumer":23,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":23,"consumer":24,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":24,"consumer":25,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Rate","Rate"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":25,"consumer":26,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":27,"consumer":28,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":28,"consumer":29,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4,5]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":29,"consumer":30,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4,5]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":30,"consumer":31,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":31,"consumer":32,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":32,"consumer":33,"role":"Input","intermediate_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":33,"consumer":34,"role":"Input","intermediate_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":35,"consumer":36,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":36,"consumer":37,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":37,"consumer":38,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":38,"consumer":39,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":39,"consumer":40,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":35,"consumer":41,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":41,"consumer":42,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":42,"consumer":43,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":43,"consumer":44,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":44,"consumer":45,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[33,34,17,16,21,40,45,4,26],"scalar_roots":[]},"query_texts":["sum by (region, service, job) (sum_over_time(data[5m]))","sum by (region, service) (sum_over_time(data[5m]))","avg by (region, service, job) (quantile_over_time(0.50, data[100s]))","avg by (region, service) (quantile_over_time(0.50, data[100s]))","avg by (region) (quantile_over_time(0.90, data[100s]))","topk by (region, service) (4, sum_over_time(data[1m]))","topk by (region, service) (8, sum_over_time(data[20m]))","topk by (region, service) (8, increase(data_total[5m]))","topk by (region, service) (4, rate(data_total[20m]))"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/mixed-08.victoriametrics.with-substitutes.plan.json b/system-bench/tests/fixtures/plans/public/mixed-08.victoriametrics.with-substitutes.plan.json new file mode 100644 index 00000000..cf1e3681 --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/mixed-08.victoriametrics.with-substitutes.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data_total"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"retention_ms":1200000},{"id":1,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":300,"nanos":0},"kind":"range","child":0}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":2,"payload":{"ASAP":{"SummaryAgg":{"child":1,"summary_type":{"ExactAggregate":["Increase","Increase"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Increase","Increase"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":3,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":2}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":4,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"top_k","k":8}],"output_names":[""],"filters":[],"having":null,"child":3}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"topk_8","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":null,"unique_keys":[[0,2]],"closed":true}},{"id":5,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"retention_ms":100000},{"id":6,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":100,"nanos":0},"kind":"range","child":5}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":7,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.95}],"output_names":[""],"filters":[],"having":null,"child":6}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":8,"payload":{"ASAP":{"SummaryAgg":{"child":7,"summary_type":{"ExactAggregate":["Count","Count"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":{"Reduce":[2,3]},"filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Count","Count"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":9,"payload":{"ASAP":{"SummaryMerge":{"children":[8],"group_by":[0]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Count","Count"]},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":10,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":9}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"count","dtype":{"Plain":"int64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":11,"payload":{"NonASAP":{"Project":{"cols":[{"alias":null,"expr":{"Column":0}},{"alias":null,"expr":{"Cast":{"expr":{"Column":1},"to":"float64","try_cast":false}}}],"child":10}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"col_1","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":12,"payload":{"ASAP":{"SummaryAgg":{"child":7,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":{"Reduce":[2,3]},"filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":13,"payload":{"ASAP":{"SummaryMerge":{"children":[12],"group_by":[0]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":14,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":13}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":15,"payload":{"NonASAP":{"BinaryOp":{"operator":{"checked_relative_division":false,"checked_finite_division":true,"kind":{"Arithmetic":"Div"},"vector_match":null},"return_bool":false,"lhs":14,"rhs":11}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":16,"payload":{"NonASAP":{"Project":{"cols":[{"alias":"region","expr":{"Column":0}},{"alias":"avg","expr":{"Column":1}}],"child":15}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"avg","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":17,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2,3]},"measures":[{"kind":"avg","col":null}],"output_names":[""],"filters":[],"having":null,"child":7}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"avg","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":18,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.75}],"output_names":[""],"filters":[],"having":null,"child":6}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":19,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2,3]},"measures":[{"kind":"avg","col":null}],"output_names":[""],"filters":[],"having":null,"child":18}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"avg","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":20,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data_total"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"retention_ms":1200000},{"id":21,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":1200,"nanos":0},"kind":"range","child":20}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":22,"payload":{"ASAP":{"SummaryAgg":{"child":21,"summary_type":{"ExactAggregate":["Rate","Rate"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Rate","Rate"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":23,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":22}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":24,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"top_k","k":4}],"output_names":[""],"filters":[],"having":null,"child":23}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"topk_4","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":null,"unique_keys":[[0,2]],"closed":true}},{"id":25,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}}}},"output_state":{"timing":"ingestion_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}},{"id":26,"payload":{"ASAP":{"SummaryTumblingWindowChain":{"child":25,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null,"tumbling_window_width_ms":10000}}},"output_state":{"timing":"ingestion_time","primitive":"SummaryState"},"lifetime":{"AcrossEvaluations":"Memory"},"output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4,5]],"closed":true},"retention_ms":300000,"view_coverage":{"definition_id":"3e8cbc23d2b7af6c113192779dd75033","selection":[{"columns":[]}]}},{"id":27,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":300,"nanos":0},"kind":"range","child":26}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4,5]],"closed":true}},{"id":28,"payload":{"ASAP":{"SummaryMerge":{"children":[27]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}},{"id":29,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":28}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}},{"id":30,"payload":{"ASAP":{"SummaryAgg":{"child":29,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":{"Reduce":[2,3,4]},"filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true}},{"id":31,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":30}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true}},{"id":32,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[1,2]},"measures":[{"kind":"sum","col":3}],"output_names":["sum"],"filters":[],"having":null,"child":31}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":33,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"ingestion_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":34,"payload":{"ASAP":{"SummaryTumblingWindowChain":{"child":33,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null,"tumbling_window_width_ms":1000}}},"output_state":{"timing":"ingestion_time","primitive":"SummaryState"},"lifetime":{"AcrossEvaluations":"Memory"},"output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"retention_ms":60000,"view_coverage":{"definition_id":"1611b2643b6eba55650a82406af0a489","selection":[{"columns":[]}]}},{"id":35,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":60,"nanos":0},"kind":"range","child":34}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true}},{"id":36,"payload":{"ASAP":{"SummaryMerge":{"children":[35]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":37,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":36}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":38,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"top_k","k":4}],"output_names":[""],"filters":[],"having":null,"child":37}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"topk_4","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":null,"unique_keys":[[0,2]],"closed":true}},{"id":39,"payload":{"ASAP":{"SummaryTumblingWindowChain":{"child":33,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null,"tumbling_window_width_ms":30000}}},"output_state":{"timing":"ingestion_time","primitive":"SummaryState"},"lifetime":{"AcrossEvaluations":"Memory"},"output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"retention_ms":1200000,"view_coverage":{"definition_id":"1611b2643b6eba55650a82406af0a489","selection":[{"columns":[]}]}},{"id":40,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":1200,"nanos":0},"kind":"range","child":39}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true}},{"id":41,"payload":{"ASAP":{"SummaryMerge":{"children":[40]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":42,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":41}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":43,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"top_k","k":4}],"output_names":[""],"filters":[],"having":null,"child":42}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"topk_4","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":null,"unique_keys":[[0,2]],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":2,"consumer":3,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Increase","Increase"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":3,"consumer":4,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":5,"consumer":6,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":6,"consumer":7,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":7,"consumer":8,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":8,"consumer":9,"role":"Input","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Count","Count"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":9,"consumer":10,"role":"Input","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Count","Count"]},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":10,"consumer":11,"role":"Input","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"count","dtype":{"Plain":"int64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":7,"consumer":12,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":12,"consumer":13,"role":"Input","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":13,"consumer":14,"role":"Input","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":14,"consumer":15,"role":"Left","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":11,"consumer":15,"role":"Right","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"col_1","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":15,"consumer":16,"role":"Input","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":7,"consumer":17,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":6,"consumer":18,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":18,"consumer":19,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":20,"consumer":21,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":21,"consumer":22,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":22,"consumer":23,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Rate","Rate"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":23,"consumer":24,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":25,"consumer":26,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":26,"consumer":27,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4,5]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":27,"consumer":28,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4,5]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":28,"consumer":29,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":29,"consumer":30,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":30,"consumer":31,"role":"Input","intermediate_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":31,"consumer":32,"role":"Input","intermediate_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":33,"consumer":34,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":34,"consumer":35,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":35,"consumer":36,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":36,"consumer":37,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":37,"consumer":38,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":33,"consumer":39,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":39,"consumer":40,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":40,"consumer":41,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":41,"consumer":42,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":42,"consumer":43,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[31,32,19,17,16,38,43,4,24],"scalar_roots":[]},"query_texts":["sum by (region, service, job) (sum_over_time(data[5m]))","sum by (region, service) (sum_over_time(data[5m]))","avg by (region, service) (quantile_over_time(0.75, data[100s]))","avg by (region, service) (quantile_over_time(0.95, data[100s]))","avg by (region) (quantile_over_time(0.95, data[100s]))","topk by (region) (4, sum_over_time(data[1m]))","topk by (region) (4, sum_over_time(data[20m]))","topk by (region) (8, increase(data_total[5m]))","topk by (region) (4, rate(data_total[20m]))"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/mixed-09.victoriametrics.with-substitutes.plan.json b/system-bench/tests/fixtures/plans/public/mixed-09.victoriametrics.with-substitutes.plan.json new file mode 100644 index 00000000..3cd3398b --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/mixed-09.victoriametrics.with-substitutes.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data_total"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"retention_ms":60000},{"id":1,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":60,"nanos":0},"kind":"range","child":0}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":2,"payload":{"ASAP":{"SummaryAgg":{"child":1,"summary_type":{"ExactAggregate":["Increase","Increase"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Increase","Increase"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":3,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":2}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":4,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"top_k","k":4}],"output_names":[""],"filters":[],"having":null,"child":3}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"topk_4","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":null,"unique_keys":[[0,2]],"closed":true}},{"id":5,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"retention_ms":100000},{"id":6,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":100,"nanos":0},"kind":"range","child":5}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}},{"id":7,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.95}],"output_names":[""],"filters":[],"having":null,"child":6}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}},{"id":8,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2,3,4]},"measures":[{"kind":"avg","col":null}],"output_names":[""],"filters":[],"having":null,"child":7}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"avg","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true}},{"id":9,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.75}],"output_names":[""],"filters":[],"having":null,"child":6}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}},{"id":10,"payload":{"ASAP":{"SummaryAgg":{"child":9,"summary_type":{"ExactAggregate":["Count","Count"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":{"Reduce":[2,3,4]},"filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Count","Count"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true}},{"id":11,"payload":{"ASAP":{"SummaryMerge":{"children":[10],"group_by":[1,2]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Count","Count"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":12,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":11}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"count","dtype":{"Plain":"int64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":13,"payload":{"NonASAP":{"Project":{"cols":[{"alias":null,"expr":{"Column":0}},{"alias":null,"expr":{"Column":1}},{"alias":null,"expr":{"Cast":{"expr":{"Column":2},"to":"float64","try_cast":false}}}],"child":12}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"col_2","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":14,"payload":{"ASAP":{"SummaryAgg":{"child":9,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":{"Reduce":[2,3,4]},"filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true}},{"id":15,"payload":{"ASAP":{"SummaryMerge":{"children":[14],"group_by":[1,2]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":16,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":15}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":17,"payload":{"NonASAP":{"BinaryOp":{"operator":{"checked_relative_division":false,"checked_finite_division":true,"kind":{"Arithmetic":"Div"},"vector_match":null},"return_bool":false,"lhs":16,"rhs":13}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":18,"payload":{"NonASAP":{"Project":{"cols":[{"alias":"region","expr":{"Column":0}},{"alias":"service","expr":{"Column":1}},{"alias":"avg","expr":{"Column":2}}],"child":17}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"avg","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":19,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2,3,4]},"measures":[{"kind":"avg","col":null}],"output_names":[""],"filters":[],"having":null,"child":9}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"avg","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true}},{"id":20,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data_total"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"retention_ms":1200000},{"id":21,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":1200,"nanos":0},"kind":"range","child":20}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":22,"payload":{"ASAP":{"SummaryAgg":{"child":21,"summary_type":{"ExactAggregate":["Rate","Rate"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Rate","Rate"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":23,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":22}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":24,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2,3]},"measures":[{"kind":"top_k","k":4}],"output_names":[""],"filters":[],"having":null,"child":23}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"topk_4","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,3]],"closed":true}},{"id":25,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}}}},"output_state":{"timing":"ingestion_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}},{"id":26,"payload":{"ASAP":{"SummaryTumblingWindowChain":{"child":25,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null,"tumbling_window_width_ms":2000}}},"output_state":{"timing":"ingestion_time","primitive":"SummaryState"},"lifetime":{"AcrossEvaluations":"Memory"},"output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4,5]],"closed":true},"retention_ms":60000,"view_coverage":{"definition_id":"3e8cbc23d2b7af6c113192779dd75033","selection":[{"columns":[]}]}},{"id":27,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":60,"nanos":0},"kind":"range","child":26}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4,5]],"closed":true}},{"id":28,"payload":{"ASAP":{"SummaryMerge":{"children":[27]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}},{"id":29,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":28}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}},{"id":30,"payload":{"ASAP":{"SummaryAgg":{"child":29,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":{"Reduce":[2,3,4]},"filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true}},{"id":31,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":30}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true}},{"id":32,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[1,2]},"measures":[{"kind":"sum","col":3}],"output_names":["sum"],"filters":[],"having":null,"child":31}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":33,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}}}},"output_state":{"timing":"ingestion_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":34,"payload":{"ASAP":{"SummaryTumblingWindowChain":{"child":33,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null,"tumbling_window_width_ms":1000}}},"output_state":{"timing":"ingestion_time","primitive":"SummaryState"},"lifetime":{"AcrossEvaluations":"Memory"},"output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true},"retention_ms":60000,"view_coverage":{"definition_id":"737bd2639b32e82ad72d50f3142d811e","selection":[{"columns":[]}]}},{"id":35,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":60,"nanos":0},"kind":"range","child":34}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true}},{"id":36,"payload":{"ASAP":{"SummaryMerge":{"children":[35]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":37,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":36}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":38,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2,3]},"measures":[{"kind":"top_k","k":8}],"output_names":[""],"filters":[],"having":null,"child":37}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"topk_8","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,3]],"closed":true}},{"id":39,"payload":{"ASAP":{"SummaryTumblingWindowChain":{"child":33,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null,"tumbling_window_width_ms":30000}}},"output_state":{"timing":"ingestion_time","primitive":"SummaryState"},"lifetime":{"AcrossEvaluations":"Memory"},"output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true},"retention_ms":1200000,"view_coverage":{"definition_id":"737bd2639b32e82ad72d50f3142d811e","selection":[{"columns":[]}]}},{"id":40,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":1200,"nanos":0},"kind":"range","child":39}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true}},{"id":41,"payload":{"ASAP":{"SummaryMerge":{"children":[40]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":42,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":41}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":43,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2,3]},"measures":[{"kind":"top_k","k":8}],"output_names":[""],"filters":[],"having":null,"child":42}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"topk_8","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,3]],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":2,"consumer":3,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Increase","Increase"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":3,"consumer":4,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":5,"consumer":6,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":6,"consumer":7,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":7,"consumer":8,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":6,"consumer":9,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":9,"consumer":10,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":10,"consumer":11,"role":"Input","intermediate_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Count","Count"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":11,"consumer":12,"role":"Input","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Count","Count"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":12,"consumer":13,"role":"Input","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"count","dtype":{"Plain":"int64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":9,"consumer":14,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":14,"consumer":15,"role":"Input","intermediate_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":15,"consumer":16,"role":"Input","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":16,"consumer":17,"role":"Left","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":13,"consumer":17,"role":"Right","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"col_2","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":17,"consumer":18,"role":"Input","intermediate_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":9,"consumer":19,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":20,"consumer":21,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":21,"consumer":22,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":22,"consumer":23,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Rate","Rate"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":23,"consumer":24,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":25,"consumer":26,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":26,"consumer":27,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4,5]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":27,"consumer":28,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4,5]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":28,"consumer":29,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":29,"consumer":30,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":30,"consumer":31,"role":"Input","intermediate_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":31,"consumer":32,"role":"Input","intermediate_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":33,"consumer":34,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":34,"consumer":35,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":35,"consumer":36,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":36,"consumer":37,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":37,"consumer":38,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":33,"consumer":39,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":39,"consumer":40,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":40,"consumer":41,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":41,"consumer":42,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":42,"consumer":43,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[31,32,19,8,18,38,43,4,24],"scalar_roots":[]},"query_texts":["sum by (region, service, job) (sum_over_time(data[1m]))","sum by (region, service) (sum_over_time(data[1m]))","avg by (region, service, job) (quantile_over_time(0.75, data[100s]))","avg by (region, service, job) (quantile_over_time(0.95, data[100s]))","avg by (region, service) (quantile_over_time(0.75, data[100s]))","topk by (region, service) (8, sum_over_time(data[1m]))","topk by (region, service) (8, sum_over_time(data[20m]))","topk by (region) (4, increase(data_total[1m]))","topk by (region, service) (4, rate(data_total[20m]))"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/mixed-10.victoriametrics.with-substitutes.plan.json b/system-bench/tests/fixtures/plans/public/mixed-10.victoriametrics.with-substitutes.plan.json new file mode 100644 index 00000000..f12346bb --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/mixed-10.victoriametrics.with-substitutes.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data_total"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"retention_ms":1200000},{"id":1,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":600,"nanos":0},"kind":"range","child":0}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":2,"payload":{"ASAP":{"SummaryAgg":{"child":1,"summary_type":{"ExactAggregate":["Increase","Increase"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Increase","Increase"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":3,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":2}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":4,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2,3]},"measures":[{"kind":"top_k","k":8}],"output_names":[""],"filters":[],"having":null,"child":3}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"topk_8","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,3]],"closed":true}},{"id":5,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"retention_ms":100000},{"id":6,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":100,"nanos":0},"kind":"range","child":5}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":7,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.99}],"output_names":[""],"filters":[],"having":null,"child":6}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":8,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2,3]},"measures":[{"kind":"avg","col":null}],"output_names":[""],"filters":[],"having":null,"child":7}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"avg","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":9,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"retention_ms":100000},{"id":10,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":100,"nanos":0},"kind":"range","child":9}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":11,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.9}],"output_names":[""],"filters":[],"having":null,"child":10}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":12,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"avg","col":null}],"output_names":[""],"filters":[],"having":null,"child":11}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"avg","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":13,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.75}],"output_names":[""],"filters":[],"having":null,"child":10}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":14,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"avg","col":null}],"output_names":[""],"filters":[],"having":null,"child":13}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"avg","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":15,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data_total"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"retention_ms":1200000},{"id":16,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":1200,"nanos":0},"kind":"range","child":15}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":17,"payload":{"ASAP":{"SummaryAgg":{"child":16,"summary_type":{"ExactAggregate":["Rate","Rate"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Rate","Rate"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":18,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":17}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":19,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2,3]},"measures":[{"kind":"top_k","k":4}],"output_names":[""],"filters":[],"having":null,"child":18}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"topk_4","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,3]],"closed":true}},{"id":20,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}}}},"output_state":{"timing":"ingestion_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}},{"id":21,"payload":{"ASAP":{"SummaryTumblingWindowChain":{"child":20,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null,"tumbling_window_width_ms":20000}}},"output_state":{"timing":"ingestion_time","primitive":"SummaryState"},"lifetime":{"AcrossEvaluations":"Memory"},"output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4,5]],"closed":true},"retention_ms":600000,"view_coverage":{"definition_id":"3e8cbc23d2b7af6c113192779dd75033","selection":[{"columns":[]}]}},{"id":22,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":600,"nanos":0},"kind":"range","child":21}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4,5]],"closed":true}},{"id":23,"payload":{"ASAP":{"SummaryMerge":{"children":[22]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}},{"id":24,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":23}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true}},{"id":25,"payload":{"ASAP":{"SummaryAgg":{"child":24,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":{"Reduce":[2,3,4]},"filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true}},{"id":26,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":25}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true}},{"id":27,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[1,2]},"measures":[{"kind":"sum","col":3}],"output_names":["sum"],"filters":[],"having":null,"child":26}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1]],"closed":true}},{"id":28,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}}}},"output_state":{"timing":"ingestion_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":29,"payload":{"ASAP":{"SummaryTumblingWindowChain":{"child":28,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null,"tumbling_window_width_ms":60000}}},"output_state":{"timing":"ingestion_time","primitive":"SummaryState"},"lifetime":{"AcrossEvaluations":"Memory"},"output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true},"retention_ms":1200000,"view_coverage":{"definition_id":"737bd2639b32e82ad72d50f3142d811e","selection":[{"columns":[]}]}},{"id":30,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":1200,"nanos":0},"kind":"range","child":29}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true}},{"id":31,"payload":{"ASAP":{"SummaryMerge":{"children":[30]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":32,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":31}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true}},{"id":33,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2,3]},"measures":[{"kind":"top_k","k":8}],"output_names":[""],"filters":[],"having":null,"child":32}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"topk_8","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,3]],"closed":true}},{"id":34,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"ingestion_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":35,"payload":{"ASAP":{"SummaryTumblingWindowChain":{"child":34,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null,"tumbling_window_width_ms":2000}}},"output_state":{"timing":"ingestion_time","primitive":"SummaryState"},"lifetime":{"AcrossEvaluations":"Memory"},"output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"retention_ms":60000,"view_coverage":{"definition_id":"1611b2643b6eba55650a82406af0a489","selection":[{"columns":[]}]}},{"id":36,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":60,"nanos":0},"kind":"range","child":35}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true}},{"id":37,"payload":{"ASAP":{"SummaryMerge":{"children":[36]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":38,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":37}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":39,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"top_k","k":8}],"output_names":[""],"filters":[],"having":null,"child":38}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"topk_8","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":null,"unique_keys":[[0,2]],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":2,"consumer":3,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Increase","Increase"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":3,"consumer":4,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":5,"consumer":6,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":6,"consumer":7,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":7,"consumer":8,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":9,"consumer":10,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":10,"consumer":11,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":11,"consumer":12,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":10,"consumer":13,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":13,"consumer":14,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":15,"consumer":16,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":16,"consumer":17,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":17,"consumer":18,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Rate","Rate"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":18,"consumer":19,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":20,"consumer":21,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":21,"consumer":22,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4,5]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":22,"consumer":23,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4,5]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":23,"consumer":24,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":24,"consumer":25,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[5,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":25,"consumer":26,"role":"Input","intermediate_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":26,"consumer":27,"role":"Input","intermediate_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0,1,2]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":28,"consumer":29,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":29,"consumer":30,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":30,"consumer":31,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3,4]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":31,"consumer":32,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":32,"consumer":33,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"service","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[4,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":34,"consumer":35,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":35,"consumer":36,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":36,"consumer":37,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":37,"consumer":38,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":38,"consumer":39,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"region","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[26,27,8,14,12,39,33,4,19],"scalar_roots":[]},"query_texts":["sum by (region, service, job) (sum_over_time(data[10m]))","sum by (region, service) (sum_over_time(data[10m]))","avg by (region, service) (quantile_over_time(0.99, data[100s]))","avg by (region) (quantile_over_time(0.75, data[100s]))","avg by (region) (quantile_over_time(0.90, data[100s]))","topk by (region) (8, sum_over_time(data[1m]))","topk by (region, service) (8, sum_over_time(data[20m]))","topk by (region, service) (8, increase(data_total[10m]))","topk by (region, service) (4, rate(data_total[20m]))"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/quantile__1m_1hz_10s.victoriametrics.equivalent-only.plan.json b/system-bench/tests/fixtures/plans/public/quantile__1m_1hz_10s.victoriametrics.equivalent-only.plan.json new file mode 100644 index 00000000..bce5b0fa --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/quantile__1m_1hz_10s.victoriametrics.equivalent-only.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"latency"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"retention_ms":60000},{"id":1,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":60,"nanos":0},"kind":"range","child":0}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":2,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.99}],"output_names":[""],"filters":[],"having":null,"child":1}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[2],"scalar_roots":[]},"query_texts":["quantile_over_time(0.99, latency[1m])"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/quantile__1m_1hz_10s.victoriametrics.with-substitutes.plan.json b/system-bench/tests/fixtures/plans/public/quantile__1m_1hz_10s.victoriametrics.with-substitutes.plan.json new file mode 100644 index 00000000..bce5b0fa --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/quantile__1m_1hz_10s.victoriametrics.with-substitutes.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"latency"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"retention_ms":60000},{"id":1,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":60,"nanos":0},"kind":"range","child":0}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":2,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.99}],"output_names":[""],"filters":[],"having":null,"child":1}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[2],"scalar_roots":[]},"query_texts":["quantile_over_time(0.99, latency[1m])"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/quantile_rank__1m_1hz_10s.victoriametrics.equivalent-only.plan.json b/system-bench/tests/fixtures/plans/public/quantile_rank__1m_1hz_10s.victoriametrics.equivalent-only.plan.json new file mode 100644 index 00000000..bce5b0fa --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/quantile_rank__1m_1hz_10s.victoriametrics.equivalent-only.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"latency"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"retention_ms":60000},{"id":1,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":60,"nanos":0},"kind":"range","child":0}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":2,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.99}],"output_names":[""],"filters":[],"having":null,"child":1}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[2],"scalar_roots":[]},"query_texts":["quantile_over_time(0.99, latency[1m])"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/quantile_rank__1m_1hz_10s.victoriametrics.with-substitutes.plan.json b/system-bench/tests/fixtures/plans/public/quantile_rank__1m_1hz_10s.victoriametrics.with-substitutes.plan.json new file mode 100644 index 00000000..bce5b0fa --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/quantile_rank__1m_1hz_10s.victoriametrics.with-substitutes.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"latency"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"retention_ms":60000},{"id":1,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":60,"nanos":0},"kind":"range","child":0}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":2,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.99}],"output_names":[""],"filters":[],"having":null,"child":1}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[2],"scalar_roots":[]},"query_texts":["quantile_over_time(0.99, latency[1m])"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/range_heavy.victoriametrics.with-substitutes.plan.json b/system-bench/tests/fixtures/plans/public/range_heavy.victoriametrics.with-substitutes.plan.json new file mode 100644 index 00000000..5f074028 --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/range_heavy.victoriametrics.with-substitutes.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"retention_ms":1000},{"id":1,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":0,"nanos":5000000},"kind":"instant","child":0}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":2,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"quantile","col":null,"q":0.99}],"output_names":[""],"filters":[],"having":null,"child":1}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"quantile_0_99","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":3,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"quantile","col":null,"q":0.95}],"output_names":[""],"filters":[],"having":null,"child":1}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"quantile_0_95","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":4,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"quantile","col":null,"q":0.9}],"output_names":[""],"filters":[],"having":null,"child":1}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"quantile_0_9","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":5,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"quantile","col":null,"q":0.75}],"output_names":[""],"filters":[],"having":null,"child":1}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"quantile_0_75","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":6,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"quantile","col":null,"q":0.5}],"output_names":[""],"filters":[],"having":null,"child":1}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"quantile_0_5","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":7,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"sum","col":null}],"output_names":[""],"filters":[],"having":null,"child":1}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":8,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"retention_ms":86400000},{"id":9,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":86400,"nanos":0},"kind":"range","child":8}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":10,"payload":{"ASAP":{"SummaryAgg":{"child":9,"summary_type":{"ExactAggregate":["Rate","Rate"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Rate","Rate"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":11,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":10}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":12,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.99}],"output_names":[""],"filters":[],"having":null,"child":9}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":13,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.95}],"output_names":[""],"filters":[],"having":null,"child":9}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":14,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.9}],"output_names":[""],"filters":[],"having":null,"child":9}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":15,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.75}],"output_names":[""],"filters":[],"having":null,"child":9}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":16,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.5}],"output_names":[""],"filters":[],"having":null,"child":9}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":17,"payload":{"NonASAP":{"BinaryOp":{"operator":{"checked_relative_division":false,"checked_finite_division":false,"kind":{"Arithmetic":"Div"},"vector_match":null},"return_bool":false,"lhs":14,"rhs":16}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":18,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"ingestion_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":19,"payload":{"ASAP":{"SummaryTumblingWindowChain":{"child":18,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null,"tumbling_window_width_ms":60000}}},"output_state":{"timing":"ingestion_time","primitive":"SummaryState"},"lifetime":{"AcrossEvaluations":"Memory"},"output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"retention_ms":86400000,"view_coverage":{"definition_id":"732ba07106b5a1f97c0fc91e3c80c9e6","selection":[{"columns":[]}]}},{"id":20,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":86400,"nanos":0},"kind":"range","child":19}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true}},{"id":21,"payload":{"ASAP":{"SummaryMerge":{"children":[20]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":22,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":21}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":23,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"sum","col":null}],"output_names":[""],"filters":[],"having":null,"child":22}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":24,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":21600,"nanos":0},"kind":"range","child":19}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true}},{"id":25,"payload":{"ASAP":{"SummaryMerge":{"children":[24]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":26,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":25}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":27,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"sum","col":null}],"output_names":[""],"filters":[],"having":null,"child":26}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":28,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":3600,"nanos":0},"kind":"range","child":19}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true}},{"id":29,"payload":{"ASAP":{"SummaryMerge":{"children":[28]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":30,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":29}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":31,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"sum","col":null}],"output_names":[""],"filters":[],"having":null,"child":30}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":32,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":900,"nanos":0},"kind":"range","child":19}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true}},{"id":33,"payload":{"ASAP":{"SummaryMerge":{"children":[32]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":34,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":33}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":35,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"sum","col":null}],"output_names":[""],"filters":[],"having":null,"child":34}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":36,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"ingestion_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":37,"payload":{"ASAP":{"SummaryTumblingWindowChain":{"child":36,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null,"tumbling_window_width_ms":60000}}},"output_state":{"timing":"ingestion_time","primitive":"SummaryState"},"lifetime":{"AcrossEvaluations":"Memory"},"output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"retention_ms":86400000,"view_coverage":{"definition_id":"ec4b88928460254b594ba1c6127fecfc","selection":[{"columns":[]}]}},{"id":38,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":86400,"nanos":0},"kind":"range","child":37}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true}},{"id":39,"payload":{"ASAP":{"SummaryMerge":{"children":[38]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":40,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":39}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":41,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"sum","col":null}],"output_names":[""],"filters":[],"having":null,"child":40}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":42,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[]},"measures":[{"kind":"top_k","k":32}],"output_names":[""],"filters":[],"having":null,"child":41}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"topk_32","dtype":{"Plain":"float64"},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true}],"time_index":null,"unique_keys":[[1]],"closed":true}},{"id":43,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":21600,"nanos":0},"kind":"range","child":37}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true}},{"id":44,"payload":{"ASAP":{"SummaryMerge":{"children":[43]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":45,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":44}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":46,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"sum","col":null}],"output_names":[""],"filters":[],"having":null,"child":45}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":47,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[]},"measures":[{"kind":"top_k","k":32}],"output_names":[""],"filters":[],"having":null,"child":46}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"topk_32","dtype":{"Plain":"float64"},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true}],"time_index":null,"unique_keys":[[1]],"closed":true}},{"id":48,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":3600,"nanos":0},"kind":"range","child":37}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true}},{"id":49,"payload":{"ASAP":{"SummaryMerge":{"children":[48]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":50,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":49}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":51,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"sum","col":null}],"output_names":[""],"filters":[],"having":null,"child":50}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":52,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[]},"measures":[{"kind":"top_k","k":32}],"output_names":[""],"filters":[],"having":null,"child":51}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"topk_32","dtype":{"Plain":"float64"},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true}],"time_index":null,"unique_keys":[[1]],"closed":true}},{"id":53,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":900,"nanos":0},"kind":"range","child":37}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true}},{"id":54,"payload":{"ASAP":{"SummaryMerge":{"children":[53]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":55,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":54}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":56,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"sum","col":null}],"output_names":[""],"filters":[],"having":null,"child":55}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":57,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[]},"measures":[{"kind":"top_k","k":32}],"output_names":[""],"filters":[],"having":null,"child":56}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"topk_32","dtype":{"Plain":"float64"},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true}],"time_index":null,"unique_keys":[[1]],"closed":true}},{"id":58,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"data"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}}}},"output_state":{"timing":"ingestion_time","primitive":"Raw"},"lifetime":{"AcrossEvaluations":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"retention_ms":21600000},{"id":59,"payload":{"ASAP":{"SummaryTumblingWindowChain":{"child":58,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null,"tumbling_window_width_ms":60000}}},"output_state":{"timing":"ingestion_time","primitive":"SummaryState"},"lifetime":{"AcrossEvaluations":"Memory"},"output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2]],"closed":true},"retention_ms":86400000,"view_coverage":{"definition_id":"9f73cc54cb2cc55c9c57db786b05835b","selection":[{"columns":[]}]}},{"id":60,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":86400,"nanos":0},"kind":"range","child":59}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2]],"closed":true}},{"id":61,"payload":{"ASAP":{"SummaryMerge":{"children":[60]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":62,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":61}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":63,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":21600,"nanos":0},"kind":"range","child":59}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2]],"closed":true}},{"id":64,"payload":{"ASAP":{"SummaryMerge":{"children":[63]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":65,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":64}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":66,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":3600,"nanos":0},"kind":"range","child":59}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2]],"closed":true}},{"id":67,"payload":{"ASAP":{"SummaryMerge":{"children":[66]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":68,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":67}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":69,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":900,"nanos":0},"kind":"range","child":59}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2]],"closed":true}},{"id":70,"payload":{"ASAP":{"SummaryMerge":{"children":[69]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":71,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":70}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":72,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":21600,"nanos":0},"kind":"range","child":58}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":73,"payload":{"ASAP":{"SummaryAgg":{"child":72,"summary_type":{"ExactAggregate":["Rate","Rate"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Rate","Rate"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":74,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":73}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":75,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.99}],"output_names":[""],"filters":[],"having":null,"child":72}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":76,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.95}],"output_names":[""],"filters":[],"having":null,"child":72}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":77,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.9}],"output_names":[""],"filters":[],"having":null,"child":72}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":78,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.75}],"output_names":[""],"filters":[],"having":null,"child":72}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":79,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.5}],"output_names":[""],"filters":[],"having":null,"child":72}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":80,"payload":{"NonASAP":{"BinaryOp":{"operator":{"checked_relative_division":false,"checked_finite_division":false,"kind":{"Arithmetic":"Div"},"vector_match":null},"return_bool":false,"lhs":77,"rhs":79}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":81,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":3600,"nanos":0},"kind":"range","child":58}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":82,"payload":{"ASAP":{"SummaryAgg":{"child":81,"summary_type":{"ExactAggregate":["Rate","Rate"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Rate","Rate"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":83,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":82}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":84,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.99}],"output_names":[""],"filters":[],"having":null,"child":81}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":85,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.95}],"output_names":[""],"filters":[],"having":null,"child":81}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":86,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.9}],"output_names":[""],"filters":[],"having":null,"child":81}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":87,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.75}],"output_names":[""],"filters":[],"having":null,"child":81}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":88,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.5}],"output_names":[""],"filters":[],"having":null,"child":81}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":89,"payload":{"NonASAP":{"BinaryOp":{"operator":{"checked_relative_division":false,"checked_finite_division":false,"kind":{"Arithmetic":"Div"},"vector_match":null},"return_bool":false,"lhs":86,"rhs":88}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":90,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":900,"nanos":0},"kind":"range","child":58}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":91,"payload":{"ASAP":{"SummaryAgg":{"child":90,"summary_type":{"ExactAggregate":["Rate","Rate"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Rate","Rate"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":92,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":91}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":93,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.99}],"output_names":[""],"filters":[],"having":null,"child":90}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":94,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.95}],"output_names":[""],"filters":[],"having":null,"child":90}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":95,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.9}],"output_names":[""],"filters":[],"having":null,"child":90}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":96,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.75}],"output_names":[""],"filters":[],"having":null,"child":90}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":97,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"quantile","col":null,"q":0.5}],"output_names":[""],"filters":[],"having":null,"child":90}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}},{"id":98,"payload":{"NonASAP":{"BinaryOp":{"operator":{"checked_relative_division":false,"checked_finite_division":false,"kind":{"Arithmetic":"Div"},"vector_match":null},"return_bool":false,"lhs":95,"rhs":97}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":3,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":4,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":5,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":6,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":7,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":8,"consumer":9,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":9,"consumer":10,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":10,"consumer":11,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Rate","Rate"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":9,"consumer":12,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":9,"consumer":13,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":9,"consumer":14,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":9,"consumer":15,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":9,"consumer":16,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":14,"consumer":17,"role":"Left","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":16,"consumer":17,"role":"Right","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":18,"consumer":19,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":19,"consumer":20,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":20,"consumer":21,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":21,"consumer":22,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":22,"consumer":23,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":19,"consumer":24,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":24,"consumer":25,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":25,"consumer":26,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":26,"consumer":27,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":19,"consumer":28,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":28,"consumer":29,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":29,"consumer":30,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":30,"consumer":31,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":19,"consumer":32,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":32,"consumer":33,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":33,"consumer":34,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":34,"consumer":35,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":36,"consumer":37,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":37,"consumer":38,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":38,"consumer":39,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":39,"consumer":40,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":40,"consumer":41,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":41,"consumer":42,"role":"Input","intermediate_schema":{"fields":[{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":37,"consumer":43,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":43,"consumer":44,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":44,"consumer":45,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":45,"consumer":46,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":46,"consumer":47,"role":"Input","intermediate_schema":{"fields":[{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":37,"consumer":48,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":48,"consumer":49,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":49,"consumer":50,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":50,"consumer":51,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":51,"consumer":52,"role":"Input","intermediate_schema":{"fields":[{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":37,"consumer":53,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":53,"consumer":54,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":54,"consumer":55,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":55,"consumer":56,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":56,"consumer":57,"role":"Input","intermediate_schema":{"fields":[{"name":"label_0","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":58,"consumer":59,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":59,"consumer":60,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":60,"consumer":61,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":61,"consumer":62,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":59,"consumer":63,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":63,"consumer":64,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":64,"consumer":65,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":59,"consumer":66,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":66,"consumer":67,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":67,"consumer":68,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":59,"consumer":69,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":69,"consumer":70,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":70,"consumer":71,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":58,"consumer":72,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":72,"consumer":73,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":73,"consumer":74,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Rate","Rate"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":72,"consumer":75,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":72,"consumer":76,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":72,"consumer":77,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":72,"consumer":78,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":72,"consumer":79,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":77,"consumer":80,"role":"Left","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":79,"consumer":80,"role":"Right","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":58,"consumer":81,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":81,"consumer":82,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":82,"consumer":83,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Rate","Rate"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":81,"consumer":84,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":81,"consumer":85,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":81,"consumer":86,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":81,"consumer":87,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":81,"consumer":88,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":86,"consumer":89,"role":"Left","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":88,"consumer":89,"role":"Right","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":58,"consumer":90,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":90,"consumer":91,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":91,"consumer":92,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Rate","Rate"]},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":90,"consumer":93,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":90,"consumer":94,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":90,"consumer":95,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":90,"consumer":96,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":90,"consumer":97,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":95,"consumer":98,"role":"Left","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":97,"consumer":98,"role":"Right","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[2,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[7,6,5,4,3,2,57,71,97,96,95,94,93,92,35,98,52,68,88,87,86,85,84,83,31,89,47,65,79,78,77,76,75,74,27,80,42,62,16,15,14,13,12,11,23,17],"scalar_roots":[]},"query_texts":["sum by (job) (data)","quantile by (job) (0.5, data)","quantile by (job) (0.75, data)","quantile by (job) (0.9, data)","quantile by (job) (0.95, data)","quantile by (job) (0.99, data)","topk(32, sum by (label_0) (sum_over_time(data[15m])))","sum_over_time(data[15m])","quantile_over_time(0.5, data[15m])","quantile_over_time(0.75, data[15m])","quantile_over_time(0.9, data[15m])","quantile_over_time(0.95, data[15m])","quantile_over_time(0.99, data[15m])","rate(data[15m])","sum by (job) (sum_over_time(data[15m]))","quantile_over_time(0.9, data[15m]) / quantile_over_time(0.5, data[15m])","topk(32, sum by (label_0) (sum_over_time(data[1h])))","sum_over_time(data[1h])","quantile_over_time(0.5, data[1h])","quantile_over_time(0.75, data[1h])","quantile_over_time(0.9, data[1h])","quantile_over_time(0.95, data[1h])","quantile_over_time(0.99, data[1h])","rate(data[1h])","sum by (job) (sum_over_time(data[1h]))","quantile_over_time(0.9, data[1h]) / quantile_over_time(0.5, data[1h])","topk(32, sum by (label_0) (sum_over_time(data[6h])))","sum_over_time(data[6h])","quantile_over_time(0.5, data[6h])","quantile_over_time(0.75, data[6h])","quantile_over_time(0.9, data[6h])","quantile_over_time(0.95, data[6h])","quantile_over_time(0.99, data[6h])","rate(data[6h])","sum by (job) (sum_over_time(data[6h]))","quantile_over_time(0.9, data[6h]) / quantile_over_time(0.5, data[6h])","topk(32, sum by (label_0) (sum_over_time(data[24h])))","sum_over_time(data[24h])","quantile_over_time(0.5, data[24h])","quantile_over_time(0.75, data[24h])","quantile_over_time(0.9, data[24h])","quantile_over_time(0.95, data[24h])","quantile_over_time(0.99, data[24h])","rate(data[24h])","sum by (job) (sum_over_time(data[24h]))","quantile_over_time(0.9, data[24h]) / quantile_over_time(0.5, data[24h])"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/series_1000__max_label_filter__5m__10hz__300s.victoriametrics.with-substitutes.plan.json b/system-bench/tests/fixtures/plans/public/series_1000__max_label_filter__5m__10hz__300s.victoriametrics.with-substitutes.plan.json new file mode 100644 index 00000000..fbad445f --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/series_1000__max_label_filter__5m__10hz__300s.victoriametrics.with-substitutes.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"latency"}},"predicates":[{"Compare":{"left":{"Column":2},"op":"Eq","right":{"Literal":{"Utf8":"j3"}},"semantics":"promql"}}],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"retention_ms":300000},{"id":1,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":300,"nanos":0},"kind":"range","child":0}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":2,"payload":{"NonASAP":{"Aggregate":{"reduction":"PerEntity","measures":[{"kind":"max","col":null}],"output_names":[""],"filters":[],"having":null,"child":1}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[2],"scalar_roots":[]},"query_texts":["max_over_time(latency{job=\"j3\"}[5m])"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/series_1000__max_label_filter__5m__1hz__60s.victoriametrics.with-substitutes.plan.json b/system-bench/tests/fixtures/plans/public/series_1000__max_label_filter__5m__1hz__60s.victoriametrics.with-substitutes.plan.json new file mode 100644 index 00000000..a1e161f9 --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/series_1000__max_label_filter__5m__1hz__60s.victoriametrics.with-substitutes.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"latency"}},"predicates":[{"Compare":{"left":{"Column":2},"op":"Eq","right":{"Literal":{"Utf8":"j3"}},"semantics":"promql"}}],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"ingestion_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":1,"payload":{"ASAP":{"SummaryTumblingWindowChain":{"child":0,"summary_type":{"ExactAggregate":["Max","Max"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null,"tumbling_window_width_ms":60000}}},"output_state":{"timing":"ingestion_time","primitive":"SummaryState"},"lifetime":{"AcrossEvaluations":"Memory"},"output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Max","Max"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"retention_ms":300000,"view_coverage":{"definition_id":"d41489077376736ef1d8d181cd1213bf","selection":[{"columns":[{"column":{"source":{"TimeSeries":{"metric":"latency"}},"scan_ordinal":0,"column":"job"},"constraint":{"in":[{"Utf8":"j3"}]}}]}]}},{"id":2,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":300,"nanos":0},"kind":"range","child":1}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Max","Max"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true}},{"id":3,"payload":{"ASAP":{"SummaryMerge":{"children":[2]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Max","Max"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":4,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":3}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Max","Max"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":2,"consumer":3,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Max","Max"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":3,"consumer":4,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Max","Max"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[4],"scalar_roots":[]},"query_texts":["max_over_time(latency{job=\"j3\"}[5m])"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/sum_over_time__1h__1hz__60s.victoriametrics.equivalent-only.plan.json b/system-bench/tests/fixtures/plans/public/sum_over_time__1h__1hz__60s.victoriametrics.equivalent-only.plan.json new file mode 100644 index 00000000..bbde86b4 --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/sum_over_time__1h__1hz__60s.victoriametrics.equivalent-only.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"latency"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"ingestion_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":1,"payload":{"ASAP":{"SummaryTumblingWindowChain":{"child":0,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null,"tumbling_window_width_ms":60000}}},"output_state":{"timing":"ingestion_time","primitive":"SummaryState"},"lifetime":{"AcrossEvaluations":"Memory"},"output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"retention_ms":3600000,"view_coverage":{"definition_id":"b2e20d167ade7ea8acfd6ab166124c42","selection":[{"columns":[]}]}},{"id":2,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":3600,"nanos":0},"kind":"range","child":1}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":"None","output_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true}},{"id":3,"payload":{"ASAP":{"SummaryMerge":{"children":[2]}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":4,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":3}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":5,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"sum","col":null}],"output_names":[""],"filters":[],"having":null,"child":4}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"ingestion_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":2,"consumer":3,"role":"Input","intermediate_schema":{"fields":[{"name":"window_end","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[0,2,3]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":3,"consumer":4,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":4,"consumer":5,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[5],"scalar_roots":[]},"query_texts":["sum by (job) (sum_over_time(latency[1h]))"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/sum_over_time__1m_1hz_10s.victoriametrics.equivalent-only.plan.json b/system-bench/tests/fixtures/plans/public/sum_over_time__1m_1hz_10s.victoriametrics.equivalent-only.plan.json new file mode 100644 index 00000000..1101f970 --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/sum_over_time__1m_1hz_10s.victoriametrics.equivalent-only.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"latency"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"retention_ms":60000},{"id":1,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":60,"nanos":0},"kind":"range","child":0}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":2,"payload":{"ASAP":{"SummaryAgg":{"child":1,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":{"Reduce":[2]},"filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":3,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":2}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":2,"consumer":3,"role":"Input","intermediate_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[3],"scalar_roots":[]},"query_texts":["sum by (job) (sum_over_time(latency[1m]))"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/sum_over_time__1m_1hz_10s.victoriametrics.with-substitutes.plan.json b/system-bench/tests/fixtures/plans/public/sum_over_time__1m_1hz_10s.victoriametrics.with-substitutes.plan.json new file mode 100644 index 00000000..1101f970 --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/sum_over_time__1m_1hz_10s.victoriametrics.with-substitutes.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"latency"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"retention_ms":60000},{"id":1,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":60,"nanos":0},"kind":"range","child":0}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":2,"payload":{"ASAP":{"SummaryAgg":{"child":1,"summary_type":{"ExactAggregate":["Sum","Sum"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":{"Reduce":[2]},"filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}},{"id":3,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":2}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":2,"consumer":3,"role":"Input","intermediate_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"state","dtype":{"ExactAggregate":["Sum","Sum"]},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[3],"scalar_roots":[]},"query_texts":["sum by (job) (sum_over_time(latency[1m]))"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/plans/public/sum_rate__1m_1hz_10s.victoriametrics.with-substitutes.plan.json b/system-bench/tests/fixtures/plans/public/sum_rate__1m_1hz_10s.victoriametrics.with-substitutes.plan.json new file mode 100644 index 00000000..833fc5f7 --- /dev/null +++ b/system-bench/tests/fixtures/plans/public/sum_rate__1m_1hz_10s.victoriametrics.with-substitutes.plan.json @@ -0,0 +1 @@ +{"wire_version":15,"dag":{"nodes":[{"id":0,"payload":{"NonASAP":{"Scan":{"source":{"TimeSeries":{"metric":"requests_total"}},"predicates":[],"schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"retention_ms":60000},{"id":1,"payload":{"NonASAP":{"TimeRange":{"range":{"secs":60,"nanos":0},"kind":"range","child":0}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":2,"payload":{"ASAP":{"SummaryAgg":{"child":1,"summary_type":{"ExactAggregate":["Rate","Rate"]},"input":{"item":null,"weight":{"Column":"SampleValue"}},"reduction":"PerEntity","filter":null}}},"output_state":{"timing":"query_time","primitive":"SummaryState"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Rate","Rate"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":3,"payload":{"ASAP":{"FinalizeExactAccumulator":{"child":2}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":"None","output_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true}},{"id":4,"payload":{"NonASAP":{"Aggregate":{"reduction":{"Reduce":[2]},"measures":[{"kind":"sum","col":null}],"output_names":[""],"filters":[],"having":null,"child":3}}},"output_state":{"timing":"query_time","primitive":"Raw"},"lifetime":{"OneEvaluation":"Memory"},"output_schema":{"fields":[{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"sum","dtype":{"Plain":"float64"},"nullable":false}],"time_index":null,"unique_keys":[[0]],"closed":true}}],"edges":[{"producer":0,"consumer":1,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":1,"consumer":2,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":2,"consumer":3,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"state","dtype":{"ExactAggregate":["Rate","Rate"]},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"SummaryState"},"grouping":"NotApplicable","window":"NotApplicable"},{"producer":3,"consumer":4,"role":"Input","intermediate_schema":{"fields":[{"name":"ts","dtype":{"Plain":"timestamp"},"nullable":false},{"name":"value","dtype":{"Plain":"float64"},"nullable":false},{"name":"job","dtype":{"Plain":"utf8"},"nullable":true},{"name":"$promql_series_identity","dtype":{"Plain":"utf8"},"nullable":false}],"time_index":0,"unique_keys":[[3,0]],"closed":true},"data_state":{"timing":"query_time","primitive":"Raw"},"grouping":"NotApplicable","window":"NotApplicable"}],"roots":[4],"scalar_roots":[]},"query_texts":["sum by (job) (rate(requests_total[1m]))"]} \ No newline at end of file diff --git a/system-bench/tests/fixtures/workloads/grid/count_distinct__5m__10hz__60s.json b/system-bench/tests/fixtures/workloads/grid/count_distinct__5m__10hz__60s.json new file mode 100644 index 00000000..f938fc97 --- /dev/null +++ b/system-bench/tests/fixtures/workloads/grid/count_distinct__5m__10hz__60s.json @@ -0,0 +1,51 @@ +{ + "query_workload": { + "language": "promql", + "repeating_queries": [ + { + "query": "count(count by (instance) (count_over_time(latency[5m])))", + "demand": { + "fixed_interval_at": { + "interval": 60000, + "evaluation_phase": 0 + } + }, + "requirements": { + "accuracy": { + "max_error": 0.01, + "failure_probability": 0.01, + "accuracy_scope": "per_value", + "accuracy_metric": "relative" + } + }, + "predictability": { + "predictable": { + "known_at": null + } + } + } + ] + }, + "data_workload": { + "arrival": { + "ingesting": { + "rows_per_second": 20000.0 + } + }, + "sources": { + "latency": { + "series_count": 1000, + "metric_type": "gauge", + "column_signs": { + "value": "non_negative" + }, + "sample_interval": 100 + }, + "requests_total": { + "series_count": 1000, + "metric_type": "counter", + "sample_interval": 100 + } + } + } +} \ No newline at end of file diff --git a/system-bench/tests/fixtures/workloads/grid/count_distinct__5m__1hz__300s.json b/system-bench/tests/fixtures/workloads/grid/count_distinct__5m__1hz__300s.json new file mode 100644 index 00000000..01ba836f --- /dev/null +++ b/system-bench/tests/fixtures/workloads/grid/count_distinct__5m__1hz__300s.json @@ -0,0 +1,51 @@ +{ + "query_workload": { + "language": "promql", + "repeating_queries": [ + { + "query": "count(count by (instance) (count_over_time(latency[5m])))", + "demand": { + "fixed_interval_at": { + "interval": 300000, + "evaluation_phase": 0 + } + }, + "requirements": { + "accuracy": { + "max_error": 0.01, + "failure_probability": 0.01, + "accuracy_scope": "per_value", + "accuracy_metric": "relative" + } + }, + "predictability": { + "predictable": { + "known_at": null + } + } + } + ] + }, + "data_workload": { + "arrival": { + "ingesting": { + "rows_per_second": 2000.0 + } + }, + "sources": { + "latency": { + "series_count": 1000, + "metric_type": "gauge", + "column_signs": { + "value": "non_negative" + }, + "sample_interval": 1000 + }, + "requests_total": { + "series_count": 1000, + "metric_type": "counter", + "sample_interval": 1000 + } + } + } +} \ No newline at end of file diff --git a/system-bench/tests/fixtures/workloads/paper/mixed-04.json b/system-bench/tests/fixtures/workloads/paper/mixed-04.json new file mode 100644 index 00000000..b6694b6d --- /dev/null +++ b/system-bench/tests/fixtures/workloads/paper/mixed-04.json @@ -0,0 +1,240 @@ +{ + "query_workload": { + "language": "promql", + "query_batch": null, + "repeating_queries": [ + { + "query": "sum by (region, service, job) (sum_over_time(data[10m]))", + "demand": { + "fixed_interval_at": { + "interval": 10000, + "evaluation_phase": 0 + } + }, + "requirements": { + "accuracy": { + "max_error": 0.050000000000000044, + "failure_probability": 0.3, + "accuracy_scope": "whole_result" + }, + "max_latency_ms": null + }, + "predictability": { + "predictable": { + "known_at": null + } + } + }, + { + "query": "sum by (region, service) (sum_over_time(data[10m]))", + "demand": { + "fixed_interval_at": { + "interval": 10000, + "evaluation_phase": 0 + } + }, + "requirements": { + "accuracy": { + "max_error": 0.050000000000000044, + "failure_probability": 0.3, + "accuracy_scope": "whole_result" + }, + "max_latency_ms": null + }, + "predictability": { + "predictable": { + "known_at": null + } + } + }, + { + "query": "avg by (region) (quantile_over_time(0.75, data[100s]))", + "demand": { + "fixed_interval_at": { + "interval": 1000, + "evaluation_phase": 0 + } + }, + "requirements": { + "accuracy": { + "max_error": 0.050000000000000044, + "failure_probability": 0.3, + "accuracy_scope": "whole_result" + }, + "max_latency_ms": null + }, + "predictability": { + "predictable": { + "known_at": null + } + } + }, + { + "query": "avg by (region, service) (quantile_over_time(0.75, data[100s]))", + "demand": { + "fixed_interval_at": { + "interval": 1000, + "evaluation_phase": 0 + } + }, + "requirements": { + "accuracy": { + "max_error": 0.050000000000000044, + "failure_probability": 0.3, + "accuracy_scope": "whole_result" + }, + "max_latency_ms": null + }, + "predictability": { + "predictable": { + "known_at": null + } + } + }, + { + "query": "avg by (region) (quantile_over_time(0.95, data[100s]))", + "demand": { + "fixed_interval_at": { + "interval": 1000, + "evaluation_phase": 0 + } + }, + "requirements": { + "accuracy": { + "max_error": 0.050000000000000044, + "failure_probability": 0.3, + "accuracy_scope": "whole_result" + }, + "max_latency_ms": null + }, + "predictability": { + "predictable": { + "known_at": null + } + } + }, + { + "query": "topk by (region, service) (4, sum_over_time(data[1m]))", + "demand": { + "fixed_interval_at": { + "interval": 2000, + "evaluation_phase": 0 + } + }, + "requirements": { + "accuracy": { + "max_error": 0.050000000000000044, + "failure_probability": 0.3, + "accuracy_scope": "whole_result" + }, + "max_latency_ms": null + }, + "predictability": { + "predictable": { + "known_at": null + } + } + }, + { + "query": "topk by (region) (4, sum_over_time(data[20m]))", + "demand": { + "fixed_interval_at": { + "interval": 30000, + "evaluation_phase": 0 + } + }, + "requirements": { + "accuracy": { + "max_error": 0.050000000000000044, + "failure_probability": 0.3, + "accuracy_scope": "whole_result" + }, + "max_latency_ms": null + }, + "predictability": { + "predictable": { + "known_at": null + } + } + }, + { + "query": "topk by (region, service) (4, increase(data_total[10m]))", + "demand": { + "fixed_interval_at": { + "interval": 10000, + "evaluation_phase": 0 + } + }, + "requirements": { + "accuracy": { + "max_error": 0.050000000000000044, + "failure_probability": 0.3, + "accuracy_scope": "whole_result" + }, + "max_latency_ms": null + }, + "predictability": { + "predictable": { + "known_at": null + } + } + }, + { + "query": "topk by (region) (8, rate(data_total[20m]))", + "demand": { + "fixed_interval_at": { + "interval": 30000, + "evaluation_phase": 0 + } + }, + "requirements": { + "accuracy": { + "max_error": 0.050000000000000044, + "failure_probability": 0.3, + "accuracy_scope": "whole_result" + }, + "max_latency_ms": null + }, + "predictability": { + "predictable": { + "known_at": null + } + } + } + ] + }, + "data_workload": { + "arrival": { + "ingesting": { + "rows_per_second": 200000.0, + "max_out_of_order_ms": 0 + } + }, + "sources": { + "data": { + "series_count": 10000, + "metric_type": "gauge", + "column_signs": { + "value": "non_negative" + }, + "sample_interval": 100, + "stream_norms": null, + "max_distinct_per_evaluation": null + }, + "data_total": { + "series_count": 10000, + "metric_type": "counter", + "sample_interval": 100, + "stream_norms": null, + "max_distinct_per_evaluation": null + }, + "events": { + "series_count": 10000, + "metric_type": null, + "sample_interval": null, + "stream_norms": null, + "max_distinct_per_evaluation": 10000 + } + } + } +} \ No newline at end of file diff --git a/system-bench/tests/fixtures/workloads/paper/mixed-08.json b/system-bench/tests/fixtures/workloads/paper/mixed-08.json new file mode 100644 index 00000000..d76125f1 --- /dev/null +++ b/system-bench/tests/fixtures/workloads/paper/mixed-08.json @@ -0,0 +1,240 @@ +{ + "query_workload": { + "language": "promql", + "query_batch": null, + "repeating_queries": [ + { + "query": "sum by (region, service, job) (sum_over_time(data[5m]))", + "demand": { + "fixed_interval_at": { + "interval": 10000, + "evaluation_phase": 0 + } + }, + "requirements": { + "accuracy": { + "max_error": 0.050000000000000044, + "failure_probability": 0.3, + "accuracy_scope": "whole_result" + }, + "max_latency_ms": null + }, + "predictability": { + "predictable": { + "known_at": null + } + } + }, + { + "query": "sum by (region, service) (sum_over_time(data[5m]))", + "demand": { + "fixed_interval_at": { + "interval": 10000, + "evaluation_phase": 0 + } + }, + "requirements": { + "accuracy": { + "max_error": 0.050000000000000044, + "failure_probability": 0.3, + "accuracy_scope": "whole_result" + }, + "max_latency_ms": null + }, + "predictability": { + "predictable": { + "known_at": null + } + } + }, + { + "query": "avg by (region, service) (quantile_over_time(0.75, data[100s]))", + "demand": { + "fixed_interval_at": { + "interval": 1000, + "evaluation_phase": 0 + } + }, + "requirements": { + "accuracy": { + "max_error": 0.050000000000000044, + "failure_probability": 0.3, + "accuracy_scope": "whole_result" + }, + "max_latency_ms": null + }, + "predictability": { + "predictable": { + "known_at": null + } + } + }, + { + "query": "avg by (region, service) (quantile_over_time(0.95, data[100s]))", + "demand": { + "fixed_interval_at": { + "interval": 1000, + "evaluation_phase": 0 + } + }, + "requirements": { + "accuracy": { + "max_error": 0.050000000000000044, + "failure_probability": 0.3, + "accuracy_scope": "whole_result" + }, + "max_latency_ms": null + }, + "predictability": { + "predictable": { + "known_at": null + } + } + }, + { + "query": "avg by (region) (quantile_over_time(0.95, data[100s]))", + "demand": { + "fixed_interval_at": { + "interval": 1000, + "evaluation_phase": 0 + } + }, + "requirements": { + "accuracy": { + "max_error": 0.050000000000000044, + "failure_probability": 0.3, + "accuracy_scope": "whole_result" + }, + "max_latency_ms": null + }, + "predictability": { + "predictable": { + "known_at": null + } + } + }, + { + "query": "topk by (region) (4, sum_over_time(data[1m]))", + "demand": { + "fixed_interval_at": { + "interval": 1000, + "evaluation_phase": 0 + } + }, + "requirements": { + "accuracy": { + "max_error": 0.050000000000000044, + "failure_probability": 0.3, + "accuracy_scope": "whole_result" + }, + "max_latency_ms": null + }, + "predictability": { + "predictable": { + "known_at": null + } + } + }, + { + "query": "topk by (region) (4, sum_over_time(data[20m]))", + "demand": { + "fixed_interval_at": { + "interval": 30000, + "evaluation_phase": 0 + } + }, + "requirements": { + "accuracy": { + "max_error": 0.050000000000000044, + "failure_probability": 0.3, + "accuracy_scope": "whole_result" + }, + "max_latency_ms": null + }, + "predictability": { + "predictable": { + "known_at": null + } + } + }, + { + "query": "topk by (region) (8, increase(data_total[5m]))", + "demand": { + "fixed_interval_at": { + "interval": 10000, + "evaluation_phase": 0 + } + }, + "requirements": { + "accuracy": { + "max_error": 0.050000000000000044, + "failure_probability": 0.3, + "accuracy_scope": "whole_result" + }, + "max_latency_ms": null + }, + "predictability": { + "predictable": { + "known_at": null + } + } + }, + { + "query": "topk by (region) (4, rate(data_total[20m]))", + "demand": { + "fixed_interval_at": { + "interval": 30000, + "evaluation_phase": 0 + } + }, + "requirements": { + "accuracy": { + "max_error": 0.050000000000000044, + "failure_probability": 0.3, + "accuracy_scope": "whole_result" + }, + "max_latency_ms": null + }, + "predictability": { + "predictable": { + "known_at": null + } + } + } + ] + }, + "data_workload": { + "arrival": { + "ingesting": { + "rows_per_second": 200000.0, + "max_out_of_order_ms": 0 + } + }, + "sources": { + "data": { + "series_count": 10000, + "metric_type": "gauge", + "column_signs": { + "value": "non_negative" + }, + "sample_interval": 100, + "stream_norms": null, + "max_distinct_per_evaluation": null + }, + "data_total": { + "series_count": 10000, + "metric_type": "counter", + "sample_interval": 100, + "stream_norms": null, + "max_distinct_per_evaluation": null + }, + "events": { + "series_count": 10000, + "metric_type": null, + "sample_interval": null, + "stream_norms": null, + "max_distinct_per_evaluation": 10000 + } + } + } +} \ No newline at end of file diff --git a/system-bench/tests/golden/victoriametrics/count_distinct_5m.metricsql b/system-bench/tests/golden/victoriametrics/count_distinct_5m.metricsql new file mode 100644 index 00000000..9b0f5167 --- /dev/null +++ b/system-bench/tests/golden/victoriametrics/count_distinct_5m.metricsql @@ -0,0 +1 @@ +count(count by (instance) (count_over_time(latency[300s]))) diff --git a/system-bench/tests/golden/victoriametrics/max_5m_label_filter.metricsql b/system-bench/tests/golden/victoriametrics/max_5m_label_filter.metricsql new file mode 100644 index 00000000..700f9dac --- /dev/null +++ b/system-bench/tests/golden/victoriametrics/max_5m_label_filter.metricsql @@ -0,0 +1 @@ +max_over_time(latency:60s_max[300s] offset -29500ms) diff --git a/system-bench/tests/golden/victoriametrics/max_5m_label_filter.yaml b/system-bench/tests/golden/victoriametrics/max_5m_label_filter.yaml new file mode 100644 index 00000000..d5bcdd12 --- /dev/null +++ b/system-bench/tests/golden/victoriametrics/max_5m_label_filter.yaml @@ -0,0 +1,6 @@ +- match: 'latency{job="j3"}' + interval: 60s + outputs: [max] + enable_windows: true + ignore_first_intervals: 0 + flush_on_shutdown: false diff --git a/system-bench/tests/golden/victoriametrics/public_plans.txt b/system-bench/tests/golden/victoriametrics/public_plans.txt new file mode 100644 index 00000000..11f0c81f --- /dev/null +++ b/system-bench/tests/golden/victoriametrics/public_plans.txt @@ -0,0 +1,235 @@ +== avg_quantile__1m_1hz_10s.victoriametrics.equivalent-only +[] +avg by (job) (quantile_over_time(0.9, latency[60s])) | step 1 | per series None +== avg_quantile__1m_1hz_10s.victoriametrics.with-substitutes +[] +avg by (job) (quantile_over_time(0.9, latency[60s])) | step 1 | per series None +== count__1m_1hz_10s.victoriametrics.equivalent-only +[] +sum by (job) (count_over_time(latency[60s])) | step 1 | per series None +== count__1m_1hz_10s.victoriametrics.with-substitutes +[] +sum by (job) (count_over_time(latency[60s])) | step 1 | per series None +== count_distinct__5m__10hz__60s.victoriametrics.with-substitutes +- match: 'latency' + interval: 60s + outputs: [count_samples] + enable_windows: true + ignore_first_intervals: 0 + flush_on_shutdown: false +count(count by (instance) (sum_over_time(latency:60s_count_samples[300s] offset -29500ms))) | step 60000 | per series None +== count_distinct__5m__1hz__300s.victoriametrics.equivalent-only +[] +count(count by (instance) (count_over_time(latency[300s]))) | step 1 | per series None +== joint__1m_1hz_10s.victoriametrics.with-substitutes +[] +quantile_over_time(0.99, latency[60s]) | step 1 | per series Some("latency") +quantile_over_time(0.5, latency[60s]) | step 1 | per series Some("latency") +avg by (job) (quantile_over_time(0.9, latency[60s])) | step 1 | per series None +max_over_time(latency[60s]) | step 1 | per series Some("latency") +sum by (job) (rate(requests_total[60s])) | step 1 | per series None +substitution victoriametrics.rate_increase.no_extrapolation at node 11 +== max__1m_1hz_10s.victoriametrics.equivalent-only +[] +max_over_time(latency[60s]) | step 1 | per series Some("latency") +== max__1m_1hz_10s.victoriametrics.with-substitutes +[] +max_over_time(latency[60s]) | step 1 | per series Some("latency") +== mixed-04.victoriametrics.with-substitutes +- match: 'data' + interval: 10s + outputs: [sum_samples, count_samples] + enable_windows: true + ignore_first_intervals: 0 + flush_on_shutdown: false +- match: 'data' + interval: 2s + outputs: [sum_samples, count_samples] + enable_windows: true + ignore_first_intervals: 0 + flush_on_shutdown: false +- match: 'data' + interval: 30s + outputs: [sum_samples, count_samples] + enable_windows: true + ignore_first_intervals: 0 + flush_on_shutdown: false +sum by (job, region, service) (sum_over_time(data:10s_sum_samples[600s] offset -4500ms) and count_over_time(data:10s_count_samples[600s] offset -4500ms)) | step 10000 | per series None +sum by (region, service) (sum by (job, region, service) (sum_over_time(data:10s_sum_samples[600s] offset -4500ms) and count_over_time(data:10s_count_samples[600s] offset -4500ms))) | step 10000 | per series None +(sum by (region) (sum by (region, service) (quantile_over_time(0.75, data[100s])))) / (sum by (region) (count by (region, service) (quantile_over_time(0.75, data[100s])))) | step 1 | per series None +avg by (region, service) (quantile_over_time(0.75, data[100s])) | step 1 | per series None +avg by (region) (quantile_over_time(0.95, data[100s])) | step 1 | per series None +topk by (region, service) (4, sum_over_time(data:2s_sum_samples[60s] offset -500ms) and count_over_time(data:2s_count_samples[60s] offset -500ms)) | step 2000 | per series Some("data") +topk by (region) (4, sum_over_time(data:30s_sum_samples[1200s] offset -14500ms) and count_over_time(data:30s_count_samples[1200s] offset -14500ms)) | step 30000 | per series Some("data") +topk by (region, service) (4, increase(data_total[600s])) | step 1 | per series Some("data_total") +topk by (region) (8, rate(data_total[1200s])) | step 1 | per series Some("data_total") +substitution victoriametrics.rate_increase.no_extrapolation at node 2 +substitution victoriametrics.division.nan_dropped at node 15 +substitution victoriametrics.rate_increase.no_extrapolation at node 24 +== mixed-06.victoriametrics.with-substitutes +- match: 'data' + interval: 5s + outputs: [sum_samples, count_samples] + enable_windows: true + ignore_first_intervals: 0 + flush_on_shutdown: false +- match: 'data' + interval: 2s + outputs: [sum_samples, count_samples] + enable_windows: true + ignore_first_intervals: 0 + flush_on_shutdown: false +- match: 'data' + interval: 60s + outputs: [sum_samples, count_samples] + enable_windows: true + ignore_first_intervals: 0 + flush_on_shutdown: false +sum by (job, region, service) (sum_over_time(data:5s_sum_samples[300s] offset -2s) and count_over_time(data:5s_count_samples[300s] offset -2s)) | step 5000 | per series None +sum by (region, service) (sum by (job, region, service) (sum_over_time(data:5s_sum_samples[300s] offset -2s) and count_over_time(data:5s_count_samples[300s] offset -2s))) | step 5000 | per series None +avg by (job, region, service) (quantile_over_time(0.5, data[100s])) | step 1 | per series None +(sum by (region, service) (sum by (job, region, service) (quantile_over_time(0.5, data[100s])))) / (sum by (region, service) (count by (job, region, service) (quantile_over_time(0.5, data[100s])))) | step 1 | per series None +avg by (region) (quantile_over_time(0.9, data[100s])) | step 1 | per series None +topk by (region, service) (4, sum_over_time(data:2s_sum_samples[60s] offset -500ms) and count_over_time(data:2s_count_samples[60s] offset -500ms)) | step 2000 | per series Some("data") +topk by (region, service) (8, sum_over_time(data:60s_sum_samples[1200s] offset -29500ms) and count_over_time(data:60s_count_samples[1200s] offset -29500ms)) | step 60000 | per series Some("data") +topk by (region, service) (8, increase(data_total[300s])) | step 1 | per series Some("data_total") +topk by (region, service) (4, rate(data_total[1200s])) | step 1 | per series Some("data_total") +substitution victoriametrics.rate_increase.no_extrapolation at node 2 +substitution victoriametrics.division.nan_dropped at node 15 +substitution victoriametrics.rate_increase.no_extrapolation at node 24 +== mixed-08.victoriametrics.with-substitutes +refused: node 34: no translation for window width 1000 ms is below 2 s +== mixed-09.victoriametrics.with-substitutes +refused: node 34: no translation for window width 1000 ms is below 2 s +== mixed-10.victoriametrics.with-substitutes +- match: 'data' + interval: 20s + outputs: [sum_samples, count_samples] + enable_windows: true + ignore_first_intervals: 0 + flush_on_shutdown: false +- match: 'data' + interval: 2s + outputs: [sum_samples, count_samples] + enable_windows: true + ignore_first_intervals: 0 + flush_on_shutdown: false +- match: 'data' + interval: 60s + outputs: [sum_samples, count_samples] + enable_windows: true + ignore_first_intervals: 0 + flush_on_shutdown: false +sum by (job, region, service) (sum_over_time(data:20s_sum_samples[600s] offset -9500ms) and count_over_time(data:20s_count_samples[600s] offset -9500ms)) | step 20000 | per series None +sum by (region, service) (sum by (job, region, service) (sum_over_time(data:20s_sum_samples[600s] offset -9500ms) and count_over_time(data:20s_count_samples[600s] offset -9500ms))) | step 20000 | per series None +avg by (region, service) (quantile_over_time(0.99, data[100s])) | step 1 | per series None +avg by (region) (quantile_over_time(0.75, data[100s])) | step 1 | per series None +avg by (region) (quantile_over_time(0.9, data[100s])) | step 1 | per series None +topk by (region) (8, sum_over_time(data:2s_sum_samples[60s] offset -500ms) and count_over_time(data:2s_count_samples[60s] offset -500ms)) | step 2000 | per series Some("data") +topk by (region, service) (8, sum_over_time(data:60s_sum_samples[1200s] offset -29500ms) and count_over_time(data:60s_count_samples[1200s] offset -29500ms)) | step 60000 | per series Some("data") +topk by (region, service) (8, increase(data_total[600s])) | step 1 | per series Some("data_total") +topk by (region, service) (4, rate(data_total[1200s])) | step 1 | per series Some("data_total") +substitution victoriametrics.rate_increase.no_extrapolation at node 2 +substitution victoriametrics.rate_increase.no_extrapolation at node 17 +== quantile__1m_1hz_10s.victoriametrics.equivalent-only +[] +quantile_over_time(0.99, latency[60s]) | step 1 | per series Some("latency") +== quantile__1m_1hz_10s.victoriametrics.with-substitutes +[] +quantile_over_time(0.99, latency[60s]) | step 1 | per series Some("latency") +== quantile_rank__1m_1hz_10s.victoriametrics.equivalent-only +[] +quantile_over_time(0.99, latency[60s]) | step 1 | per series Some("latency") +== quantile_rank__1m_1hz_10s.victoriametrics.with-substitutes +[] +quantile_over_time(0.99, latency[60s]) | step 1 | per series Some("latency") +== range_heavy.victoriametrics.with-substitutes +- match: 'data' + interval: 60s + outputs: [sum_samples, count_samples] + enable_windows: true + ignore_first_intervals: 0 + flush_on_shutdown: false +sum by (job) (last_over_time(data[5ms])) | step 1 | per series None +quantile by (job) (0.5, last_over_time(data[5ms])) | step 1 | per series None +quantile by (job) (0.75, last_over_time(data[5ms])) | step 1 | per series None +quantile by (job) (0.9, last_over_time(data[5ms])) | step 1 | per series None +quantile by (job) (0.95, last_over_time(data[5ms])) | step 1 | per series None +quantile by (job) (0.99, last_over_time(data[5ms])) | step 1 | per series None +topk(32, sum by (label_0) (sum_over_time(data:60s_sum_samples[900s] offset -29500ms) and count_over_time(data:60s_count_samples[900s] offset -29500ms))) | step 60000 | per series None +sum_over_time(data:60s_sum_samples[900s] offset -29500ms) and count_over_time(data:60s_count_samples[900s] offset -29500ms) | step 60000 | per series Some("data") +quantile_over_time(0.5, data[900s]) | step 1 | per series Some("data") +quantile_over_time(0.75, data[900s]) | step 1 | per series Some("data") +quantile_over_time(0.9, data[900s]) | step 1 | per series Some("data") +quantile_over_time(0.95, data[900s]) | step 1 | per series Some("data") +quantile_over_time(0.99, data[900s]) | step 1 | per series Some("data") +rate(data[900s]) | step 1 | per series Some("data") +sum by (job) (sum_over_time(data:60s_sum_samples[900s] offset -29500ms) and count_over_time(data:60s_count_samples[900s] offset -29500ms)) | step 60000 | per series None +(quantile_over_time(0.9, data[900s])) / (quantile_over_time(0.5, data[900s])) | step 1 | per series Some("data") +topk(32, sum by (label_0) (sum_over_time(data:60s_sum_samples[3600s] offset -29500ms) and count_over_time(data:60s_count_samples[3600s] offset -29500ms))) | step 60000 | per series None +sum_over_time(data:60s_sum_samples[3600s] offset -29500ms) and count_over_time(data:60s_count_samples[3600s] offset -29500ms) | step 60000 | per series Some("data") +quantile_over_time(0.5, data[3600s]) | step 1 | per series Some("data") +quantile_over_time(0.75, data[3600s]) | step 1 | per series Some("data") +quantile_over_time(0.9, data[3600s]) | step 1 | per series Some("data") +quantile_over_time(0.95, data[3600s]) | step 1 | per series Some("data") +quantile_over_time(0.99, data[3600s]) | step 1 | per series Some("data") +rate(data[3600s]) | step 1 | per series Some("data") +sum by (job) (sum_over_time(data:60s_sum_samples[3600s] offset -29500ms) and count_over_time(data:60s_count_samples[3600s] offset -29500ms)) | step 60000 | per series None +(quantile_over_time(0.9, data[3600s])) / (quantile_over_time(0.5, data[3600s])) | step 1 | per series Some("data") +topk(32, sum by (label_0) (sum_over_time(data:60s_sum_samples[21600s] offset -29500ms) and count_over_time(data:60s_count_samples[21600s] offset -29500ms))) | step 60000 | per series None +sum_over_time(data:60s_sum_samples[21600s] offset -29500ms) and count_over_time(data:60s_count_samples[21600s] offset -29500ms) | step 60000 | per series Some("data") +quantile_over_time(0.5, data[21600s]) | step 1 | per series Some("data") +quantile_over_time(0.75, data[21600s]) | step 1 | per series Some("data") +quantile_over_time(0.9, data[21600s]) | step 1 | per series Some("data") +quantile_over_time(0.95, data[21600s]) | step 1 | per series Some("data") +quantile_over_time(0.99, data[21600s]) | step 1 | per series Some("data") +rate(data[21600s]) | step 1 | per series Some("data") +sum by (job) (sum_over_time(data:60s_sum_samples[21600s] offset -29500ms) and count_over_time(data:60s_count_samples[21600s] offset -29500ms)) | step 60000 | per series None +(quantile_over_time(0.9, data[21600s])) / (quantile_over_time(0.5, data[21600s])) | step 1 | per series Some("data") +topk(32, sum by (label_0) (sum_over_time(data:60s_sum_samples[86400s] offset -29500ms) and count_over_time(data:60s_count_samples[86400s] offset -29500ms))) | step 60000 | per series None +sum_over_time(data:60s_sum_samples[86400s] offset -29500ms) and count_over_time(data:60s_count_samples[86400s] offset -29500ms) | step 60000 | per series Some("data") +quantile_over_time(0.5, data[86400s]) | step 1 | per series Some("data") +quantile_over_time(0.75, data[86400s]) | step 1 | per series Some("data") +quantile_over_time(0.9, data[86400s]) | step 1 | per series Some("data") +quantile_over_time(0.95, data[86400s]) | step 1 | per series Some("data") +quantile_over_time(0.99, data[86400s]) | step 1 | per series Some("data") +rate(data[86400s]) | step 1 | per series Some("data") +sum by (job) (sum_over_time(data:60s_sum_samples[86400s] offset -29500ms) and count_over_time(data:60s_count_samples[86400s] offset -29500ms)) | step 60000 | per series None +(quantile_over_time(0.9, data[86400s])) / (quantile_over_time(0.5, data[86400s])) | step 1 | per series Some("data") +substitution victoriametrics.rate_increase.no_extrapolation at node 10 +substitution victoriametrics.division.nan_dropped at node 17 +substitution victoriametrics.rate_increase.no_extrapolation at node 73 +substitution victoriametrics.division.nan_dropped at node 80 +substitution victoriametrics.rate_increase.no_extrapolation at node 82 +substitution victoriametrics.division.nan_dropped at node 89 +substitution victoriametrics.rate_increase.no_extrapolation at node 91 +substitution victoriametrics.division.nan_dropped at node 98 +== series_1000__max_label_filter__5m__10hz__300s.victoriametrics.with-substitutes +[] +max_over_time(latency{job="j3"}[300s]) | step 1 | per series Some("latency") +== series_1000__max_label_filter__5m__1hz__60s.victoriametrics.with-substitutes +- match: 'latency{job="j3"}' + interval: 60s + outputs: [max] + enable_windows: true + ignore_first_intervals: 0 + flush_on_shutdown: false +max_over_time(latency:60s_max[300s] offset -29500ms) | step 60000 | per series Some("latency") +== sum_over_time__1h__1hz__60s.victoriametrics.equivalent-only +- match: 'latency' + interval: 60s + outputs: [sum_samples, count_samples] + enable_windows: true + ignore_first_intervals: 0 + flush_on_shutdown: false +sum by (job) (sum_over_time(latency:60s_sum_samples[3600s] offset -29500ms) and count_over_time(latency:60s_count_samples[3600s] offset -29500ms)) | step 60000 | per series None +== sum_over_time__1m_1hz_10s.victoriametrics.equivalent-only +[] +sum by (job) (sum_over_time(latency[60s])) | step 1 | per series None +== sum_over_time__1m_1hz_10s.victoriametrics.with-substitutes +[] +sum by (job) (sum_over_time(latency[60s])) | step 1 | per series None +== sum_rate__1m_1hz_10s.victoriametrics.with-substitutes +[] +sum by (job) (rate(requests_total[60s])) | step 1 | per series None +substitution victoriametrics.rate_increase.no_extrapolation at node 2 diff --git a/system-bench/tests/golden/victoriametrics/showcase_equivalent_only.metricsql b/system-bench/tests/golden/victoriametrics/showcase_equivalent_only.metricsql new file mode 100644 index 00000000..fa0bfaed --- /dev/null +++ b/system-bench/tests/golden/victoriametrics/showcase_equivalent_only.metricsql @@ -0,0 +1,10 @@ +# sum_over_time__1m_1hz_10s +sum by (job) (sum_over_time(latency[60s])) +# quantile__1m_1hz_10s +quantile_over_time(0.99, latency[60s]) +# avg_quantile__1m_1hz_10s +avg by (job) (quantile_over_time(0.9, latency[60s])) +# count__1m_1hz_10s +sum by (job) (count_over_time(latency[60s])) +# max__1m_1hz_10s +max_over_time(latency[60s]) diff --git a/system-bench/tests/golden/victoriametrics/sum_over_time_1h.metricsql b/system-bench/tests/golden/victoriametrics/sum_over_time_1h.metricsql new file mode 100644 index 00000000..6140a409 --- /dev/null +++ b/system-bench/tests/golden/victoriametrics/sum_over_time_1h.metricsql @@ -0,0 +1 @@ +sum by (job) (sum_over_time(latency:60s_sum_samples[3600s] offset -29500ms) and count_over_time(latency:60s_count_samples[3600s] offset -29500ms)) diff --git a/system-bench/tests/golden/victoriametrics/sum_over_time_1h.yaml b/system-bench/tests/golden/victoriametrics/sum_over_time_1h.yaml new file mode 100644 index 00000000..f059faf1 --- /dev/null +++ b/system-bench/tests/golden/victoriametrics/sum_over_time_1h.yaml @@ -0,0 +1,6 @@ +- match: 'latency' + interval: 60s + outputs: [sum_samples, count_samples] + enable_windows: true + ignore_first_intervals: 0 + flush_on_shutdown: false diff --git a/system-bench/tests/golden/victoriametrics/sum_over_time_1h_count.metricsql b/system-bench/tests/golden/victoriametrics/sum_over_time_1h_count.metricsql new file mode 100644 index 00000000..ade83422 --- /dev/null +++ b/system-bench/tests/golden/victoriametrics/sum_over_time_1h_count.metricsql @@ -0,0 +1 @@ +sum by (job) (sum_over_time(latency:60s_count_samples[3600s] offset -29500ms)) diff --git a/system-bench/tests/public_plans.rs b/system-bench/tests/public_plans.rs index 140d6814..eb7ff113 100644 --- a/system-bench/tests/public_plans.rs +++ b/system-bench/tests/public_plans.rs @@ -5,13 +5,13 @@ //! reader (`SharingLost`); that changes cost, not answers, so it is no //! substitution. //! -//! The committed plans are the showcase shapes plus a cover of every -//! node shape that planning all 206 public PromQL workloads with the two -//! ClickHouse files produces (see `fixtures/plans/REV`). +//! The committed plans are the showcase shapes plus, per engine, a cover +//! of every node shape that planning all 206 public PromQL workloads with +//! that engine's two files produces (see `fixtures/plans/REV`). mod common; -use system_bench::engines_external::clickhouse::translate; +use system_bench::engines_external::{clickhouse, victoriametrics, Substitution}; /// `(workload, variant)` of every committed public plan, in name order. fn public_plans() -> Vec<(String, String)> { @@ -21,10 +21,14 @@ fn public_plans() -> Vec<(String, String)> { .map(|entry| { let name = entry.unwrap().file_name().into_string().unwrap(); let stem = name.strip_suffix(".plan.json").expect("a plan file"); - let (workload, variant) = stem - .split_once(".clickhouse.") - .expect(".clickhouse."); - (workload.to_string(), format!("clickhouse.{variant}")) + let (workload, variant) = ["clickhouse", "victoriametrics"] + .iter() + .find_map(|engine| { + let (workload, variant) = stem.split_once(&format!(".{engine}."))?; + Some((workload.to_string(), format!("{engine}.{variant}"))) + }) + .expect(".."); + (workload, variant) }) .collect(); plans.sort(); @@ -34,23 +38,39 @@ fn public_plans() -> Vec<(String, String)> { #[test] fn public_plans_translate() { let plans = public_plans(); - // 18 equivalent-only plans and 11 with substitutes. - assert_eq!(plans.len(), 29, "{plans:?}"); + // ClickHouse: 18 equivalent-only plans and 11 with substitutes; + // VictoriaMetrics: 8 equivalent-only and 17 with substitutes. + let count = |engine: &str| plans.iter().filter(|(_, v)| v.starts_with(engine)).count(); + assert_eq!(count("clickhouse."), 29, "{plans:?}"); + assert_eq!(count("victoriametrics."), 25, "{plans:?}"); + // VictoriaMetrics stores a stream output at its flush time in whole + // seconds, so 1 s windows cannot be told apart; the capability file + // cannot say so (the planner has no window-width restriction), so these + // plans are refused, as the README states. + let expected_refusals = [ + "mixed-08 victoriametrics.with-substitutes: node 34: no translation for window width 1000 ms is below 2 s", + "mixed-09 victoriametrics.with-substitutes: node 34: no translation for window width 1000 ms is below 2 s", + ]; let mut failures = Vec::new(); for (workload, variant) in &plans { let plan = common::public_fixture(workload, variant); - match translate(&plan) { + let translated: Result<(Vec, usize), _> = + if variant.starts_with("clickhouse.") { + clickhouse::translate(&plan).map(|d| (d.substitutions, d.queries.len())) + } else { + victoriametrics::translate(&plan).map(|d| (d.substitutions, d.queries.len())) + }; + match translated { Err(error) => failures.push(format!("{workload} {variant}: {error}")), - Ok(deployment) => { - if variant == "clickhouse.equivalent-only" && !deployment.substitutions.is_empty() { + Ok((substitutions, queries)) => { + if variant.ends_with(".equivalent-only") && !substitutions.is_empty() { failures.push(format!( - "{workload} {variant}: substitutions {:?}", - deployment.substitutions + "{workload} {variant}: substitutions {substitutions:?}" )); } - assert_eq!(deployment.queries.len(), plan.roots.len()); + assert_eq!(queries, plan.roots.len()); } } } - assert!(failures.is_empty(), "{failures:#?}"); + assert_eq!(failures, expected_refusals, "{failures:#?}"); } diff --git a/system-bench/tests/victoriametrics_translate.rs b/system-bench/tests/victoriametrics_translate.rs new file mode 100644 index 00000000..94d2089f --- /dev/null +++ b/system-bench/tests/victoriametrics_translate.rs @@ -0,0 +1,805 @@ +//! V1–V12: translating planner-written plans into VictoriaMetrics stream +//! aggregation and one MetricsQL query per query root. The goldens under +//! `tests/golden/victoriametrics/` were written by hand before the +//! translator. + +mod common; + +use common::{fixture_value_public, payload_body, public_fixture}; +use serde_json::{json, Value}; +use system_bench::engines_external::plan_file::PlanFile; +use system_bench::engines_external::victoriametrics::{ + translate, MetricsQlQuery, StreamAggregation, StreamOutput, VictoriaMetricsDeployment, +}; +use system_bench::engines_external::{SharingLost, TranslationError}; + +const EQUIVALENT_ONLY: &str = "victoriametrics.equivalent-only"; +const WITH_SUBSTITUTES: &str = "victoriametrics.with-substitutes"; + +fn translated(workload: &str, variant: &str) -> VictoriaMetricsDeployment { + translate(&public_fixture(workload, variant)).expect("translates") +} + +fn from_value(value: Value) -> Result { + translate(&PlanFile::from_value(value).expect("decodes")) +} + +fn shape(node: usize, reason: &str) -> TranslationError { + TranslationError::UnsupportedShape { + node, + reason: reason.into(), + } +} + +fn golden(name: &str) -> String { + let path = std::path::Path::new(env!("CARGO_MANIFEST_DIR")) + .join("tests/golden/victoriametrics") + .join(name); + std::fs::read_to_string(path).expect("golden") +} + +/// The golden's queries: one per non-comment line. +fn golden_queries(name: &str) -> Vec { + golden(name) + .lines() + .filter(|line| !line.trim().is_empty() && !line.starts_with('#')) + .map(str::to_string) + .collect() +} + +fn exprs(deployment: &VictoriaMetricsDeployment) -> Vec { + deployment.queries.iter().map(|q| q.expr.clone()).collect() +} + +/// `sum_over_time__1h__1hz__60s` (equivalent-only) with the chain's reduction set to `reduction`. +fn sum_over_time_with_reduction(reduction: Value) -> Value { + let mut value = fixture_value_public("sum_over_time__1h__1hz__60s", EQUIVALENT_ONLY); + payload_body(&mut value, 1)["reduction"] = reduction; + value +} + +/// `sum_over_time__1h__1hz__60s` with the chain's family set to the exact `kind`. +fn sum_over_time_with_family(value: &mut Value, kind: &str) { + payload_body(value, 1)["summary_type"] = json!({"ExactAggregate": [kind, kind]}); +} + +#[test] +fn stored_sum_per_series_has_no_by() { + let deployment = translated("sum_over_time__1h__1hz__60s", EQUIVALENT_ONLY); + assert_eq!( + deployment.stream_aggregation_config(), + golden("sum_over_time_1h.yaml") + ); + assert!(!deployment.stream_aggregation_config().contains("by:")); + assert_eq!( + deployment.stream_aggregations, + vec![StreamAggregation { + metric: "latency".into(), + selector: "latency".into(), + interval_ms: 60_000, + by: None, + outputs: vec![StreamOutput::SumSamples, StreamOutput::CountSamples], + }] + ); + assert_eq!( + deployment.queries, + vec![MetricsQlQuery { + expr: golden_queries("sum_over_time_1h.metricsql")[0].clone(), + time_step_ms: 60_000, + per_series_of: None, + }] + ); + assert!(deployment.substitutions.is_empty()); + assert!(deployment.sharing_lost.is_empty()); +} + +#[test] +fn stored_max_with_label_filter() { + let deployment = translated( + "series_1000__max_label_filter__5m__1hz__60s", + WITH_SUBSTITUTES, + ); + assert_eq!( + deployment.stream_aggregation_config(), + golden("max_5m_label_filter.yaml") + ); + assert_eq!( + deployment.queries, + vec![MetricsQlQuery { + expr: golden_queries("max_5m_label_filter.metricsql")[0].clone(), + time_step_ms: 60_000, + per_series_of: Some("latency".into()), + }] + ); + assert!(deployment.substitutions.is_empty()); + + // A label value with a quote, a backslash and a single quote is escaped + // in the selector, and the YAML single-quoted string doubles the quote. + let mut value = fixture_value_public( + "series_1000__max_label_filter__5m__1hz__60s", + WITH_SUBSTITUTES, + ); + payload_body(&mut value, 0)["predicates"][0]["Compare"]["right"] = + json!({"Literal": {"Utf8": "j\"3\\'"}}); + let deployment = from_value(value).unwrap(); + assert_eq!( + deployment.stream_aggregations[0].selector, + r#"latency{job="j\"3\\'"}"# + ); + assert!( + deployment + .stream_aggregation_config() + .contains(r#"- match: 'latency{job="j\"3\\''"}'"#), + "{}", + deployment.stream_aggregation_config() + ); +} + +#[test] +fn nested_counts_over_raw_samples() { + let deployment = translated("count_distinct__5m__1hz__300s", EQUIVALENT_ONLY); + assert!(deployment.stream_aggregations.is_empty()); + assert_eq!( + exprs(&deployment), + golden_queries("count_distinct_5m.metricsql") + ); + assert_eq!(deployment.queries[0].time_step_ms, 1); + assert_eq!(deployment.queries[0].per_series_of, None); +} + +#[test] +fn grouped_chain_uses_by() { + let deployment = from_value(sum_over_time_with_reduction(json!({"Reduce": [2]}))).unwrap(); + let config = deployment.stream_aggregation_config(); + assert!(config.contains(" by: ['job']\n"), "{config}"); + assert_eq!( + exprs(&deployment), + vec![ + "sum by (job) (sum_over_time(latency:60s_by_job_sum_samples[3600s] offset -29500ms) \ + and count_over_time(latency:60s_by_job_count_samples[3600s] offset -29500ms))" + ] + ); + assert_eq!( + deployment.stream_aggregations[0].by, + Some(vec!["job".into()]) + ); + + // Grouping by the series identity is per series, which `by` cannot say. + assert_eq!( + from_value(sum_over_time_with_reduction(json!({"Reduce": [3]}))).unwrap_err(), + shape(1, "group by the series identity") + ); + // `without` is refused on the node that carries it. + assert_eq!( + from_value(sum_over_time_with_reduction( + json!({"Reduce": {"without": [2]}}) + )) + .unwrap_err(), + shape(1, "without") + ); +} + +#[test] +fn empty_reduce_chain_is_per_series_plus_outer_aggregate() { + for (kind, output, expr) in [ + ( + "Sum", + "sum_samples, count_samples", + "sum(sum_over_time(latency:60s_sum_samples[3600s] offset -29500ms) \ + and count_over_time(latency:60s_count_samples[3600s] offset -29500ms))", + ), + ( + "Count", + "count_samples", + "sum(sum_over_time(latency:60s_count_samples[3600s] offset -29500ms))", + ), + ( + "Min", + "min", + "min(min_over_time(latency:60s_min[3600s] offset -29500ms))", + ), + ( + "Max", + "max", + "max(max_over_time(latency:60s_max[3600s] offset -29500ms))", + ), + ] { + let mut value = sum_over_time_with_reduction(json!({"Reduce": []})); + sum_over_time_with_family(&mut value, kind); + // The root reads the chain's single group directly: drop the outer + // `sum by (job)` so the query is the chain read itself. + value["dag"]["roots"] = json!([4]); + let deployment = from_value(value).unwrap(); + let config = deployment.stream_aggregation_config(); + assert!(!config.contains("by:"), "{kind}: {config}"); + assert!(config.contains(&format!("outputs: [{output}]")), "{config}"); + assert_eq!(exprs(&deployment), vec![expr.to_string()], "{kind}"); + assert_eq!(deployment.queries[0].per_series_of, None); + } +} + +#[test] +fn query_time_shapes() { + let expected = golden_queries("showcase_equivalent_only.metricsql"); + let per_series = [None, Some("latency"), None, None, Some("latency")]; + for (i, workload) in [ + "sum_over_time__1m_1hz_10s", + "quantile__1m_1hz_10s", + "avg_quantile__1m_1hz_10s", + "count__1m_1hz_10s", + "max__1m_1hz_10s", + ] + .into_iter() + .enumerate() + { + let deployment = translated(workload, EQUIVALENT_ONLY); + assert!(deployment.stream_aggregations.is_empty(), "{workload}"); + assert!(deployment.substitutions.is_empty(), "{workload}"); + assert_eq!( + deployment.queries, + vec![MetricsQlQuery { + expr: expected[i].clone(), + time_step_ms: 1, + per_series_of: per_series[i].map(str::to_string), + }], + "{workload}" + ); + assert_eq!(deployment.stream_aggregation_config(), "[]\n"); + } +} + +#[test] +fn rate_is_a_recorded_substitute() { + let deployment = translated("sum_rate__1m_1hz_10s", WITH_SUBSTITUTES); + assert_eq!( + exprs(&deployment), + vec!["sum by (job) (rate(requests_total[60s]))"] + ); + assert_eq!(deployment.substitutions.len(), 1); + let substitution = &deployment.substitutions[0]; + assert_eq!(substitution.node, 2); + assert_eq!( + substitution.rule, + "victoriametrics.rate_increase.no_extrapolation" + ); + for phrase in [ + "no extrapolation", + "last sample before the range", + "from 0", + "prev/8", + "one sample", + ] { + assert!( + substitution.guarantee_difference.contains(phrase), + "{phrase}: {}", + substitution.guarantee_difference + ); + } + + // Increase is the same rule. + let mut value = fixture_value_public("sum_rate__1m_1hz_10s", WITH_SUBSTITUTES); + payload_body(&mut value, 2)["summary_type"] = + json!({"ExactAggregate": ["Increase", "Increase"]}); + assert_eq!( + exprs(&from_value(value).unwrap()), + vec!["sum by (job) (increase(requests_total[60s]))"] + ); +} + +#[test] +fn shared_query_time_node_is_reported() { + let plan = public_fixture("joint__1m_1hz_10s", WITH_SUBSTITUTES); + let deployment = translate(&plan).unwrap(); + assert_eq!( + exprs(&deployment), + vec![ + "quantile_over_time(0.99, latency[60s])", + "quantile_over_time(0.5, latency[60s])", + "avg by (job) (quantile_over_time(0.9, latency[60s]))", + "max_over_time(latency[60s])", + "sum by (job) (rate(requests_total[60s]))", + ] + ); + assert_eq!( + deployment.sharing_lost, + vec![SharingLost { + node: 1, + readers: vec![2, 3, 4] + }] + ); + assert_eq!(deployment.substitutions.len(), 1); +} + +#[test] +fn refusals() { + let max_label_filter = || { + fixture_value_public( + "series_1000__max_label_filter__5m__1hz__60s", + WITH_SUBSTITUTES, + ) + }; + let sum_over_time_1m = || fixture_value_public("sum_over_time__1m_1hz_10s", EQUIVALENT_ONLY); + + let mut v = sum_over_time_1m(); + payload_body(&mut v, 0)["source"] = json!({"Table": {"table_ref": "t"}}); + assert_eq!(from_value(v).unwrap_err(), shape(0, "table source")); + + let mut v = max_label_filter(); + payload_body(&mut v, 0)["predicates"][0]["Compare"]["semantics"] = json!("sql"); + assert_eq!(from_value(v).unwrap_err(), shape(0, "predicate")); + + let mut v = max_label_filter(); + payload_body(&mut v, 1)["filter"] = json!({"Literal": {"Bool": true}}); + assert_eq!(from_value(v).unwrap_err(), shape(1, "filter")); + + let mut v = max_label_filter(); + payload_body(&mut v, 1)["input"] = json!({"item": {"Column": 2}, "weight": null}); + assert_eq!(from_value(v).unwrap_err(), shape(1, "summary input")); + + let mut v = max_label_filter(); + payload_body(&mut v, 1)["summary_type"] = json!({"Sketch": "Kll"}); + assert_eq!(from_value(v).unwrap_err(), shape(1, "sketch Kll")); + + let mut v = max_label_filter(); + payload_body(&mut v, 1)["summary_type"] = json!({"ExactAggregate": ["Rate", "Rate"]}); + assert_eq!( + from_value(v).unwrap_err(), + shape(1, "stored counter window chain") + ); + + let mut v = max_label_filter(); + payload_body(&mut v, 2)["range"] = json!({"secs": 90, "nanos": 0}); + assert_eq!( + from_value(v).unwrap_err(), + shape(2, "a range that is not a whole number of windows") + ); + + let mut v = sum_over_time_1m(); + v["dag"]["nodes"][2]["payload"] = json!({"ASAP": {"FancyNewOp": {}}}); + assert_eq!( + from_value(v).unwrap_err(), + shape(2, "operator ASAP.FancyNewOp") + ); + + let mut v = sum_over_time_1m(); + payload_body(&mut v, 2)["reduction"] = json!({"Reduce": {"without": [2]}}); + assert_eq!(from_value(v).unwrap_err(), shape(2, "without")); + + // A label name MetricsQL cannot write. + let mut v = sum_over_time_1m(); + v["dag"]["nodes"][0]["output_schema"]["fields"][2]["name"] = json!("a-b"); + v["dag"]["nodes"][1]["output_schema"]["fields"][2]["name"] = json!("a-b"); + v["dag"]["nodes"][2]["output_schema"]["fields"][0]["name"] = json!("a-b"); + assert_eq!(from_value(v).unwrap_err(), shape(2, "label name a-b")); +} + +#[test] +fn aggregate_and_binary_refusals() { + let count_1m = || fixture_value_public("count__1m_1hz_10s", EQUIVALENT_ONLY); + let mut v = count_1m(); + payload_body(&mut v, 3)["having"] = json!({"Literal": {"Bool": true}}); + assert_eq!(from_value(v).unwrap_err(), shape(3, "having")); + + let mut v = count_1m(); + payload_body(&mut v, 3)["filters"] = json!([{"Literal": {"Bool": true}}]); + assert_eq!(from_value(v).unwrap_err(), shape(3, "filter")); + + let mut v = count_1m(); + payload_body(&mut v, 3)["measures"] = json!([{"kind": "stddev", "col": null}]); + assert_eq!(from_value(v).unwrap_err(), shape(3, "measure stddev")); + + // A grouped aggregate straight over raw samples has no MetricsQL form. + let mut v = count_1m(); + payload_body(&mut v, 2)["reduction"] = json!({"Reduce": [2]}); + assert_eq!( + from_value(v).unwrap_err(), + shape(2, "grouped aggregate over raw samples") + ); + + let range_heavy = || fixture_value_public("range_heavy", WITH_SUBSTITUTES); + let binary = range_heavy()["dag"]["nodes"] + .as_array() + .unwrap() + .iter() + .position(|n| n["payload"]["NonASAP"].get("BinaryOp").is_some()) + .expect("range_heavy has a BinaryOp"); + let mut v = range_heavy(); + payload_body(&mut v, binary)["operator"]["vector_match"] = json!({"card": "OneToOne"}); + assert_eq!(from_value(v).unwrap_err(), shape(binary, "vector matching")); + let mut v = range_heavy(); + payload_body(&mut v, binary)["return_bool"] = json!(true); + assert_eq!(from_value(v).unwrap_err(), shape(binary, "bool comparison")); + let mut v = range_heavy(); + payload_body(&mut v, binary)["operator"]["checked_relative_division"] = json!(true); + assert_eq!( + from_value(v).unwrap_err(), + shape(binary, "checked relative division") + ); +} + +#[test] +fn instant_selector_needs_a_lookback() { + let value = fixture_value_public("range_heavy", WITH_SUBSTITUTES); + let plan = PlanFile::from_value(value.clone()).unwrap(); + let instant = plan + .nodes + .iter() + .position(|n| { + matches!( + n.operator, + system_bench::engines_external::plan_file::PlanOperator::TimeRange { + kind: system_bench::engines_external::plan_file::RangeKind::Instant, + .. + } + ) + }) + .expect("range_heavy has an instant selector"); + let mut v = value.clone(); + payload_body(&mut v, instant)["range"] = json!({"secs": 0, "nanos": 0}); + assert_eq!( + from_value(v).unwrap_err(), + shape(instant, "instant selector without a lookback") + ); + let mut v = value; + payload_body(&mut v, instant)["range"] = json!({"secs": 5, "nanos": 0}); + let deployment = from_value(v).unwrap(); + assert!( + exprs(&deployment) + .iter() + .any(|e| e.contains("last_over_time(data[5s])")), + "{:?}", + exprs(&deployment) + ); +} + +#[test] +fn interval_must_divide_a_day() { + for (width_ms, ok) in [ + (60_000u64, true), + (300_000, true), + (3_600_000, true), + (2_000, true), + (7_000, false), + (1_500, false), + (1_000, false), + ] { + let mut value = fixture_value_public( + "series_1000__max_label_filter__5m__1hz__60s", + WITH_SUBSTITUTES, + ); + payload_body(&mut value, 1)["tumbling_window_width_ms"] = json!(width_ms); + // Keep the range a whole number of windows. + let range_ms = width_ms * 5; + payload_body(&mut value, 2)["range"] = + json!({"secs": range_ms / 1000, "nanos": (range_ms % 1000) * 1_000_000}); + let result = from_value(value); + if ok { + assert!(result.is_ok(), "{width_ms}: {result:?}"); + } else { + let reason = match width_ms { + 7_000 => "window width 7000 ms does not divide 86,400 s", + 1_500 => "window width 1500 ms is not whole seconds", + _ => "window width 1000 ms is below 2 s", + }; + assert_eq!(result.unwrap_err(), shape(1, reason), "{width_ms}"); + } + } +} + +#[test] +fn recording_rules_mirror_stream_outputs() { + let deployment = translated("sum_over_time__1h__1hz__60s", EQUIVALENT_ONLY); + assert_eq!( + deployment.recording_rules(), + "groups:\n\ + \x20 - name: stream-aggregation-60s\n\ + \x20 interval: 60s\n\ + \x20 eval_alignment: true\n\ + \x20 eval_delay: 0s\n\ + \x20 rules:\n\ + \x20 - record: latency:60s_sum_samples\n\ + \x20 expr: 'sum_over_time(latency[60s])'\n\ + \x20 - record: latency:60s_count_samples\n\ + \x20 expr: 'count_over_time(latency[60s])'\n" + ); + let deployment = from_value(sum_over_time_with_reduction(json!({"Reduce": [2]}))).unwrap(); + assert!(deployment + .recording_rules() + .contains("- record: latency:60s_by_job_sum_samples\n expr: 'sum by (job) (sum_over_time(latency[60s]))'\n")); + let mut value = sum_over_time_with_reduction(json!({"Reduce": [2]})); + sum_over_time_with_family(&mut value, "Count"); + assert!(from_value(value) + .unwrap() + .recording_rules() + .contains("expr: 'sum by (job) (count_over_time(latency[60s]))'")); +} + +#[test] +fn outputs_merge_per_aggregation() { + // A second chain, Max, over the same Scan and width, read by a second root. + let mut value = fixture_value_public("sum_over_time__1h__1hz__60s", EQUIVALENT_ONLY); + let nodes = value["dag"]["nodes"].as_array_mut().unwrap(); + let copies: Vec = (1..=4).map(|id| nodes[id].clone()).collect(); + for (offset, mut node) in copies.into_iter().enumerate() { + node["id"] = json!(6 + offset); + nodes.push(node); + } + payload_body(&mut value, 6)["summary_type"] = json!({"ExactAggregate": ["Max", "Max"]}); + payload_body(&mut value, 7)["child"] = json!(6); + payload_body(&mut value, 8)["children"] = json!([7]); + payload_body(&mut value, 9)["child"] = json!(8); + let edges = value["dag"]["edges"].as_array_mut().unwrap(); + let template = edges[0].clone(); + for (producer, consumer) in [(0, 6), (6, 7), (7, 8), (8, 9)] { + let mut edge = template.clone(); + edge["producer"] = json!(producer); + edge["consumer"] = json!(consumer); + edges.push(edge); + } + value["dag"]["roots"] = json!([5, 9]); + value["query_texts"] = json!(["q0", "q1"]); + let deployment = from_value(value.clone()).unwrap(); + assert_eq!(deployment.stream_aggregations.len(), 1); + assert_eq!( + deployment.stream_aggregations[0].outputs, + vec![ + StreamOutput::SumSamples, + StreamOutput::CountSamples, + StreamOutput::Max + ] + ); + assert!(deployment + .stream_aggregation_config() + .contains("outputs: [sum_samples, count_samples, max]")); + assert_eq!( + exprs(&deployment)[1], + "max_over_time(latency:60s_max[3600s] offset -29500ms)" + ); + + // The same output twice (two roots reading one chain) is one output. + payload_body(&mut value, 6)["summary_type"] = json!({"ExactAggregate": ["Sum", "Sum"]}); + let deployment = from_value(value).unwrap(); + assert_eq!( + deployment.stream_aggregations[0].outputs, + vec![StreamOutput::SumSamples, StreamOutput::CountSamples] + ); +} + +#[test] +fn stored_count_reads_count_samples() { + let mut value = fixture_value_public("sum_over_time__1h__1hz__60s", EQUIVALENT_ONLY); + sum_over_time_with_family(&mut value, "Count"); + let deployment = from_value(value).unwrap(); + assert!(deployment + .stream_aggregation_config() + .contains("outputs: [count_samples]\n")); + assert_eq!( + exprs(&deployment), + golden_queries("sum_over_time_1h_count.metricsql") + ); +} + +#[test] +fn chain_reads_other_than_merge_and_finalize_are_refused() { + // A regrouping merge of stored windows. + let mut value = fixture_value_public("sum_over_time__1h__1hz__60s", EQUIVALENT_ONLY); + payload_body(&mut value, 3)["group_by"] = json!([2]); + assert_eq!( + from_value(value).unwrap_err(), + shape(3, "regrouping merge of stored windows") + ); + // An instant selector over a chain. + let mut value = fixture_value_public("sum_over_time__1h__1hz__60s", EQUIVALENT_ONLY); + payload_body(&mut value, 2)["kind"] = json!("instant"); + value["dag"]["roots"] = json!([2]); + assert_eq!( + from_value(value).unwrap_err(), + shape(2, "time range over this operator") + ); +} + +#[test] +fn grouped_shapes_of_a_mixed_workload() { + let deployment = translated("mixed-04", WITH_SUBSTITUTES); + let exprs = exprs(&deployment); + // Root 4: top 4 per (region, service) of the per-series increase. + assert_eq!( + exprs[7], + "topk by (region, service) (4, increase(data_total[600s]))" + ); + assert_eq!( + deployment.queries[7].per_series_of.as_deref(), + Some("data_total") + ); + // Root 16: avg as sum over count of the regrouped per-series quantiles, + // a checked division. + assert_eq!( + exprs[2], + "(sum by (region) (sum by (region, service) (quantile_over_time(0.75, data[100s])))) \ + / (sum by (region) (count by (region, service) (quantile_over_time(0.75, data[100s]))))" + ); + let division = deployment + .substitutions + .iter() + .find(|s| s.node == 15) + .expect("the checked division is recorded"); + assert_eq!(division.rule, "victoriametrics.division.nan_dropped"); + assert!(division.guarantee_difference.contains("checked division")); + // Root 33: a 10 s per-series Sum chain regrouped at query time. + assert_eq!( + exprs[0], + "sum by (job, region, service) (sum_over_time(data:10s_sum_samples[600s] offset -4500ms) \ + and count_over_time(data:10s_count_samples[600s] offset -4500ms))" + ); +} + +#[test] +fn project_keeps_labels_under_their_names() { + let value = fixture_value_public("mixed-04", WITH_SUBSTITUTES); + // Node 16 aliases the value column to `avg`: allowed. + assert!(from_value(value.clone()).is_ok()); + // Renaming a label is refused. + let mut v = value; + v["dag"]["nodes"][16]["output_schema"]["fields"][0]["name"] = json!("area"); + assert_eq!( + from_value(v).unwrap_err(), + shape(16, "projected label rename") + ); +} + +#[test] +fn output_names_that_collide_are_refused() { + // `by [a_b]` and `by [a, b]` both name their output `..._by_a_b_...`. + let mut value = fixture_value_public("sum_over_time__1h__1hz__60s", EQUIVALENT_ONLY); + for node in [0, 1, 2, 3, 4] { + let fields = value["dag"]["nodes"][node]["output_schema"]["fields"] + .as_array_mut() + .unwrap(); + let mut a = fields[2].clone(); + a["name"] = json!("a"); + let mut b = fields[2].clone(); + b["name"] = json!("b"); + fields[2]["name"] = json!("a_b"); + fields.insert(3, b); + fields.insert(3, a); + } + // Columns: [ts|window_end, value|state, a_b, a, b, identity]. + payload_body(&mut value, 1)["reduction"] = json!({"Reduce": [3, 4]}); + let nodes = value["dag"]["nodes"].as_array_mut().unwrap(); + let copies: Vec = (1..=4).map(|id| nodes[id].clone()).collect(); + for (offset, mut node) in copies.into_iter().enumerate() { + node["id"] = json!(6 + offset); + nodes.push(node); + } + payload_body(&mut value, 6)["reduction"] = json!({"Reduce": [2]}); + payload_body(&mut value, 7)["child"] = json!(6); + payload_body(&mut value, 8)["children"] = json!([7]); + payload_body(&mut value, 9)["child"] = json!(8); + value["dag"]["roots"] = json!([4, 9]); + value["query_texts"] = json!(["q0", "q1"]); + assert_eq!( + from_value(value).unwrap_err(), + shape( + 6, + "two stored chains with the output latency:60s_by_a_b_sum_samples" + ) + ); +} + +#[test] +fn label_values_and_names_are_quoted() { + let mut value = fixture_value_public( + "series_1000__max_label_filter__5m__1hz__60s", + WITH_SUBSTITUTES, + ); + payload_body(&mut value, 0)["predicates"][0]["Compare"]["right"] = + json!({"Literal": {"Utf8": "a\tb\rc"}}); + let deployment = from_value(value).unwrap(); + assert_eq!( + deployment.stream_aggregations[0].selector, + r#"latency{job="a\tb\rc"}"# + ); + // A label named like a YAML keyword stays a string in `by`. + let mut value = sum_over_time_with_reduction(json!({"Reduce": [2]})); + for node in 0..=4 { + value["dag"]["nodes"][node]["output_schema"]["fields"][2]["name"] = json!("on"); + } + let config = from_value(value).unwrap().stream_aggregation_config(); + assert!(config.contains(" by: ['on']\n"), "{config}"); +} + +#[test] +fn matchers_are_in_label_order() { + // Predicates `job="j3"` then `a="x"` (a new label column 4 of the Scan): + // the selector lists `a` first, so equal selectors compare equal. + let mut value = fixture_value_public( + "series_1000__max_label_filter__5m__1hz__60s", + WITH_SUBSTITUTES, + ); + let fields = value["dag"]["nodes"][0]["output_schema"]["fields"] + .as_array_mut() + .unwrap(); + let mut label = fields[2].clone(); + label["name"] = json!("a"); + fields.push(label); + let mut predicate = payload_body(&mut value, 0)["predicates"][0].clone(); + predicate["Compare"]["left"] = json!({"Column": 4}); + predicate["Compare"]["right"] = json!({"Literal": {"Utf8": "x"}}); + payload_body(&mut value, 0)["predicates"] + .as_array_mut() + .unwrap() + .push(predicate); + let deployment = from_value(value).unwrap(); + assert_eq!( + deployment.stream_aggregations[0].selector, + r#"latency{a="x",job="j3"}"# + ); +} + +#[test] +fn division_records_that_nan_series_are_dropped() { + let deployment = translated("range_heavy", WITH_SUBSTITUTES); + let plan = public_fixture("range_heavy", WITH_SUBSTITUTES); + let divisions: Vec = plan + .nodes + .iter() + .filter(|n| { + matches!(&n.operator, system_bench::engines_external::plan_file::PlanOperator::BinaryOp { operator, .. } + if operator["kind"] == json!({"Arithmetic": "Div"})) + }) + .map(|n| n.id) + .collect(); + assert!(!divisions.is_empty()); + for node in divisions { + let substitution = deployment + .substitutions + .iter() + .find(|s| s.node == node) + .unwrap_or_else(|| panic!("division at node {node} is recorded")); + assert_eq!(substitution.rule, "victoriametrics.division.nan_dropped"); + } +} + +/// Every committed VictoriaMetrics public plan's config and queries, as +/// reviewed: a regression snapshot (`golden/victoriametrics/public_plans.txt`). +#[test] +fn public_plan_translations_match_the_snapshot() { + let dir = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("tests/fixtures/plans/public"); + let mut names: Vec = std::fs::read_dir(dir) + .unwrap() + .map(|e| e.unwrap().file_name().into_string().unwrap()) + .filter(|n| n.contains(".victoriametrics.")) + .collect(); + names.sort(); + let mut snapshot = String::new(); + for name in names { + let stem = name.strip_suffix(".plan.json").unwrap(); + let (workload, variant) = stem.split_once(".victoriametrics.").unwrap(); + let variant = format!("victoriametrics.{variant}"); + snapshot.push_str(&format!("== {stem}\n")); + match translate(&public_fixture(workload, &variant)) { + Err(error) => snapshot.push_str(&format!("refused: {error}\n")), + Ok(deployment) => { + snapshot.push_str(&deployment.stream_aggregation_config()); + for query in &deployment.queries { + snapshot.push_str(&format!( + "{} | step {} | per series {:?}\n", + query.expr, query.time_step_ms, query.per_series_of + )); + } + for substitution in &deployment.substitutions { + snapshot.push_str(&format!( + "substitution {} at node {}\n", + substitution.rule, substitution.node + )); + } + } + } + } + let path = std::path::Path::new(env!("CARGO_MANIFEST_DIR")) + .join("tests/golden/victoriametrics/public_plans.txt"); + if std::env::var_os("AQPBM_WRITE_SNAPSHOT").is_some() { + std::fs::write(&path, &snapshot).unwrap(); + } + assert_eq!(snapshot, std::fs::read_to_string(path).expect("snapshot")); +}